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.

Step 1 of 157%

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 H0H_0 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 H1H_1 is the claim we are seeking evidence for.

For testing a single proportion p,p, the null hypothesis is

H0:p=p0H_0: p = p_0

for some specific value p0,p_0, and the alternative takes one of three forms:

  • Upper-tailed: H1:p>p0H_1: p > p_0
  • Lower-tailed: H1:p<p0H_1: p < p_0
  • Two-tailed: H1:pp0H_1: p \neq p_0

The direction of H1H_1 is determined by what the researcher is trying to detect.

Illustrative example: A factory claims its defect rate is 10%.10\%. A consumer group suspects the true rate is higher and will sample items to test the claim. The relevant hypotheses are

H0:p=0.10vs.H1:p>0.10.H_0: p = 0.10 \quad \text{vs.} \quad H_1: p > 0.10.
navigate · Enter open · Esc close · ⌘K/Ctrl K toggle