Professional Documents
Culture Documents
Concept of Hypothesis Testing - Topic 5
Concept of Hypothesis Testing - Topic 5
Kurnia Wahyudi
September 2, 2023 2
Statistical inference
• Estimation
• Estimating values of specific population parameters
• Method:
• Point estimation: mean, median, proportion
• Interval estimation: lower and upper limit
• Hypothesis testing
• Testing whether the value of population parameter is equal to
some value (one group)
• Testing whether there is a difference between population means
(two or more groups)
• Testing whether there is a difference between population
proportions (two groups)
• Testing whether there is a correlation between two variables
September 2, 2023 3
Example
September 2, 2023 4
Example
Research question:
Is the mean dietary energy intake of 2-year-olds
significantly different from the population value (based on
National Health and Nutrition Examination Survey III)?
September 2, 2023 5
Example
Result:
From sample, the observed mean dietary energy intake of
2-year-olds was 1242 kcal. From NHANES III, the reported
value was 1286 kcal.
Question:
• Could they conclude that there is a significant mean difference?
• What else is needed to conclude that there is a mean difference and
not just a random occurrence?
September 2, 2023 6
Concept of hypothesis testing
September 2, 2023 7
Concept of hypothesis testing
September 2, 2023 8
Concept of hypothesis testing
September 2, 2023 9
Step 1
• H0 (null hypothesis)
• Example: there is no difference between assumed/hypothesized
value and the population mean
• 1 = 0 (using Greek letter; for proportion, for correlation
coefficient, etc.)
• The statistical test is performed whether we reject or do not
reject the H0
September 2, 2023 10
Step 1
• H1 or HA (alternative hypothesis)
• Example 1:
• There is a difference between assumed/hypothesized value and
the population mean
• 1 0 (two-sided or two-tailed)
• Example 2:
• The assumed/hypothesized value is larger or smaller that the
population mean
• 1 > 0 or 1 < 0 (one-sided or one-tailed)
September 2, 2023 11
Step 1
September 2, 2023 12
Step 1
September 2, 2023 13
Step 1
Research question:
Is the mean dietary energy intake of 2-year-olds
significantly different from the population value (based on
National Health and Nutrition Examination Survey III)?
H0?
H1?
September 2, 2023 14
Step 2
• Parametric methods
• Data come from some underlying distribution (normal, or
binomial), whose general form was assumed known
• Non-parametric methods
• Assumption about the shape of the distribution are not made
• And/or small sample size
September 2, 2023 15
Step 2
September 2, 2023 16
Step 3
Correct
Reject H0 Type I error or
(Power or 1 - )
September 2, 2023 17
Step 3
September 2, 2023 18
Step 3
September 2, 2023 19
Step 3
• Example:
• Efficacy of potentially dangerous medication avoiding false-
positive use a low
• Reassuring the public that living near toxic waste dump is safe
avoiding false-negative use a low
September 2, 2023 20
Step 4
September 2, 2023 21
Step 5
September 2, 2023 22
Step 6
• Critical value-method
• By applying the critical value approach it is determined, whether
or not the observed test statistic is more extreme than a defined
critical value.
• Therefore the observed test statistic (calculated on the basis of
sample data) is compared to the critical value, some kind of
cutoff value.
September 2, 2023 23
Step 6
September 2, 2023 24
Step 6
-1.99 +1.99
September 2, 2023 25
Step 6
September 2, 2023 26
Step 6
-1.67 +1.67
September 2, 2023 27
Step 6
Conclusion:
On average, the dietary energy intake values observed in 2-
year-olds by Dennison and colleagues are not significantly
different from those in the NHANES III.
September 2, 2023 28
Equivalence of confidence intervals and
hypothesis testing
September 2, 2023 29
Equivalence of confidence intervals and
hypothesis testing
September 2, 2023 30
Equivalence of confidence intervals and
hypothesis testing
The results for the first 7 observations were as follow:
September 2, 2023 31
Equivalence of confidence intervals and
hypothesis testing
September 2, 2023 32
Equivalence of confidence intervals and
hypothesis testing
September 2, 2023 33
Equivalence of confidence intervals and
hypothesis testing
• Inferences drawn from confidence intervals and
hypothesis testing are usually similar
• It is a good practice to compute and report both p-value
and a 95% CI for
September 2, 2023 34
Scientific vs statistical significance
September 2, 2023 35
Pitfalls
September 2, 2023 36
Pitfalls
September 2, 2023 37