📈 Intro to Statistics · Lesson 7 of 7

Hypothesis tests and p-values

Google Classroom

Null and alternative, the p-value, significance and errors.

The logic

A hypothesis test is like a trial. The null hypothesis H₀ says “nothing is going on” (no effect, no difference) — innocent until proven guilty. The alternative Hₐ is what you suspect. We ask: if H₀ were true, how surprising would our data be?

The p-value

The p-value is the probability, assuming H₀ is true, of getting results at least as extreme as what we observed. A small p-value (data would be surprising under H₀) is evidence against H₀.

Example

A coin lands heads 62 times in 100 flips. H₀: the coin is fair (p = 0.5). Hₐ: it isn’t. If the coin were fair, getting 62 or more heads — or 38 or fewer — has a probability of about 0.02. That’s the p-value. Since 0.02 < 0.05, we reject H₀: there is convincing evidence the coin is not fair.

Decisions and errors

Significance level αUsually 0.05 — reject H₀ if p < α
Type I errorRejecting a true H₀ (a false alarm) — probability α
Type II errorFailing to reject a false H₀ (a missed effect)
“Fail to reject”Not the same as proving H₀ true

Statistical vs. practical significance

With a huge sample, a tiny, unimportant difference can be “statistically significant”. Always report the size of the effect (and a confidence interval), not just p < 0.05.

✏️ Practice: your turn

  1. Write H₀ and Hₐ for: “Does a new study app raise average quiz scores?”
  2. Explain a p-value of 0.30 in one sentence
  3. Describe a Type I and a Type II error for a medical test
  4. Find a study in the news and check whether it reports effect size

✏️ Scientific calculator with a statistics tab (mean, median, standard deviation)

🧠 Quick quiz

Answer all 4 questions correctly to mark this lesson as done.

1. The null hypothesis usually says…
2. p = 0.02 with α = 0.05. You…
3. A Type I error is…
4. The p-value is the probability that…

0 of 4 correct