Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Chap 10-1
Learning Objectives
In this chapter, you learn how to use hypothesis testing for
comparing the difference between:
The means of two independent populations with
equal variances
The means of two independent populations with
unequal variances
The means of two related populations
The proportions of two independent populations
The variances of two independent populations
Chap 10-2
Independent
Population
Means
Means,
Related
Populations
Independent
Population
Proportions
Same group
before vs. after
treatment
Proportion 1vs.
Proportion 2
Independent
Population
Variances
Examples
Group 1 vs.
Group 2
Variance 1 vs.
Variance 2
Chap 10-3
Two-Sample Tests
Independent Populations
Different data sources
Independent
Population Means
1 and 2 known
1 and 2 unknown
Independent: Sample
Chap 10-4
The Process
There are two tests to determine if the means of two
Chap 10-5
H0: 12 22
H1: 12 < 22
H0: 12 22
H1: 12 > 22
Two-tail test
Lower-tail test
Upper-tail test
Chap 10-6
S
F
S
S 22 = Variance of Sample 2
n2 - 1 = denominator degrees of freedom
Statistics for Managers Using Microsoft Excel, 5e 2008 Prentice-Hall, Inc.
Chap 10-7
F Test: An Example
You are a financial analyst for a brokerage firm. You want to
compare dividend yields between stocks listed on the NYSE &
NASDAQ. You collect the following data:
NYSE
NASDAQ
Number
21
25
Mean
3.27
2.53
Std dev
1.30
1.16
Is there a difference in the
variances between the NYSE
& NASDAQ at the = 0.05 level?
Statistics for Managers Using Microsoft Excel, 5e 2008 Prentice-Hall, Inc.
Chap 10-8
(continued)
H0: 12 = 22
H1: 12 22
The test statistic is:
S12 1.302
F 2
1.256
2
S2 1.16
p-value= .588846
= .05
Chap 10-9
F test in PhStat
PHStat | Two-Sample Tests | F Test for
Chap 10-10
Two-tailed test:
H0: 1 2
H1: 1 < 2
H0: 1 2
H1: 1 > 2
H0: 1 = 2
H1: 1 2
i.e.,
i.e.,
i.e.,
H0: 1 2 0
H1: 1 2 < 0
H0: 1 2 0
H1: 1 2 > 0
H0: 1 2 = 0
H1: 1 2 0
Chap 10-11
Assumptions:
Samples are randomly and
independently drawn
1 and 2 known
1 and 2 unknown
Chap 10-12
1 and 2 unknown
but unequal
where 1=2 or
individual variance t test
where 12 (proven by F
test)
Chap 10-13
(continued)
Population means,
independent
samples
1 and 2 unknown
but equal
Sp
n1 1S12 n2 1S2 2
(n1 1) (n2 1)
Chap 10-14
(continued)
Population means,
independent
samples
1 and 2 unknown
but equal
X2
1
1
S
n1 n 2
2
p
2
2
1
S
1
S
1
2
2
S2 1
p
(n1 1) (n2 1)
Chap 10-15
Chap 10-16
Solution
F = 1.256
p = .5888
H0: 1 = 2
Do Not Reject
H1: 1 2
2 = 2
1
2
= 0.05
df = 21 + 25 - 2 = 44
Pooled Test Statistic:
3.27 2.53
1 1
1.5021
21 25
p-value:
2.0397
.047407
Reject H0
Reject H0
.025
.025
Decision:
Reject H0 at = 0.05
Conclusion:
There is sufficient evidence of
a difference in mean dividend
yield for the two exchanges.
Chap 10-17
Chap 10-18
Independent Populations
Unequal Variance
If you cannot assume population variances
Chap 10-19
(X 1 X 2)
t
2
2
s1 s2
n1 n2
( s / n1 s / n2 )
d.f.
( s12 / n1 ) 2 ( s22 / n2 ) 2
n2 1
n1 1
2
1
2
2
p TDIST(t , df , tails)
Statistics for Managers Using Microsoft Excel, 5e 2008 Prentice-Hall, Inc.
Chap 10-20
Chap 10-21
H0: m1 = m2
H1: m1 m2
= 0.05
df = 92
F = 3.9313
p = .001794
Reject HO: 1
t = 1.34
p-value =.1901
Reject H0
Reject H0
.025
.025
.1901
Decision:
Fail to Reject at = 0.05
Conclusion:
Chap 10-22
Chap 10-23
Confidence Intervals
Independent Populations
Independent
Population Means
X 2 t n1 n 2 - 2
1 and 2 known
1
1
S
n1 n 2
2
p
Where
1 and 2 unknown
2
2
1
S
1
S
1
2
2
S2 1
p
(n1 1) (n2 1)
Chap 10-24
Two-Sample Tests
Related Populations
Tests Means of 2 Related Populations
D = X1 - X2
Eliminates Variation Among Subjects
Assumptions:
Both Populations Are Normally Distributed
Chap 10-25
Paired
samples
D
t
SD
n
Statistics for Managers Using Microsoft Excel, 5e 2008 Prentice-Hall, Inc.
SD
2
(D
D
)
i
i1
n 1
Chap 10-26
6
20
3
0
4
4
6
2
0
0
- 2
-14
- 1
0
- 4
-21
D =
Di
n
= -4.2
SD
2
(D
D
)
i
n 1
5.67
Chap 10-27
= .01
D = - 4.2
Reject
/2
/2
-1.66
d.f. = n - 1 = 4
Test Statistic:
D
4.2
t
1.66
SD / n 5.67/ 5
p-value=
Reject
.1730
Chap 10-28
Chap 10-29
Chap 10-30
Upper-tail test:
Two-tail test:
H0: 1 2
H1: 1 < 2
H0: 1 2
H1: 1 > 2
H0: 1 = 2
H1: 1 2
i.e.,
i.e.,
i.e.,
H0: 1 2 0
H1: 1 2 < 0
H0: 1 2 0
H1: 1 2 > 0
H0: 1 2 = 0
H1: 1 2 0
Chap 10-31
X1 X 2
p
n1 n 2
Chap 10-32
where
p1 p2
1 1
p (1 p )
n1 n2
p
X1 X 2
X
X
, P1 1 , P2 2
n1 n 2
n1
n2
Chap 10-33
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?
significance
Statistics for Managers Using Microsoft Excel, 5e 2008 Prentice-Hall, Inc.
Chap 10-34
Assumptions
Men np=72(.5)=36 n(1-p)=72(.5)=36
Women np=50(.62)=31 n(1-p)50(.38)=19
All values > 5
Chap 10-35
p1 = 36/72 = .50
X1 X 2 36 31 67
p
.549
n1 n 2 72 50 122
Statistics for Managers Using Microsoft Excel, 5e 2008 Prentice-Hall, Inc.
Chap 10-36
p1 p2
1 1
p (1 p)
n1 n 2
.50 .62
1
1
.549 (1 .549)
72 50
Reject H0
.025
.025
-1.96
-1.31
1.31
Reject H0
1.96
Chap 10-37
p1 p2 Z
p1 (1 p1 ) p2 (1 p2 )
n1
n2
Chap 10-38
Chap 10-39
Input
Output
Chap 10-40
Input
Output
Chap 10-41
Chapter Summary
In this chapter, we have
Compared two independent samples
Performed pooled variance t test for the differences
in two means
Examined unequal variance t test for the differences
in two means
Formed confidence intervals for the differences
between two means
Compared two related samples (paired samples)
Performed paired sample t test for the mean
difference
Formed confidence intervals for the paired difference
Chap 10-42
Chapter Summary
In this chapter, we have
Compared two population proportions
Performed Z-test for equality of two population
proportions
Formed confidence intervals for the difference
between two population proportions
Performed F tests for the difference between two
population variances
Chap 10-43