19
1 Design of Engineering Experiments Part 2 – Basic Statistical Concepts • Simple comparative experiments The hypothesis testing framework The two-sample t-test Checking assumptions, validity Comparing more than two factor levels…the analysis of variance ANOVA decomposition of total variability Statistical testing & analysis Checking assumptions, model validity Post-ANOVA testing of means Sample size determination

1 Design of Engineering Experiments Part 2 – Basic Statistical Concepts Simple comparative experiments –The hypothesis testing framework –The two-sample

Embed Size (px)

Citation preview

Page 1: 1 Design of Engineering Experiments Part 2 – Basic Statistical Concepts Simple comparative experiments –The hypothesis testing framework –The two-sample

1

Design of Engineering ExperimentsPart 2 – Basic Statistical Concepts

• Simple comparative experiments– The hypothesis testing framework– The two-sample t-test– Checking assumptions, validity

• Comparing more than two factor levels…the analysis of variance– ANOVA decomposition of total variability– Statistical testing & analysis– Checking assumptions, model validity– Post-ANOVA testing of means

• Sample size determination

Page 2: 1 Design of Engineering Experiments Part 2 – Basic Statistical Concepts Simple comparative experiments –The hypothesis testing framework –The two-sample

2

Portland Cement Formulation (Table 2-1, pp. 24)

Observation (sample), j

Modified Mortar

(Formulation 1)

Unmodified Mortar (Formulation 2)

1 16.85 16.62

2 16.40 16.75

3 17.21 17.37

4 16.35 17.12

5 16.52 16.98

6 17.04 16.87

7 16.96 17.34

8 17.15 17.02

9 16.59 17.08

10 16.57 17.27

1 jy 2 jy

Page 3: 1 Design of Engineering Experiments Part 2 – Basic Statistical Concepts Simple comparative experiments –The hypothesis testing framework –The two-sample

3

Graphical View of the DataDot Diagram, Fig. 2-1, pp. 24

Page 4: 1 Design of Engineering Experiments Part 2 – Basic Statistical Concepts Simple comparative experiments –The hypothesis testing framework –The two-sample

4

Box Plots, Fig. 2-3, pp. 26

Page 5: 1 Design of Engineering Experiments Part 2 – Basic Statistical Concepts Simple comparative experiments –The hypothesis testing framework –The two-sample

5

The Hypothesis Testing Framework

• Statistical hypothesis testing is a useful framework for many experimental situations

• Origins of the methodology date from the early 1900s

• We will use a procedure known as the two-sample t-test

Page 6: 1 Design of Engineering Experiments Part 2 – Basic Statistical Concepts Simple comparative experiments –The hypothesis testing framework –The two-sample

6

The Hypothesis Testing Framework

• Sampling from a normal distribution• Statistical hypotheses:

0 1 2

1 1 2

:

:

H

H

Page 7: 1 Design of Engineering Experiments Part 2 – Basic Statistical Concepts Simple comparative experiments –The hypothesis testing framework –The two-sample

7

Estimation of Parameters

1

2 2 2

1

1 estimates the population mean

1( ) estimates the variance

1

n

ii

n

ii

y yn

S y yn

Page 8: 1 Design of Engineering Experiments Part 2 – Basic Statistical Concepts Simple comparative experiments –The hypothesis testing framework –The two-sample

8

Summary Statistics (pg. 36)

Formulation 1

“New recipe”

Formulation 2

“Original recipe”

10

248.0

061.0

04.17

2

2

22

2

n

S

S

y

10

316.0

100.0

76.16

2

1

21

1

n

S

S

y

Page 9: 1 Design of Engineering Experiments Part 2 – Basic Statistical Concepts Simple comparative experiments –The hypothesis testing framework –The two-sample

9

How the Two-Sample t-Test Works:

28.004.1776.1621 yy

Use the sample means to draw inferences about the population means

Difference in sample means is

The inference is drawn by comparing the difference with standard deviation of the difference in sample means:

Difference in sample means────────────────────────────────

Standard deviation of the difference in sample means

This suggests a statistic:

2

22

1

21

21

nn

yyZo

Page 10: 1 Design of Engineering Experiments Part 2 – Basic Statistical Concepts Simple comparative experiments –The hypothesis testing framework –The two-sample

10

How the Two-Sample t-Test Works

2 2 2 21 2 1 2

1 2

2 21 2

1 2

2 2 21 2

2 22 1 1 2 2

1 2

Use and to estimate and

The previous ratio becomes

However, we have the case where

Pool the individual sample variances:

