Course 9
Course 9
Course 9
Session 9
Test on two
populations
Test on Two Populations:
2
Hypothesis Testing
3
Inferences About the Difference Between
Two Population Means: s 1 and s 2 Known
Interval Estimation of m1 – m2
4
Estimating the Difference Between
Two Population Means
Let 1 equal the mean of population 1 and 2 equal the
mean of population 2.
The difference between the two population means is 1 - 2.
5
Sampling distribution of x1 x2
12 22
Standard Deviation (Standard Error) : x x
1 2
n1 n2
6
Interval Estimation of m1 – m2 :
s1 and s2 Known
Interval Estimate:
2
2
x1 x2 z /2 1
2
n1 n2
Where : 1 - is the confidence coefficient
7
Interval Estimation of m1 – m2 :
s1 and s2 Known
Example: Par, Inc.
Sample #1 Sample #2
Par, Inc. Rap, Ltd.
Sample Size 120 balls 80 balls
Sample Mean 295 yards 278 yards
Standard deviation s 1 = 15 yards s 2 = 20 yards
8
Interval Estimation of m1 – m2 :
s1 and s2 Known
Example: Par, Inc.
Answer :
where:
1 = mean distance for the population of Par, Inc. golf balls
2 = mean distance for the population of Rap, Ltd. golf balls
9
Interval Estimation of m1 – m2 :
s1 and s2 Known
Interval Estimate:
12 22 152 202
x1 x2 z /2 17 1.96
n1 n2 120 80
17 5.14 or 11.86 yards to 22.14 yards
10
Hypothesis Tests About m1 – m2 :
s1 and s2 Known
Hypothesis:
( x1 x2 ) D0
Test Statistic: z
2
2
1
2
n1 n2
11
Hypothesis Tests About m1 – m2 :
s1 and s2 Known
Example: Par, Inc.
Answer :
1. Develop the hypotheses H0: 1 - 2 < 0 and Ha: 1 - 2 > 0
where:
1 = mean distance for the population of Par, Inc. golf balls
2 = mean distance for the population of Rap, Ltd. golf balls
12
Hypothesis Tests About m1 – m2 :
s1 and s2 Known
Example: Par, Inc.
Answer :
2. Specify the level of significance : a = 0.01
3. Compute the value of the test statistics
( x1 x2 ) D0 (295 278) 0 17
z 6.49
12 22 (15) 2
(20) 2 2.62
n1 n2 120 80
4. Determine the critical value : Z0,01 = 2.33
5. Decision : We reject H0 because 6.49 > 2.33. At the 0.01 level of
significance, the sample evidence indicates the mean driving distance of
Par, Inc. golf balls is greater than the mean driving distance of Rap,Ltd.
golf balls.
13
Inferences About the Difference Between
Two Population Means: s 1 and s 2 Unknown
Interval Estimation of m1 – m2
14
Inferences About the Difference Between
Two Population Means: s 1 and s 2 Unknown
Interval Estimate:
2 2
s s
x1 x2 z /2 1
2
n1 n2
No assumptions about the shape of the populations are
required
The samples are from independent populations
15
Hypothesis Tests About m1 – m2 :
s1 and s2 Known
Hypothesis:
( x1 x2 ) D0
Test Statistic: z
s12 s22
n1 n2
16
Hypothesis Tests About m1 – m2 :
s1 and s2 Known
Example:
17
Hypothesis Tests About m1 – m2 :
s1 and s2 Known
Example:
Answer :
1. Develop the hypotheses H0: 1 - 2 < 0 and Ha: 1 - 2 > 0
where:
1 = mean starting salary of a graduate from College 1
2 = mean starting salary of a graduate from College 2
18
Hypothesis Tests About m1 – m2 :
s1 and s2 Known
Example:
Answer :
3. Compute the value of the test statistics
Because both samples are more than 30, the test statistic is Z
19
Inferences About the Difference Between
Two Population Means: s 1 and s 2 Unknown
Case 3 :
If one or more of the samples contain less than 30
observations we use the t distribution as the test
statistic.
Required assumptions
Both populations must follow the normal distribution.
The populations must have equal standard deviations.
The samples are from independent populations.
20
Inferences About the Difference Between
Two Population Means: s 1 and s 2 Unknown
Case 3 :
1 1
Interval Estimate: x1 x2 tn1 n 2 2 d f Sc
n1 n 2
i1 X1 X i 2 X 2
2 2
where Sc2
X
(n1 1) S12 (n2 1) S 22
n1 n 2 2 ( n1 n2 2)
2
S c is a pooled sample variance
21
Hypothesis Tests About m1 – m2 :
s1 and s2 Known
Hypothesis:
Test Statistic:
X X X X 1 1
2 2
i1 1 i2 2 1 1 Sc
n1 n 2
n1 n 2 2 n1 n 2
22
Hypothesis Tests About m1 – m2 :
s1 and s2 Known
Example:
A recent EPA (Environmental Protection Agency) study
compared the highway fuel economy of domestic and
imported passenger cars. A sample of 15 domestic cars
revealed a mean of 33.7 mpg (miles per gallon) with a
standard deviation of 2.4 mpg. A sample of 12 imported
cars revealed a mean of 35.7 mpg with a standard
deviation of 3.9. At the 0.05 significance level can the EPA
conclude that the mpg is higher on the imported cars?
23
Hypothesis Tests About m1 – m2 :
s1 and s2 Known
Example:
Answer :
1. Develop the hypotheses H0: d - I ≥ 0 and Ha: d - I < 0
where:
d = mean mpg of domestic cars
I = mean mpg of imported cars
24
Hypothesis Tests About m1 – m2 :
s1 and s2 Known
Example:
Answer :
3. Compute the value of the test statistics
Because both samples are less than 30, the test statistic is t
25
Hypothesis Tests About m1 – m2 :
s1 and s2 Known
Example:
Answer :
4. Determine the critical value : t0,05, 25 df = -1.708
26
Inferences About the Difference Between
Two Population Means : Matched Samples
Hypothesis Testing Involving Paired
Observations
Independant samples Dependant samples are
are samples that are not samples that are paired or
related in any way related in same fashion
Examples
If the men's group and the women's If you take a sample of people who
group are asked about their income, have had a knee operation and
independent samples exist. In this interview them before and after the
case, a person from one sample operation, this is a dependent
cannot be assigned to a person from sample. This is because the same
the other sample. person was interviewed at two
different times.
27
Inferences About the Difference Between
Two Population Means : Matched Samples
d d
2
T
d d
where d
d i
and sd
i
sd n n n 1
28
Inferences About the Difference Between
Two Population Means : Matched Samples
Example :
29
Inferences About the Difference Between
Two Population Means : Matched Samples
30
Inferences About the Difference Between
Two Population Means : Matched Samples
Answer :
1. Develop the hypotheses H0: d = 0, H1: d
31
Inferences About the Difference Between
Two Population Means : Matched Samples
Answer :
1. Compute the value of the test statistic.
d
d i
(7 6 ... 5)
2,7
n 10
d i d
2
(7 2,7) 2 (6 2,7) 2 ... (5 2,7) 2 76,1
sd 2,9
n 1 9 9
d d 2, 7 0
T 2,94
sd n 2,9 10
32
Inferences About the Difference Between
Two Population Means : Matched Samples
Answer :
1. Determine the critical value and the rejection rule
33
Inferences About the Difference Between
Two Population Proportions
34
Inferences About the Difference Between
Two Population Proportions
35
Sampling distribution of p1 p2
Expected Value : E ( p1 p2 ) p1 p2
p1 1 p1 p2 1 p2
pp
1 2
n1 n2
36
Sampling distribution of p1 p2
37
Interval Estimation of p1 – p2 :
Interval Estimate:
p1 1 p1 p2 1 p2
p1 p2 z /2
n1 n2
38
Sampling distribution of p1 p2
39
Comparison of proportions : conditions
40
Comparison of proportions
Example: Does the new RIO MP3 player have the same appeal
for everyone? Here is the information obtained from a study with
2 groups of students.
41
Comparison of proportions
1- Informations:
n1 = 78 p1 = 63 / 78 = 0.808
n2 = 82 p2 = 49 / 82 = 0.598
2. The test conditions are met: n1 and n2 are large and independent
H 1: P1 - P2 ¹ 0
42
Comparison of proportions
( p1 p2 ) ( p1 p2 ) (0.808 0.598) 0
Z 2.90
1 1 1 1
p (1 p ) 0.7(1 0.7)
n1 n2 78 82
Where :
n1 p1 n2 p2 78 0.808 82 0.598
p 0.7
n1 n2 78 82
43
Comparison of proportions
H1: P1 - P2 ¹ 0 Z 2.90
a = 0.01
Decision:
44
Thank you
45