Beruflich Dokumente
Kultur Dokumente
Chapter 11
Hypothesis Testing II
Statistics for Business and Economics, 6e 2007 Pearson Education, Inc. Chap 11-1
Chapter Goals
After completing this chapter, you should be able to:
Test hypotheses for the difference between two population means
Two means, matched pairs
Independent populations, population variances known
Independent populations, population variances unknown but
equal
Complete a hypothesis test for the difference between two
proportions (large samples)
Use the chi-square distribution for tests of the variance of a normal
distribution
Use the F table to find critical F values
Statistics for Business and
Complete an F test for the equality of two variances
Economics, 6e 2007 Pearson
Education, Inc. Chap 11-2
Two Sample Tests
Population Population
Means, Means, Population Population
Matched Independent Proportions Variances
Pairs Samples
Examples:
Same group Group 1 vs. Proportion 1 vs. Variance 1 vs.
before vs. after independent Proportion 2 Variance 2
treatment for
Statistics Group 2and
Business
Economics, 6e 2007 Pearson
(Note similarities to Chapter 9)
Education, Inc. Chap 11-3
Matched Pairs
Tests Means of 2 Related Populations
Matched Paired or matched samples
Pairs Repeated measures (before/after)
Use difference between paired values:
di = xi - yi
Assumptions:
Both Populations Are Normally Distributed
d D0
t
sd
n
Where
D0 = hypothesized mean difference
Statistics for Business and
sd = sample standard dev. of differences
Economics, 6e 2007 nPearson
= the sample size (number of pairs)
Education, Inc. Chap 11-5
Decision Rules: Matched Pairs
Paired Samples
Lower-tail test: Upper-tail test: Two-tail test:
H0: x y 0 H0: x y 0 H0: x y = 0
H1: x y < 0 H1: x y > 0 H1: x y 0
/2 /2
-t t -t/2 t/2
Reject H0 if t < -tn-1, Reject H0 if t > tn-1, Reject H0 if t < -tn-1 ,
or t > tn-1 ,
Statistics for Businesst and
dD 0
has n - 1 d.f.
Economics, 6eWhere
s
2007 Pearson
n
d
R.K. 0 0 0 n 1
M.O. 4 0 - 4
Statistics for Business and -21 5.67
Economics, 6e 2007 Pearson
Education, Inc. Chap 11-7
Matched Pairs: Solution
Has the training made a difference in the number of
complaints (at the = 0.01 level)?
Reject Reject
H0: x y = 0
H1: x y 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
Test Statistic: (t stat is not in the reject region)
Conclusion: There is not a
d Dfor
Statistics 4.2 0 and
0 Business
t 1.66 significant change in the
sd / n 6e5.67/
Economics, 2007 5 Pearson number of complaints.
Education, Inc. Chap 11-8
Difference Between Two Means
Independent
Population means,
independent
samples
x2 and y2 unknown
x2 and y2
assumed equal Test statistic is a a value from the
Statistics for Business
2 2
and Students t distribution
x and y
Economics, 6e 2007 Pearson
assumed unequal
Education, Inc. Chap 11-10
x2 and y2 Known
Population means,
independent The test statistic for
samples x y is:
x2 and y2 known
* z
x y D0
2 2
x2 and y2 unknown x y
nx ny
Statistics for Business and
Economics, 6e 2007 Pearson
Education, Inc. Chap 11-13
Hypothesis Tests for
Two Population Means
Two Population Means, Independent Samples
/2 /2
-z z -z/2 z/2
Statistics
Reject H0for
if zBusiness
< -z and
Reject H0 if z > z Reject H0 if z < -z/2
Economics, 6e 2007 Pearson or z > z/2
2 2
x and y
Economics, 6e 2007 Pearson
assumed unequal
Education, Inc. Chap 11-16
x2 and y2 Unknown,
Assumed Equal
(continued)
/2 /2
-t t -t/2 t/2
Reject H0 if t < -tn-1, Reject H0 if t > tn-1, Reject H0 if t < -tn-1 ,
Statistics for Business and or t > tn-1 ,
Economics, 6e 2007 Pearson
Where t has n - 1 d.f.
Education, Inc. Chap 11-22
Pooled Variance t Test: Example
You are a financial analyst for a brokerage firm. Is there
a difference in dividend yield between stocks listed on the
NYSE & NASDAQ? You collect the following data:
NYSE NASDAQ
Number 21 25
Sample mean 3.27 2.53
Sample std dev 1.30 1.16
t
X 1
X 2 1 2
3.27 2.53 0 2.040
1 1 1 1
S
2
p
1.5021
n1 n2 21 25
S2 1
n 1 S1
2
n 2 1 S 2
2
21 11.30 2
25 11.16 2
1.5021
p
(n1 1) (n2 1) (21 - 1) (25 1)
Statistics for Business and
Economics, 6e 2007 Pearson
Education, Inc. Chap 11-24
Solution
Reject H0 Reject H0
H0: 1 - 2 = 0 i.e. (1 = 2)
H1: 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
t 2.040
1 1
1.5021 Conclusion:
21 25 There is evidence of a
Statistics for Business and
Economics, 6e 2007 Pearson difference in means.
Education, Inc. Chap 11-25
Two Population Proportions
Goal: Test hypotheses for the
Population difference between two population
proportions proportions, Px Py
Assumptions:
Both sample sizes are large,
nP(1 P) > 9
z
p x p y
p 0 (1 p 0 ) p 0 (1 p 0 )
nx ny
n xp x n yp y
Statistics for Business and Where p 0
Economics, 6e 2007 Pearson nx ny
Education, Inc. Chap 11-28
Decision Rules: Proportions
Population proportions
Lower-tail test: Upper-tail test: Two-tail test:
H0: px py 0 H0: px py 0 H0: px py = 0
H1: px py < 0 H1: px py > 0 H1: px py 0
/2 /2
-z z -z/2 z/2
Reject H0 if z < -z Reject H0 if z > z Reject H0 if z < -z
Statistics for Business and or z > z
Economics, 6e 2007 Pearson
Education, Inc. Chap 11-29
Example:
Two Population Proportions
Is there a significant difference between the
proportion of men and the proportion of
women who will vote Yes on Proposition A?
.50 .62
.549 (1 .549) .549 (1 .549) Decision: Do not reject H0
72 50 Conclusion: There is not
(n 1)s 2
2
n 1
2
follows a chi-square distribution with
(n 1) degrees of freedom
Statistics for Business and
Economics, 6e 2007 Pearson
Education, Inc. Chap 11-33
Confidence Intervals for the
Population Variance
(continued)
(n 1)s 2
2
n 1
02
/2 /2
H0: x2 = y2
Two-tail test
H1: x2 y2
Statistics for Business and
The two populations are assumed to be
Economics, 6e 2007 Pearson
independent and normally distributed
Education, Inc. Chap 11-36
Hypothesis Tests for Two Variances
(continued)
0 0 F
Do not
reject H0
Reject H0 F Do not
reject H0
Reject H0
Fnx 1,ny 1, / 2
Fn x 1,ny 1,
Do not
F
Reject H0
reject H0
F = 1.256 is not in the
rejection region, so we do not F20 , 24 , 0.10/2 2.03
reject H0
Conclusion: There is not sufficient evidence
For variances
F test for two variances:
Tools | data analysis | F-test: two sample for variances
Statistics for Business and
Economics, 6e 2007 Pearson
Education, Inc. Chap 11-43
Two-Sample Tests in PHStat
Input
Output
Input
Output