SDA 3E Chapter 5
SDA 3E Chapter 5
One sample test for mean, unknown PHStat: One Sample Test – Z-test for
the Mean, Sigma Known
One sample test for mean, unknown PHStat: One Sample Test – t-test for the
Mean, Sigma Unknown
One sample test for proportion PHStat: One Sample Test – Z-test for
the Proportion
Two sample test for means, known Excel z-test: Two-Sample for Means
PHStat: Two Sample Tests – Z-Test for
Differences in Two Means
Two sample test for means, unknown, Excel t-test: Two-Sample Assuming
unequal Unequal Variances
Hypothesis Tests and
Spreadsheet Support (cont’d)
Type of Test Excel/PHStat Procedure
Two sample test for means, unknown, Excel t-test: Two-Sample Assuming
assumed equal Equal Variances
PHStat: Two Sample Tests – t-Test for
Differences in Two Means
Paired two sample test for means Excel t-test: Paired Two-Sample for
Means
Two sample test for proportions PHStat: Two Sample Tests – Z-Test for
Differences in Two Proportions
Equality of variances Excel F-test Two-Sample for Variances
PHStat: Two Sample Tests – F-Test for
Differences in Two Variances
One Sample Tests for Means –
Standard Deviation Unknown
Example hypothesis
H0: 0 versus H1: < 0
Test statistic:
x 0
t
s/ n
0 0
Reject if z > z
Two Sample Tests for Means –
Sigma Unknown and Unequal
Example hypothesis
H0: – 2 = 0 versus H1: - 2 0
Test Statistic:
s12 s 22
t = (x1 - x2 ) /
n1 n2
2
s12 s 22
n1 n2
with df =
( s12 / n1 ) 2 ( s 22 / n2 ) 2
1 n 1 2 n 1
SSW ( X ij X j ) 2
j 1 i 1
fe
where f0 = observed frequency
Low High
Low
High
Experimental Results
Main Effects
Measures the difference in the response that results
from different factor levels
Calculations
Temperature effect = (Average yield at high level) – (Average yield at low
level)
= (B + D)/2 – (A + C)/2
= (90.5 + 81)/2 – (84 + 88.5)/2
= 85.75 – 86.25 = –0.5 percent.
Reaction effect = (Average yield at high level) – (Average yield at low level)
= (C + D)/2 – (A + B)/2
= (88.5 + 81)/2 – (84 + 90.5)/2
= 84.75 – 87.25 = –2.5 percent.
Interactions
When the effect of changing one factor
depends on the level of other factors.
When interactions are present, we
cannot estimate response changes by
simply adding main effects; the effect
of one factor must be interpreted
relative to levels of the other factor.
Interaction Calculations
Take the average difference in response
when the factors are both at the high or low
levels and subtracting the average difference
in response when the factors are at opposite
levels.
Temperature × Time Interaction
= (Average yield, both factors at same level) –
(Average yield, both factors at opposite levels)
= (A + D)/2 – (B + C)/2
= (84 + 81)/2 – (90.5 + 88.5)/2 = -7.0 percent
Graphical Illustration of
Interactions
Two-Way ANOVA
Method for analyzing variation in a 2-factor
experiment
SST = SSA + SSB + SSAB + SSW
where
SST = total sum of squares
SSA = sum of squares due to factor A
SSB = sum of squares due to factor B
SSAB = sum of squares due to interaction
SSW = sum of squares due to random variation (error)
Mean Squares
MSA = SSA/(r – 1)
MSB = SSB/(c – 1)
MSAB = SSAB/(r-1)(c-1)
MSW = SSW/rc(k-1),
where k = number of replications of
each treatment combination.
Hypothesis Tests
Compute F statistics by dividing each mean square
by MSW.
F = MSA/MSW tests the null hypothesis that means for
each treatment level of factor A are the same against
the alternative hypothesis that not all means are equal.
F = MSB/MSW tests the null hypothesis that means for
each treatment level of factor A are the same against
the alternative hypothesis that not all means are equal.
F = MSAB/MSW tests the null hypothesis that the
interaction between factors A and B is zero against the
alternative hypothesis that the interaction is not zero.
Excel Anova: Two-Factor with
Replication
Results
Examine p-
values for
significance