3 Testing1
3 Testing1
3 Testing1
• Research Hypothesis
a statement of what the researcher believes will be
the outcome of an experiment or a study
• Statistical Hypothesis
a formal structure used to statistically (based on a
sample) test the research hypothesis
H 0 : 0.18
H1 : 0.18
Sample
• Acceptance Region
When the statistical outcome falls into this region,
H0 is accepted.
Size of this region is (1-α).
Gaurav Garg (IIM Lucknow)
Critical Values
Acceptance Region
Distribution of the test statistic (1- a)
Region of Region of
Rejection Rejection
a/2 a/2
Critical Values
0
Upper-tail test or Right Tail Test
Example:
H0: μ = 50 Vs H1: μ > 50
a 1- a
0
Lower-tail test or Left Tail Test
Example:
H0: μ = 50 Vs H1: μ < 50
N(0,1)
(0.025)
(0.025) (0.95)
-1.96 1.96
(0.95)
1.645
• For left tail test (H0: μ = μ0, H1: μ < μ0): -zα
N(0,1)
(0.05)
(0.95)
-1.645
Gaurav Garg (IIM Lucknow)
• Decision Making
• We reject H0 in the favor of H1 at α x100% level
• If |Zc| >= zα/2 (for two tailed test)
• If Zc >= zα (for right tailed test)
• If Zc <= -zα (for left tailed test)
• Accepting H0 means that
The difference between sample mean and
hypothetical population mean is not significant.
(The difference is because of sampling fluctuation only.)
0
Do not reject H0 1.28 Reject H0
• Level of Significance:
Fix the value of a, say 0.05 or 0.10
• Critical Values:
Distribution of test statistic is N(0,1)
Critical values are obtained using N(0,1)
Gaurav Garg (IIM Lucknow)
• Example:
• An insurance agent claims that the average age of policy
holders who have insured through him is less than the
average for all agents, which is 30.5 years.
• A random sample of 100 policy holders who had insured
through him gave the following age distribution:
Age no. of people
16-20 12
21-25 22
26-30 20
31-35 30
36-40 16
• Test his claim at 5% level of significance.
Gaurav Garg (IIM Lucknow)
• Example:
• An engineer has developed a new, energy-
efficient lawn mower engine.
• He claims that the engine will run continuously
for an average of at least 300 minutes on a single
gallon of regular gasoline.
• Suppose a simple random sample of 50 engines
is tested.
• The engines run for an average of 295 minutes,
with a standard deviation of 20 minutes.
• Test the appropriate hypothesis.
Gaurav Garg (IIM Lucknow)
Hypothesis Testing for μ
(Third Method)
• Assumptions:
σ is unknown.
Population is normal.
Sample size is small (n < 30).
• Test Statistic: xμ
Tc
s1 n
tα
• For left tail test (H0: μ = μ0, H1: μ < μ0): -tα
T~t(n-1)
• P( T > -tα) = 1- α Rejection
Region (α)
• P(T < -tα ) = α Acceptance
Region (1- α)
-tα
Rejection Rejection
Region (α/2) Acceptance Region (α/2)
Region (1- α)
- tα/2 tα/2
σ known σ Unknown
Z test Z test.
. .
t test.
For critical value/ p- For critical value/ p-value:
.
value: Use N(0,1)
For critical value/ p-
Use N(0,1) value:
Use t(n-1)
• α = 0.05,
0 z
• Critical Value = ± 1.96 -1.96 1.96
i
( x x ) 2
(n 1) s12
c2 i 1
2
2
0
(21 / 2 ) (2 / 2)
Critical Region
(α)
Acceptance Region
(1-α)
0
(2 )
c (of
• We reject H0 in the2
favor 2
H at α x100% level, if
) 1
Acceptance Region
(1-α)
0
(21 )
(x i x)2
(n 1) s12 29 1.2 1.2
2
c
i 1
16.3125
2 2 1.6 1.6
• For
left tail test, 5% level of significance, d.f = 29,
• Critical Value is (20.95) 17.708
• Reject H0 at 5% level
P x 0 z | *
n
P 0 z x | *
n
0 (1 0 ) 0 (1 0 )
Prob 0 z / 2 p 0 z / 2 |
*
n n
(for two tailed test)
0 (1 0 )
Prob p 0 z |
*
(for right tailed test)
n
0 (1 0 )
Prob 0 z p |
*
(for left tailed test)
n
i
( x x ) 2
(n 1) s12 ns 2
c2 i 1
~ (2n 1)
2 2 2