Privacy note: We capture your IP address to provide customised and focused services. See our Privacy Policy.

AP Statistics: Deep Dive and FRQ Mastery — Alpha School

Lesson 18: Significance Tests — Hypotheses, Errors and p-Values

A significance test asks a sharper question than a confidence interval: is the evidence in the data strong enough to doubt a particular claim about a population? The claim to be tested is the null hypothesis, H0, usually a statement of no effect or no difference, such as a population mean equal to some value. The alternative hypothesis, Ha, is what you will conclude if the evidence against the null is strong enough, and it can be one-sided, claiming a difference in a particular direction, or two-sided, claiming a difference in either direction. The test then measures how surprising the data would be if the null were true.

That measure of surprise is the p-value: the probability of obtaining data as extreme as, or more extreme than, what was observed, assuming the null hypothesis is true. A small p-value says the data would be very unlikely under the null, and so counts as evidence against it; a large p-value says the data are compatible with the null. The decision rule compares the p-value to a chosen significance level, α, usually 0.05: if p is less than α, you reject the null hypothesis, and if p is greater than α, you fail to reject it. Note the language — you never accept the null, because a test can only find evidence against it, never prove it true.

Every test can make two kinds of error. A Type I error is rejecting the null when it is in fact true, and its probability is the significance level α. A Type II error is failing to reject the null when it is in fact false, and its probability is denoted β. The power of a test, 1 − β, is the probability of correctly rejecting a false null, and it grows when the sample size grows, when the true effect is larger, or when the significance level is raised. The two errors pull against each other: lowering α reduces Type I errors but raises Type II errors, so the choice of α is a judgement about which mistake matters more.

The mechanics of a test follow the same four steps as a confidence interval: state the hypotheses and the parameter, check the conditions, compute the test statistic and the p-value, and state the conclusion in context. For a mean with σ unknown, the test statistic is t = (x̄ − μ0) / (s / √n) with n − 1 degrees of freedom; for a proportion it is z = (p̂ − p0) / √(p0(1 − p0) / n), using the null value p0 in the standard error. The conditions are the same as for intervals: Random, 10%, and Normal or Large Sample for means, Large Counts for proportions. A test with unmet conditions is not trustworthy, however impressive its p-value looks.

A worked example

Worked example: a manufacturer claims its batteries last a mean of 120 hours, and a worked-example random sample of 36 batteries has a mean life of 115 hours with standard deviation 12 hours. Test H0: μ = 120 against Ha: μ < 120 at α = 0.05. The test statistic is t = (115 − 120) / (12 / 6) = −5 / 2 = −2.5 with 35 degrees of freedom, giving a one-sided p-value of about 0.009. Since 0.009 is less than 0.05, you reject the null hypothesis: there is convincing evidence that the mean battery life is less than 120 hours. The conclusion is stated in context, with the significance level and the direction of the alternative both explicit.

Free-response answers on tests are marked on the full chain: hypotheses in symbols and words, conditions checked, the statistic and p-value shown, and a conclusion that names the parameter and the direction of the evidence. The most common errors are stating the p-value as the probability that the null is true — it is not; it assumes the null is true — and concluding that a large p-value proves the null. A large p-value means only that the data do not give convincing evidence against the null, and a bigger sample might. Keep the language precise and the logic will follow.

Key Terms

Null hypothesis (H0)
The claim to be tested, usually a statement of no effect or no difference.
Alternative hypothesis (Ha)
The claim concluded if the evidence against the null is strong enough.
p-value
The probability of data as extreme as observed, assuming the null hypothesis is true.
Significance level (α)
The threshold for rejecting the null; the probability of a Type I error.
Type I error
Rejecting a true null hypothesis.
Type II error
Failing to reject a false null hypothesis.
Power
The probability of correctly rejecting a false null hypothesis, 1 − β.

Discussion Questions

  1. Why do we say 'fail to reject' rather than 'accept' the null hypothesis?
  2. What does a p-value of 0.03 actually mean?
  3. If you lower α from 0.05 to 0.01, what happens to the power of the test?

Practice Questions

  1. A test gives p = 0.12 at α = 0.05. What is the conclusion?
  2. What is a Type I error?
  3. A test has power 0.8. What does that mean?
  4. H0: p = 0.5, Ha: p > 0.5. Is this a one-sided or two-sided test?
  5. A p-value is 0.001. Is the evidence against the null strong or weak?
Show answers
  1. Fail to reject the null hypothesis; there is not convincing evidence against it.
  2. Rejecting the null hypothesis when it is actually true.
  3. If the null is false in the way specified, the test has an 80% chance of correctly rejecting it.
  4. One-sided, because the alternative specifies a direction.
  5. Strong: data this extreme would be very unlikely if the null were true.
Keep reading to complete this lesson