Introduction to Hypothesis Testing
This lesson introduces the framework of hypothesis testing for a single proportion. Students learn to set up null and alternative hypotheses, compute p-values using the binomial CDF, and make reject / fail-to-reject decisions at a specified significance level.
Tutorial
The Null and Alternative Hypotheses
Hypothesis testing is a procedure for deciding whether sample data provide sufficient evidence against a claim about a population parameter.
We frame the problem with two competing claims:
- The null hypothesis specifies a baseline or status-quo value of the parameter. It is the claim we assume to be true unless the data say otherwise.
- The alternative hypothesis is the claim we are seeking evidence for.
For testing a single proportion the null hypothesis is
for some specific value and the alternative takes one of three forms:
- Upper-tailed:
- Lower-tailed:
- Two-tailed:
The direction of is determined by what the researcher is trying to detect.
Illustrative example: A factory claims its defect rate is A consumer group suspects the true rate is higher and will sample items to test the claim. The relevant hypotheses are