From the free course AP Statistics on Lykke

3.8 Potential Errors When Performing Tests

Key concepts: Type I error — rejecting a null hypothesis that is actually true · Type II error — missing an alternative hypothesis that is actually true · P(Type I error) = α, fixed before any data are collected · Power = 1 − β — correctly rejecting a false null hypothesis · Power rises with larger n, smaller SE, or larger α · Which error costs more drives the choice of α and n

In the theater of statistical inference, a p-value is not a verdict of absolute truth; it is a measure of evidence. Because we rely on random samples to draw conclusions about entire populations, there is always a non-zero probability that our sample is an outlier—a "fluke" that leads us…

In the theater of statistical inference, a p-value is not a verdict of absolute truth; it is a measure of evidence. Because we rely on random samples to draw conclusions about entire populations, there is always a non-zero probability that our sample is an outlier—a "fluke" that leads us to the wrong conclusion. Understanding the architecture of these mistakes is the difference between blindly following a calculator and performing rigorous science.

The Two Faces of Error

When we perform a significance test, we choose between two competing hypotheses: the null ($H_0$) and the alternative ($H_a$). This creates four possible outcomes based on the reality of the population versus the decision we make. Two of these outcomes are correct, and two are errors.

Type I Error [3.8.A.1]: Occurs when we find convincing statistical evidence for the alternative hypothesis (a small p-value), but the null hypothesis is actually true. This is often called a "false positive."

Type II Error [3.8.A.2]: Occurs when we do not find convincing statistical evidence for the alternative hypothesis (a large p-value), but the alternative hypothesis is actually true. This is often called a "false negative."

Contextual Mechanics: The Vaccine Trial

To develop Skill 3.C, let’s examine a clinical trial for a new shingles vaccine. Suppose the current standard vaccine has a success rate of $p = 0.80$. Researchers want to know if their new formula is more effective ($H_a: p > 0.80$). They administer the vaccine to a random sample of $n = 200$ patients and find that 174 recovered without symptoms ($\hat{p} = 0.87$).

To assess the evidence, we calculate the test statistic and p-value:

  1. Standard Error: $SE = \sqrt{\frac{0.80(1-0.80)}{200}} \approx 0.0283$
  2. Test Statistic ($z$): $z = \frac{0.87 - 0.80}{0.0283} \approx 2.47$
  3. p-value: $P(Z > 2.47) \approx 0.0068$

At a significance level of $\alpha = 0.05$, since $0.0068 < 0.05$, the researchers reject $H_0$. They conclude there is convincing evidence the new vaccine is better. However, they must consider the potential for error (Skill 2.D):

  • If this is a Type I Error: The new vaccine is actually no better than the old one ($p = 0.80$), but this specific sample of 200 people happened to be unusually healthy or responsive. The consequence is wasting resources on a vaccine that doesn't actually improve outcomes.
  • If this is a Type II Error: The researchers would have failed to reject $H_0$ (if, for instance, $\hat{p}$ had been lower). If the vaccine truly was better, a Type II error would mean a superior medical treatment is abandoned, and patients miss out on better protection.

Statistical Power and Its Drivers [3.8.C]

While $\alpha$ (the significance level) represents the probability of a Type I error, we use $\beta$ to represent the probability of a Type II error. This leads to one of the most vital concepts in research design: Power.

Power [3.8.C.1]: The probability that a test will correctly reject a false null hypothesis. Mathematically, $\text{Power} = 1 - \beta$. It is the "sensitivity" of your test—its ability to detect an effect that actually exists.

To assess a claim or meaning (Skill 4.D), we must understand what makes power go up or down. If a study has low power, it is "blind" to the truth; even if the alternative hypothesis is true, the test is unlikely to produce a significant result.

Factor Change Effect on Power Why?
Sample Size ($n$) Increase Increase Larger samples reduce variability ($SE$), making the sampling distribution narrower and easier to distinguish from the null.
Significance Level ($\alpha$) Increase Increase A larger $\alpha$ (e.g., 0.10 instead of 0.01) makes it easier to reject $H_0$, which catches more true effects but increases Type I error risk.
Effect Size Increase Increase If the true population parameter is very far from the null value, the "truth" is easier to see.

The Inverse Relationship

There is a fundamental trade-off in inference. If you decrease the probability of a Type I error (by lowering $\alpha$), you automatically increase the probability of a Type II error ($\beta$), which decreases power. You cannot decrease both simultaneously without increasing the sample size.

Misconception Check: "Proving" the Null

A common error in interpretation is claiming that a large p-value "proves" the null hypothesis is true. This is incorrect. A large p-value simply means we lacked "convincing evidence" to reject the status quo. In the context of errors, a large p-value might just be a Type II error—the effect was there, but our test wasn't powerful enough to catch it. Always use non-definitive language: "We fail to reject the null" rather than "The null is true."


Interpretation Check A researcher is testing a new "eco-friendly" lightbulb that claims to last longer than the current 1,000-hour average ($H_a: \mu > 1000$). After testing a sample, they obtain a p-value of 0.12 and fail to reject $H_0$ at the $\alpha = 0.05$ level.

  1. If the new bulbs actually do last 1,200 hours on average, what type of error did the researcher commit?
  2. How would increasing the number of bulbs tested (sample size) have changed the probability of this error?
3.8 Potential Errors When Performing Tests - AP Statistics - image 1
3.8 Potential Errors When Performing Tests - AP Statistics - image 1
3.8 Potential Errors When Performing Tests - AP Statistics - diagram 1
3.8 Potential Errors When Performing Tests - AP Statistics - diagram 1

Source Materials

The whole course on Lykke · Browse all public course wikis