Hypothesis Testing For Two Population
Hypothesis Testing For Two Population
n1 = 15 n2 = 15
x1 = $2,255 x2 = $2,140
s1 = $ 645 s2 = $ 708
To determine whether the null hypothesis should be
rejected or not the test statistics should be first be
calculated.
x _ x _ ( _ )
( 1 2) 1 2
t= df = n 1 + n 2 - 2
sp 1 + 1
n1 n2
_ _
Where: x1 and x 2 =sample means from population 1 and 2.
1 - 2 = Hypothesized difference between population
means
n 1 and n = sample sizes from the two populations
2
sp = pooled standard deviation
The test statistics is based upon two important
assumptions:
1. Each population has a normal distribution.
2
2
2. The two populations variances 1 and 2 are
equal.
2
s1 = sample variance from population 1
2
s2 = sample variance from population 2
n 1 and n 2 = sample size from population 1 and 2
Are population variance equal?
Before proceeding to test whether the population mean are
equal, a test is needed to determine the validity of the equal
variances assumption. The F-test can be used to determine
this.
2
s1
F=
2
s2
Using = 0.10 a two tailed test statistics for variance we put the
larger variance in the numerator giving:
2
708
F= = 1.205
2
645
( 15 _ 2
1 ) 645 + ( 15 _ 1 ) 708 2
sp =
+ _ 2
15 15
= 677.23
x _ x _ ( _ )
( 1 2) 1 2
t=
sp 1 + 1
n1 n2
_ ( 0.0 )
t= ( 2,255 – 2,140)
677.23 1
_ + 1_
15 15
= 0.465
This indicate that the difference in sample means is 0.465
standard errors above hypothesized difference of 0. Next
determine the critical value from the t-distribution table
(Excel’s TINV function) with degrees of freedom equal to n1
+ n2 – 2 = 15 + 15 – 2 = 28 and alpha = 0.05 for the two tail
test. The appropriate value is 2.048.
Since t = 0.465 2.048, the null hypothesis should be
rejected.
What if the population variance
are not equal?
_ _
( x1 x2 ) _ ( 1 2 )
t=
2 2
sp s1 s2
_ + _
n1 n2
Degree of Freedom for t-test
statistics with unequal population
variance
2 2
( s1 / n 1 + s2 / n ) 2
2
2 2
( s1 / n 1 s2 / n ) 2
2
n _1
1 n2 _1
Television Viewers Income Case
• The managers believe the mean household income
for cable subscribers is less than for those who do
not subscribe. Thus, by advertising on the network
station , the business could reach a higher income
audience. However, has no actual data to support
their contention. In the spirit of friendly
cooperation, the network managers joined forces
with the local cable provider, Future Vision, to
survey a total of 548 households in the market
area.
Hypothesis Testing-Two Means
- Future-Vision
Issue:
The managers believe the mean household
income for cable subscribers is less than for those
who do not subscribe.
Objective:
Use Excel to help test a hypothesis about the
mean income of two groups. Data file is Future-
Vision.xls
Hypothesis Testing – Future Vision
_ _
( x1 _ 1 + 1
x 2) t/2 s p
n1 n2
Where:
(n 1 _ 2
1 ) 1 +( n _ 1 )s 2
s
2 2
sp =
n + n _ 2
2 1
_ _ s1
2 2
s2
( x1 _ x 2) t/2 s p +
n1 n2
2 2
( s1 / n 1 s2 / n ) 2
2
n _1
1 n _12
Confidence Interval Estimate for 1 - 2 Large
sample nsizes
1
( nand
2
> 30.)
_ _ 2 2
( x1 _ x 2) z/2 s p s1 s2
+
n1 n2
Issue:
A automotive insurance company wants to
determine the difference in mean vehicle damage for
a import luxury car and a comparably priced U.S.
model
Objective:
Use Excel to help construct a confidence
interval estimate for the difference in population
mean damage time. Data file is Crash.xls
Interval Estimation – Insurance Crash Tests