Inferential Hypothesis Testing
Inferential Hypothesis Testing
Testing
Ephrem Mannekulih (BSc, MSc)
Biostatistics and Health Informatics
Introduction
Without objective verification, science would face strong
challenge to exist
1. Estimation
2. Hypotheses Testing
Introduction
Estimation
Hypotheses Testing
o 𝐻0 : = 𝜇0 𝐻0 : ≤ 𝜇0 𝐻0 : ≥ 𝜇0
o 𝐻𝐴 : 𝜇0 𝐻𝐴 : > 𝜇0 𝐻𝐴 : < 𝜇0
Example;
OR
…..Steps in Hypotheses Testing
Step-5. Decision Rule
The values of the test statistic forming the rejection region are
less likely to occur if the 𝐻0 is true.
Level of Significance, α
= 0.025 = 0.025
0.95
-1.96 1.96
…..Steps in hypotheses Testing
Step-6. Determine the critical value.
The larger the test statistic, the smaller is the P-value or,
The smaller the P-value the stronger the evidence against the 𝐻0
…..Steps in hypotheses Testing
Step-9. Draw the conclusion
In a two tail test, the rejection region is split between the two
tails.
o Type I Error
o Type II Error
Type I Error
The error committed when a true 𝐻0 is rejected
o 𝐻0 : µ = 30
o 𝐻𝐴 : µ ≠ 30
Step-3. Assumptions
Confidence interval
Example: One -Tailed Test
A simple random sample of 10 people drown normally
distributed population has a mean age of 27. Can we
conclude that the mean age of the population is less than
30? The variance is known to be 20. Let α = 0.05.
Answer
Step-1. Hypotheses Formulation
o 𝐻0 : µ ≥ 30,
o 𝐻𝐴 : µ < 30
Step-2.Data
Step-3. Assumptions
Step-6. Conclusion
o p = .0170 this time because it is only a one tail test and not
a two tail test.
Cont.….
Suppose that the 𝐻0 and 𝐻𝐴 take the form
o 𝐻0 : µ = 𝜇0 , 𝐻𝐴 : µ > 𝜇0
o 𝐻0 : µ = 35, 𝐻𝐴 : µ ≠ 35
Step-2.Understanding Data
o Continuous
o Variance unknown
o Sample is small
Cont.…
Step-4. Test statistic
𝑿 − 𝝁𝟎
𝒕𝒏;𝟏 =
𝑺
𝒏
Cont.…
Step-5. Decision rule
Step-8. Decision
o 𝐻0 : 𝜇1 - 𝜇2 = 0 or 𝐻0 : 𝜇1 = 𝜇2
o 𝐻𝐴 : 𝜇1 - 𝜇2 ≠ 0 or 𝐻𝐴 : 𝜇1 ≠ 𝜇2
Step.2. Data
o Quantitative
Step.3. Assumptions
o Known variance
Cont.…
Step-4. Select the test statistics:
Step-9. Conclusion
1. Equal variances
o Givens;
• 𝛼 = 0.05
Answer
Step-1. Formulate Hypotheses:
𝐻0 : 𝜇1 ≤ 𝜇2 = 0, 𝐻𝐴 : 𝜇1 > 𝜇2
Step-2. Data
Quantitative
Step-3. Assumptions
2 𝑛1 ;1 𝑆1 2 : 𝑛2 ;1 𝑆2 2 2 15 (4.4711)2 : 8 (4.8492)2
𝑆𝑝 = , 𝑆𝑝 =
𝑛1 : 𝑛2 ; 2 16 :9 ; 2
2 299.86 :188.12
𝑆𝑝 = = 21.2165
23
Cont.…
Step-8. Decision
Step-9. Conclusion
𝐻0 : 𝜇1 ≤ 𝜇2 = 0, 𝐻𝐴 : 𝜇1 > 𝜇2
Step-2. Data
Quantitative
Step-3. Assumptions
5.29 2 2.69 2
o 𝑤1 = = 1.8656 and 𝑤2 = = 0.2412
15 30
Step-9. Conclusion
𝐻0 : 𝜇𝑑 = 0, 𝐻𝐴 : 𝜇1 ≠ 0
Step-2. Data
Quantitative
Step-3. Assumptions
o 𝑆𝑑 = 20.844 = 4.566
4.80
o t = 4.566 = 4.80/1.44 = 3.32
10
Cont.….
Step-8. Decision
Since t = 2.262 and P-value < 0.01 𝐻0 is rejected
Step-9. Conclusion
Mean
Standard deviation
Cont.….
The test statistics;
Example
Data were collected on a sample of 301 Hispanic women living in San
Antonio, Texas. One variable of interest was the percentage of subjects
with impaired fasting glucose (IFG). IFG refers to a metabolic stage
intermediate between normal glucose homeostasis and diabetes. In the
study, 24 women were classified in the IFG stage. The article cites
population estimates for IFG among Hispanic women in Texas as 6.3
percent. Is there sufficient evidence to indicate that the population of
Hispanic women in San Antonio has a prevalence of IFG higher than 6.3
percent?
Answer
Step-1. Formulating hypotheses
Step-2.Understanding Data
Categorical
Step-9. Conclusion
𝐻0 : 𝑃1 = 𝑃2 , 𝐻𝐴 : 𝑃1 ≠ 𝑃2
Step-2.Understanding Data
Categorical
𝑋1 109
o 𝑃1 = = = 48.4%
𝑛1 225
𝑋2 4
o 𝑃2 = = = 10.5%
𝑛2 38
𝑋1 :𝑋2 109:4
o 𝑃= = = 0.43
𝑛1 :𝑛2 225:38
Cont.…
Step-7. Compute test statistics
Cont.…
Step-8. Decision
Step-9. Conclusion