Statistical Hypothesis Testing - One Way & Two Way
Statistical Hypothesis Testing - One Way & Two Way
• 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
• Examples of Research Hypotheses
H 0 : P 0.18 or H 0 : P 0.18
H 1 : P 0.18
Errors in Decision Making
Possible Hypothesis Test Outcomes
Actual Situation
Sample
• Suppose the sample mean age is 20 years.
• Acceptance Region
When the statistical outcome falls into this region,
H0 is accepted.
Size of this region is (1-α).
Critical Values
Acceptance Region
Distribution of the test statistic
Region of Region of
Rejection Rejection
Critical Values
0
Upper-tail test or Right Tail Test
Example:
H0: μ ≤ 50 Vs H1: μ > 50
0
Lower-tail test or Left Tail Test
Example:
H0: μ ≥ 50 Vs H1: μ < 50
Hypothesis Testing for μ
(σ known)
Example:
• A survey, done 10 years ago, of CPAs in the U.S. found that
their average salary was $74,914.
• An accounting researcher would like to test whether over
the years
this average has increased?
Right or Upper Tail Test (H0: μ ≤ 74914, H1: μ > 74914)
this average has decreased?
Left or Lower Tail Test (H0: μ ≥ 74914, H1: μ < 74914)
this average has changed?
Two Tail Test (H0: μ = 74914, H1: μ ≠ 74914)
• A sample of 112 CPAs produced a mean salary of $78,695.
• Assume that = $14,530.
• Assumptions:
σ is known.
Population is normal or
sample size is large (n ≥ 30).
• Test Statistic:
Compute the value of test statistic using following
formula: x
Zc
n
• Level of Significance:
Fix the value of , say 0.05 or 0.10
• Critical Values:
Distribution of test statistic is N(0,1)
Critical values are obtained using N(0,1)
• For two tail test (H0: μ = μ0, H1: μ ≠ μ0): zα/2
N(0,1)
• For left tail test (H0: μ ≥ μ0, H1: μ < μ0): -zα
• P( Z > -zα) = 1- α N(0,1)
• P(Z > -1.645 ) = 0.95
• P(Z < -zα ) = α
• P(Z < -1.645) = 0.05
• 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)
0
Do not reject H0 1.28 Reject H0
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α
• For two tail test (H0: μ = μ0, H1: μ ≠ μ0): tα/2
T~t(n-1)
Rejection Rejection
Region (α/2) Acceptance Region (α/2)
Region (1- α)
tα/2 tα/2
(x x)2 i
(n 1) s12 ns 2
c2 i 1
2
2 2
0
(21 / 2 ) (2 / 2 )
Critical Region
(α)
Acceptance Region
(1-α)
0
(2 )
2
c
2
( )
• We reject H0 in the favor of H1 at α x100% level, if
• For left tail test (H0: σ ≥ σ0, H1: σ < σ0):
Critical Region
(α)
Acceptance Region
(1-α)
0
(21 )
• We reject H0 in
2
thec
2
favor(1of
)H1 at α x100% level, if
• Example:
• Consider the “bottling machines” example.
• Sample size = 30, sample standard deviation= 1.2
• We want to test:
• H0: σ ≥ 1.6, H1: σ < 1.6
n
• Test Statistic: (x x)2
i
(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 ( 0.95 ) 17.708
2
• Reject H0 at 5% level
Summary
Testing of Mean
x x
Zc ~ N (0,1) Tc ~ t ( n 1)
n s1 n
Testing of Proportion
pP
Zc ~ N (0,1)
PQ n
Testing of Variance
n
i
( x x ) 2
(n 1) s12 ns 2
c2 i 1
~ 2
( n 1)
2 2
2