4 Testing2
4 Testing2
4 Testing2
• Example:
• In a survey of buying habits, 400 women shoppers are
chosen at random in a super market ‘A’.
• Their average weekly food expenditure is Rs. 250 with a
s.d. of Rs. 40.
• For 400 women shoppers chosen at random in some other
super market ‘B’ , the average weekly food expenditure is
Rs. 220 with a s.d. of Rs. 55.
• Do these two populations have similar shopping habits.
• Are the average weekly food expenditure of two
populations of shoppers equal.
QAM – II by Gaurav Garg (IIM Lucknow)
• Notations:
Population Population Sample size Sample mean Sample
Mean Standard Standard
Deviation Deviation
First
Second
• To test:
H0: μ1 = μ2 H1: μ1 ≠ μ2
H0: μ1 = μ2 H1: μ1 > μ2
H0: μ1 = μ2 H1: μ1 < μ2 (LTT)
H0: μ2= μ1 H1: μ2 > μ1 (RTT)
QAM – II by Gaurav Garg (IIM Lucknow)
H0: μ1 = μ2 , H1: μ1 ≠ μ2 H0: μ1 = μ2 , H1: μ1 > μ2 H0: μ1 = μ2 , H1: μ1 < μ2
Or,
Under Null hypothesis:
• where
•
.025 .025
-2.0154 0 2.0154 t
2.040
C.B. 6 4 -2
T.F. 20 6 -14
M.H. 3 2 -1
R.K. 0 0 0
M.O 4 0 -4
QAM – II by Gaurav Garg (IIM Lucknow)
• To test H0: μ1 = μ2 H1: μ1 ≠ μ2
d 4.2
Tc 1.66
sd / n 5.67 / 5
• At 10 % level and 4 d.f., Critical Value = -/+ 2.132
Reject Reject
/2 /2
• To test:
• H0: 𝝅1 = 𝝅2 H1: 𝝅1 ≠ 𝝅2
• H0: 𝝅1 = 𝝅2 H1: 𝝅1 > 𝝅2
• H0: 𝝅1 = 𝝅2 H1: 𝝅1 < 𝝅2
• To test:
• H0: σ12 = σ22 H1: σ12 ≠ σ22
• H0: σ12 = σ22 H1: σ12 > σ22
• H0: σ12 = σ22 H1: σ12 < σ22
0
Reject H0 Accept H0 Reject H0
F(1 / 2 ) F( / 2 )
Critical Region
(α)
Acceptance Region
(1-α)
0
Accept H0 Reject H0
F( )
Fc F( )
• We reject H0 in the favor of H1 at α x100% level, if
QAM – II by Gaurav Garg (IIM Lucknow)
• For left tail test (H0: σ12 = σ22 H1: σ12 < σ22 ):
Critical Region
(α)
Acceptance Region
(1-α)
0
Reject H0 F(1 ) Accept H0
Fc F(1 )
• We reject H0 in the favor of H1 at α x100% level, if
QAM – II by Gaurav Garg (IIM Lucknow)
• The F critical value is found from the F table
• There are two appropriate degrees of freedom:
numerator and denominator.
• In the F table,
numerator degrees of freedom determine the column
(denoted as n1 or ν1 usually)
denominator degrees of freedom determine the row
(denoted as n2 or ν2 usually)
Note that
1
F(1 ) [At d.f. ( 1 , 2 ) ]
F( ) [At d.f. ( 2 , 1 ) ]
QAM – II by Gaurav Garg (IIM Lucknow)
• Example: NYSE NASDAQ
• Number 21 25
• Mean 3.27 2.53
• Std dev 1.30 1.16
• We wish to test at 5% level of significance:
• H0: σ12 = σ22 Against H1: σ12 ≠ σ22
• Test Statistic: s 2 ( NYSE)
1 1.30 2
Fc 2
2
1.256
s ( NASDAQ)
1 1.16
• Critical Values at (20, 24) d.f.
• Upper Value = FU = F(0.025) [at d.f (20, 24)] = 2.33
• Lower Value = FL = F(0.975) [at d.f (20, 24)]
• = 1/F(0.025) [at d.f (24, 20)] = 1/2.41 = 0.41
0 F
Reject H0 Accept H0 Reject H0
FU=2.33
FL=0.41