( 1) ( 1)

2p

S S

y y

S Sn n

n S n SS

n n

Page 11: 1 Design of Engineering Experiments Part 2 – Basic Statistical Concepts Simple comparative experiments –The hypothesis testing framework –The two-sample

11

How the Two-Sample t-Test Works:

• t0 is a “distance” measure-how far apart the averages are expressed in standard deviation units

• Values of t0 that are near zero are consistent with the null hypothesis

• Values of t0 that are very different from zero are consistent with the alternative hypothesis

• Notice the interpretation of t0 as a signal-to-noise ratio

1 20

1 2

The test statistic is

1 1

p

y yt

Sn n

Page 12: 1 Design of Engineering Experiments Part 2 – Basic Statistical Concepts Simple comparative experiments –The hypothesis testing framework –The two-sample

12

The Two-Sample (Pooled) t-Test

081.021010

)061.0(9)100.0(9

1

)1()1(

21

222

2112

nn

SnSnS p

20.2

101

101

284.0

04.1776.16

11

21

21

nnS

yyt

p

o

284.0pS

The two sample means are about 2 standard deviations apart. Is this a “large” difference?

Page 13: 1 Design of Engineering Experiments Part 2 – Basic Statistical Concepts Simple comparative experiments –The hypothesis testing framework –The two-sample

13

The Two-Sample (Pooled) t-Test

• So far, we haven’t really done any “statistics”

• We need an objective basis for deciding how large the test statistic t0

really is• In 1908, W. S. Gosset

derived the reference distribution for t0 … called the t distribution

• Tables of the t distribution - text, page 606

Page 14: 1 Design of Engineering Experiments Part 2 – Basic Statistical Concepts Simple comparative experiments –The hypothesis testing framework –The two-sample

14

The Two-Sample (Pooled) t-Test• A value of t0 between

–2.101 and 2.101 is consistent with equality of means

• It is possible for the means to be equal and t0 to exceed either 2.101 or –2.101, but it would be a “rare event” … leads to the conclusion that the means are different

• Could also use the P-value approach

Page 15: 1 Design of Engineering Experiments Part 2 – Basic Statistical Concepts Simple comparative experiments –The hypothesis testing framework –The two-sample

15

The Two-Sample (Pooled) t-Test

• The P-value is the risk of wrongly rejecting the null hypothesis of equal means (it measures rareness of the event)

• The P-value in our problem is P = 0.0411• The null hypothesis Ho: 1 = 2 would be rejected at any level of

significance ≥ 0.0411.

Page 16: 1 Design of Engineering Experiments Part 2 – Basic Statistical Concepts Simple comparative experiments –The hypothesis testing framework –The two-sample

16

Minitab Two-Sample t-Test ResultsTwo-Sample T-Test and CI: Form 1, Form 2

Two-sample T for Form 1 vs Form 2

N Mean StDev SE Mean

Form 1 10 16.764 0.316 0.10

Form 2 10 17.042 0.248 0.078

Difference = mu Form 1 - mu Form 2

Estimate for difference: -0.278000

95% CI for difference: (-0.545073, -0.010927)

T-Test of difference = 0 (vs not =): T-Value = -2.19 P-Value = 0.042 DF = 18

Both use Pooled StDev = 0.2843

Page 17: 1 Design of Engineering Experiments Part 2 – Basic Statistical Concepts Simple comparative experiments –The hypothesis testing framework –The two-sample

17

Checking Assumptions – The Normal Probability Plot

Page 18: 1 Design of Engineering Experiments Part 2 – Basic Statistical Concepts Simple comparative experiments –The hypothesis testing framework –The two-sample

18

Importance of the t-Test

• Provides an objective framework for simple comparative experiments

• Could be used to test all relevant hypotheses in a two-level factorial design, because all of these hypotheses involve the mean response at one “side” of the cube versus the mean response at the opposite “side” of the cube

Page 19: 1 Design of Engineering Experiments Part 2 – Basic Statistical Concepts Simple comparative experiments –The hypothesis testing framework –The two-sample

19

Confidence Intervals (See pg. 43)• Hypothesis testing gives an objective statement

concerning the difference in means, but it doesn’t specify “how different” they are

• General form of a confidence interval

• The 100(1- )% confidence interval on the difference in two means:

where ( ) 1 L U P L U

1 2

1 2

1 2 / 2, 2 1 2 1 2

1 2 / 2, 2 1 2

(1/ ) (1/ )

(1/ ) (1/ )

n n p

n n p

y y t S n n

y y t S n n