Professional Documents
Culture Documents
Population
means, Paired Population
independent samples proportions
samples
Examples:
Group 1 vs. Same group Proportion 1 vs.
independent before vs. after Proportion 2
Group 2 treatment
Difference Between Two Means
σ1 and σ2 unknown,
Population standard
deviations are known
n1 or n2 < 30
σ1 and σ2 known
(continued)
Population means,
independent The confidence interval for
samples μ1 – μ2 is:
*
x
σ1 and σ2 known 2 2
σ σ2
1 x 2 z /2 1
σ1 and σ2 unknown, n1 n2
n1 and n2 30
σ1 and σ2 unknown,
n1 or n2 < 30
σ1 and σ2 unknown, large samples
Population means,
independent Forming interval
samples estimates:
use sample standard
σ1 and σ2 known
deviation s to estimate σ
σ1 and σ2 unknown,
n1 and n2 30
* the test statistic is a z value
σ1 and σ2 unknown,
n1 or n2 < 30
σ1 and σ2 unknown, large samples
(continued)
Population means,
independent The confidence interval for
samples μ1 – μ2 is:
σ1 and σ2 known
2 2
s s2
σ and σ unknown, *
x 1 x 2 z /2 1
1 2 n1 n2
n1 and n2 30
σ1 and σ2 unknown,
n1 or n2 < 30
σ1 and σ2 unknown, small samples
σ1 and σ2 unknown,
n1 or n2 < 30
*
σ1 and σ2 unknown, small samples
(continued)
σ1 and σ2 known
sp
n1 1 s
1
2
n2 1 s2
2
σ1 and σ2 unknown, n1 n2 2
n1 and n2 30
σ1 and σ2 unknown,
n1 or n2 < 30
*
σ1 and σ2 unknown, small samples
(continued)
σ1 and σ2 known x 1
x 2 t /2 sp
1 1
n1 n2
σ1 and σ2 unknown,
n1 and n2 30 Where t/2 has (n1 + n2 – 2) d.f.,
*
and
σ1 and σ2 unknown,
sp
n1 1 s12 n2 1 s2 2
n1 or n2 < 30 n1 n2 2
Paired Samples
n
The sample standard
deviation is i
(d d) 2
sd i 1
n 1
n is the number of pairs in the paired sample
Paired Differences
(continued)
Population means,
independent The test statistic for
samples μ1 – μ2 is:
σ1 and σ2 known * z
x 1
x 2 μ1 μ2
2 2
σ1 and σ2 unknown, σ σ2
n1 and n2 30
1
n1 n2
σ1 and σ2 unknown,
n1 or n2 < 30
σ1 and σ2 unknown, large samples
Population means,
independent The test statistic for
samples μ1 – μ2 is:
σ1 and σ2 known
z
x 1
x 2 μ1 μ2
σ1 and σ2 unknown,
n1 and n2 30
* s
1
2
s2
2
n1 n2
σ1 and σ2 unknown,
n1 or n2 < 30
σ1 and σ2 unknown, small samples
samples
x 1 x 2 μ1 μ 2
σ1 and σ2 known
t
1 1
sp
σ1 and σ2 unknown, n1 n 2
n1 and n2 30
Where t/2 has (n1 + n2 – 2) d.f.,
σ1 and σ2 unknown,
n1 or n2 < 30
* and
sp
n1 1 s12 n2 1 s2 2
n1 n2 2
Hypothesis tests for μ1 – μ2
/2 /2
t z
x 1
x 2 μ1 μ2 3.27 2.53 0
2.040
1 1 1 1
sp 1.2256
n1 n2 21 25
sp
n1 1 s12 n2 1 s2 2
21 11.30 2 25 11.16 2 1.2256
n1 n2 2 21 25 2
Solution
Reject H0 Reject H0
H0: μ1 - μ2 = 0 i.e. (μ1 = μ2)
HA: μ1 - μ2 ≠ 0 i.e. (μ1 ≠ μ2)
.025 .025
= 0.05
df = 21 + 25 - 2 = 44 -2.0154 0 2.0154 t
Critical Values: t = ± 2.0154
2.040
Test Statistic: Decision:
3.27 2.53 Reject H0 at = 0.05
z 2.040
1 1
1.2256 Conclusion:
21 25 There is evidence of a
difference in means.
Hypothesis Testing for
Paired Samples
/2 /2
-21
n 1
5.67
Paired Samples: Solution
Has the training made a difference in the number of
complaints (at the 0.01 level)?
Reject Reject
H0: μd = 0
HA: μd 0 /2
/2
= .01 d = - 4.2 - 4.604 4.604
- 1.66
Critical Value = ± 4.604
d.f. = n - 1 = 4 Decision: Do not reject H0
(t stat is not in the reject region)
Test Statistic:
Conclusion: There is not a
d μd 4.2 0
t 1.66 significant change in the
sd / n 5.67/ 5 number of complaints.
Two Population Proportions
p 1
p 2 z /2
p1(1 p1 ) p 2 (1 p 2 )
n1
n2
Hypothesis Tests for
Two Population Proportions
Population proportions
n1p1 n2 p 2 x1 x 2
p
n1 n2 n1 n2
where x1 and x2 are the numbers from
samples 1 and 2 with the characteristic of interest
Two Population Proportions
(continued)
z
p1
p 2 p1 p 2
1 1
p (1 p)
n1 n2
Hypothesis Tests for
Two Population Proportions
Population proportions
Lower tail test: Upper tail test: Two-tailed test:
H0: p1 – p2 0 H0: p1 – p2 ≤ 0 H0: p1 – p2 = 0
HA: p1 – p2 < 0 HA: p1 – p2 > 0 HA: p1 – p2 ≠ 0
/2 /2
z
p1
p 2 p1 p 2
.025 .025
1 1
p (1 p) -1.96 1.96
n1 n2 -1.31
.50 .62 0 1.31
1 1 Decision: Do not reject H0
.549 (1 .549)
72 50 Conclusion: There is not
significant evidence of a
Critical Values = ±1.96
For = .05 difference in proportions
who will vote yes between
men and women.
Chapter Summary
Compared two independent samples
Formed confidence intervals for the differences between two
means
Performed Z test for the differences in two means
Performed t test for the differences in two means
Compared two related samples (paired samples)
Formed confidence intervals for the paired difference
Performed paired sample t tests for the mean difference
Compared two population proportions
Formed confidence intervals for the difference between two
population proportions
Performed Z-test for two population proportions
Hypothesis Tests for
One and Two Population Variances
Course 3
Industrial Engineering Department
Sepuluh Nopember Institute of Technology
Indonesia 2008
Chapter Goals
Hypothesis Tests
for Variances
0 4 8 12 16 20 24 28 2 0 4 8 12 16 20 24 28 2 0 4 8 12 16 20 24 28 2
chi-square table
Upper tail test:
H0: σ2 ≤ σ02
HA: σ2 > σ02
2
Do not reject H0 Reject H0
2
Example
A commercial freezer must hold the selected
temperature with little variation. Specifications call
for a standard deviation of no more than 4 degrees
(or variance of 16 degrees2). A sample of 16
freezers is tested and
yields a sample variance
of s2 = 24. Test to see
whether the standard
deviation specification
is exceeded. Use
= .05
Finding the Critical Value
The the chi-square table to find the critical value:
2 = 24.9958 ( = .05 and 16 – 1 = 15 d.f.)
The test statistic is:
(n 1)s (16 1)24
2
2
2
22.5
σ 16
Since 22.5 < 24.9958,
do not reject H0 = .05
There is not significant
evidence at the = .05 level 2
that the standard deviation Do not reject H0 2 Reject H0
specification is exceeded
= 24.9958
Lower Tail or Two Tailed
Chi-square Tests
/2
/2
2 2
Reject Do not reject H0 Reject Do not Reject
2
1-
reject H0
21-/2 2/2
F Test for Difference in Two
Population Variances
Hypothesis Tests for Variances
0 F 0 F
Do not Reject H0 Do not Reject H0
reject H0 F reject H0 F/2
rejection region rejection region for
for a one-tail test is a two-tailed test is
s12 s12
F 2 F F 2 F / 2
s2 s2
(when the larger sample variance in the numerator)
F Test: An Example
df1 = n1 – 1 = 21 – 1 = 20
Denominator:
df2 = n2 – 1 = 25 – 1 = 24
0
F = 1.256 is not greater than Do not Reject H0
reject H0 F/2
the critical F value of 2.327, so
=2.327
we do not reject H0