Achievable logoAchievable logo
AP Statistics
Sign in
Sign up
Purchase
Textbook
Practice exams
Support
How it works
Resources
Exam catalog
Mountain with a flag at the peak
Textbook
Introduction
1. One variable data
2. Two variable data
3. Data collection
4. Probability and random variables
5. Sampling distributions
6. Categorical data
6.1 Introduction to confidence intervals
6.2 Introduction to significance testing
6.3 Confidence intervals for difference of two proportions
6.4 Significance tests for difference of two proportions
7. Quantitative data
8. Chi-square
9. Linear regression
Wrapping up
Achievable logoAchievable logo
6.2 Introduction to significance testing
Achievable AP Statistics
6. Categorical data
Our AP Statistics course is currently in development and is a work-in-progress.

Introduction to significance testing

6 min read
Font
Discuss
Share
Feedback

Significance testing

Definitions
Significance testing
Also called hypothesis testing, this is a structured method for deciding whether results from a sample are likely due to natural random variation or whether they provide strong evidence for a claim about a population.
Null hypothesis (H0​)
The specific claim being tested. It usually represents “no effect” or “no difference.”
Alternative hypothesis (Ha​)
The claim we suspect might be true instead of H0​.

For example, suppose you sample some students from high school A and find that their average academic score is much higher than the overall average for high school students. That difference could happen for two reasons:

  • Students at high school A really do perform better on average than students at other schools.
  • By chance, the particular students sampled from high school A happened to be unusually high-scoring.

Significance testing gives a structured way to judge whether the sample result is unusual enough (assuming the population claim is true) that we should doubt the claim.

Procedure for hypothesis testing:

  1. Choose a specific hypothesis to be tested (this is called the null hypothesis and is denoted by H0​).
  2. Take an appropriate random sample from the population.
  3. Use measurements from the sample to determine how likely the null hypothesis is to be correct given the results of the sampling.

Significance level

Definitions
Significance level (α)
The threshold chosen at the start of the test that sets how much evidence is required to reject H0​. It is also the probability of making a type I error.

Common choices are:

  • α=0.05 (a common default)
  • α=0.01 (used when you want stronger evidence before rejecting H0​)
  • α=0.1 (used when you’re willing to accept more risk of a false alarm)

To see what α means, consider a company testing a new drug.

  • H0​: the drug has no effect
  • Ha​ (alternative hypothesis): the drug has an effect

If you use a significance level of 0.05, you are accepting a 5% chance of rejecting H0​ even when H0​ is actually true. In context, that would mean concluding the drug has an effect when it really doesn’t. This is called a type I error.

Type I and type II errors

Definitions
Type I error
A type I error occurs when the null hypothesis is rejected even though it is true. The significance level α is the probability of making a type I error.
Type II error
A type II error occurs when we fail to reject the null hypothesis even though it is false. The probability of a type II error is denoted by β.

There’s an important trade-off: choosing a smaller α reduces the chance of a type I error, but it increases the chance of missing a real effect. Missing a real effect is a type II error.

In the drug example, a type II error would mean the drug really does have an effect, but the test fails to reject H0​ (which says the drug has no effect).

Power of a test

Definitions
Power of a test
The probability that the test correctly rejects H0​ when H0​ is false. In other words, it is the probability of detecting a real effect when there is one.

Power​=1−β​

Two common ways to increase power are:

  • Increase the sample size.
  • Increase the significance level.

Keep in mind that increasing the significance level increases power, but it also increases the probability of a type I error. So you’re balancing two kinds of mistakes.

Practice problem

Example:

McDonald’s claims that during the USA McDonald’s monopoly game, 1 in 5 game pieces are food prizes. Denia and her family go to McDonald’s and collect 100 game pieces and 13 of them are food prizes. Based on the 1 in 5 claim, the expected number of food prizes for Denia and her family would have been 20.

Using a significance level of α=0.05, conduct a significance test to determine whether the observed number of 13 out of 100 food prizes provides significant evidence against the restaurant’s claim of 1 in 5.

State the hypotheses:

H0​Ha​​:p=0.2:p<0.2​

From the problem:

p^​​=10013​=0.13​

p0​​=0.2​

Check conditions:

  • Random: The random sample condition is met because Denia and her family collected game pieces that were randomly chosen rather than chosen specifically for her family.
  • Independence: The independence condition is also met because 100 game pieces is most certainly less than 10% of all game pieces produced by such a large corporation.
  • Normality: Both large-counts values are at least 10:

np0​​=100(0.20)=20≥10​

n(1−p0​)​=100(0.80)=80≥10​

Find the standard error:

SE​=np0​(1−p0​)​​=1000.2(0.8)​​=1000.16​​=0.04​

Find the z-score:

z​=SEp^​−p0​​=0.040.13−0.2​≈0.04−0.07​≈−1.75​

Find the p-value using the standard normal distribution:

P(z<−1.75)​≈0.0401​

This means that there is a 4.01% chance of getting 13 or fewer food prizes out of 100 by random chance if the McDonald’s claim about 1 in 5 of their tickets being food prizes is correct.

Compare the p-value to α:

Solution:

(spoiler)

Since

0.0401​<0.05​

we reject the null hypothesis H0​. There is sufficient evidence to conclude that the true proportion of McDonald’s monopoly game pieces that are food prizes is less than 20%.

Significance testing (hypothesis testing)

  • Determines if sample results are due to random variation or support a population claim
  • Involves null hypothesis (H0​) and alternative hypothesis (Ha​)
  • Uses sample data to assess likelihood of H0​ being correct

Hypothesis testing procedure

  • State null hypothesis (H0​) to be tested
  • Collect a random sample from the population
  • Evaluate how likely sample results are under H0​

Significance level (α)

  • Chosen before testing; common values: 0.05, 0.01, 0.10
  • Represents probability of type I error (false positive)
  • Lower α reduces type I error risk, increases type II error risk

Types of errors

  • Type I error: reject H0​ when it is true (probability = α)
  • Type II error: fail to reject H0​ when it is false (probability = β)
    • Power of test = 1−β (probability of correctly detecting an effect)

Increasing power

  • Increase sample size
  • Increase significance level (α)
    • Trade-off: higher α increases type I error risk

P-value and decision rule

  • P-value: probability of observed (or more extreme) result if H0​ is true
  • If p-value <α: reject H0​
  • If p-value ≥α: fail to reject H0​
    • Failing to reject H0​ does not prove H0​ is true

Example: McDonald’s monopoly game

  • H0​:p=0.2 (claimed proportion of food prizes)
  • Ha​:p<0.2 (suspect fewer food prizes)
  • Sample: n=100, p^​=0.13
  • Standard error: SE=0.04
  • Z-score: z≈−1.75, p-value ≈0.0401
  • Since 0.0401<0.05, reject H0​; evidence suggests true proportion <20%

Sign up for free to take 10 quiz questions on this topic

Previous
Next  | 6.3 Confidence intervals for difference of two proportions
All rights reserved ©2016 - 2026 Achievable, Inc.

Introduction to significance testing

Significance testing

Definitions
Significance testing
Also called hypothesis testing, this is a structured method for deciding whether results from a sample are likely due to natural random variation or whether they provide strong evidence for a claim about a population.
Null hypothesis (H0​)
The specific claim being tested. It usually represents “no effect” or “no difference.”
Alternative hypothesis (Ha​)
The claim we suspect might be true instead of H0​.

For example, suppose you sample some students from high school A and find that their average academic score is much higher than the overall average for high school students. That difference could happen for two reasons:

  • Students at high school A really do perform better on average than students at other schools.
  • By chance, the particular students sampled from high school A happened to be unusually high-scoring.

Significance testing gives a structured way to judge whether the sample result is unusual enough (assuming the population claim is true) that we should doubt the claim.

Procedure for hypothesis testing:

  1. Choose a specific hypothesis to be tested (this is called the null hypothesis and is denoted by H0​).
  2. Take an appropriate random sample from the population.
  3. Use measurements from the sample to determine how likely the null hypothesis is to be correct given the results of the sampling.

Significance level

Definitions
Significance level (α)
The threshold chosen at the start of the test that sets how much evidence is required to reject H0​. It is also the probability of making a type I error.

Common choices are:

  • α=0.05 (a common default)
  • α=0.01 (used when you want stronger evidence before rejecting H0​)
  • α=0.1 (used when you’re willing to accept more risk of a false alarm)

To see what α means, consider a company testing a new drug.

  • H0​: the drug has no effect
  • Ha​ (alternative hypothesis): the drug has an effect

If you use a significance level of 0.05, you are accepting a 5% chance of rejecting H0​ even when H0​ is actually true. In context, that would mean concluding the drug has an effect when it really doesn’t. This is called a type I error.

Type I and type II errors

Definitions
Type I error
A type I error occurs when the null hypothesis is rejected even though it is true. The significance level α is the probability of making a type I error.
Type II error
A type II error occurs when we fail to reject the null hypothesis even though it is false. The probability of a type II error is denoted by β.

There’s an important trade-off: choosing a smaller α reduces the chance of a type I error, but it increases the chance of missing a real effect. Missing a real effect is a type II error.

In the drug example, a type II error would mean the drug really does have an effect, but the test fails to reject H0​ (which says the drug has no effect).

Power of a test

Definitions
Power of a test
The probability that the test correctly rejects H0​ when H0​ is false. In other words, it is the probability of detecting a real effect when there is one.

Power​=1−β​

Two common ways to increase power are:

  • Increase the sample size.
  • Increase the significance level.

Keep in mind that increasing the significance level increases power, but it also increases the probability of a type I error. So you’re balancing two kinds of mistakes.

Practice problem

Example:

McDonald’s claims that during the USA McDonald’s monopoly game, 1 in 5 game pieces are food prizes. Denia and her family go to McDonald’s and collect 100 game pieces and 13 of them are food prizes. Based on the 1 in 5 claim, the expected number of food prizes for Denia and her family would have been 20.

Using a significance level of α=0.05, conduct a significance test to determine whether the observed number of 13 out of 100 food prizes provides significant evidence against the restaurant’s claim of 1 in 5.

State the hypotheses:

H0​Ha​​:p=0.2:p<0.2​

From the problem:

p^​​=10013​=0.13​

p0​​=0.2​

Check conditions:

  • Random: The random sample condition is met because Denia and her family collected game pieces that were randomly chosen rather than chosen specifically for her family.
  • Independence: The independence condition is also met because 100 game pieces is most certainly less than 10% of all game pieces produced by such a large corporation.
  • Normality: Both large-counts values are at least 10:

np0​​=100(0.20)=20≥10​

n(1−p0​)​=100(0.80)=80≥10​

Find the standard error:

SE​=np0​(1−p0​)​​=1000.2(0.8)​​=1000.16​​=0.04​

Find the z-score:

z​=SEp^​−p0​​=0.040.13−0.2​≈0.04−0.07​≈−1.75​

Find the p-value using the standard normal distribution:

P(z<−1.75)​≈0.0401​

This means that there is a 4.01% chance of getting 13 or fewer food prizes out of 100 by random chance if the McDonald’s claim about 1 in 5 of their tickets being food prizes is correct.

Compare the p-value to α:

Solution:

(spoiler)

Since

0.0401​<0.05​

we reject the null hypothesis H0​. There is sufficient evidence to conclude that the true proportion of McDonald’s monopoly game pieces that are food prizes is less than 20%.

Key points

Significance testing (hypothesis testing)

  • Determines if sample results are due to random variation or support a population claim
  • Involves null hypothesis (H0​) and alternative hypothesis (Ha​)
  • Uses sample data to assess likelihood of H0​ being correct

Hypothesis testing procedure

  • State null hypothesis (H0​) to be tested
  • Collect a random sample from the population
  • Evaluate how likely sample results are under H0​

Significance level (α)

  • Chosen before testing; common values: 0.05, 0.01, 0.10
  • Represents probability of type I error (false positive)
  • Lower α reduces type I error risk, increases type II error risk

Types of errors

  • Type I error: reject H0​ when it is true (probability = α)
  • Type II error: fail to reject H0​ when it is false (probability = β)
    • Power of test = 1−β (probability of correctly detecting an effect)

Increasing power

  • Increase sample size
  • Increase significance level (α)
    • Trade-off: higher α increases type I error risk

P-value and decision rule

  • P-value: probability of observed (or more extreme) result if H0​ is true
  • If p-value <α: reject H0​
  • If p-value ≥α: fail to reject H0​
    • Failing to reject H0​ does not prove H0​ is true

Example: McDonald’s monopoly game

  • H0​:p=0.2 (claimed proportion of food prizes)
  • Ha​:p<0.2 (suspect fewer food prizes)
  • Sample: n=100, p^​=0.13
  • Standard error: SE=0.04
  • Z-score: z≈−1.75, p-value ≈0.0401
  • Since 0.0401<0.05, reject H0​; evidence suggests true proportion <20%

More from Categorical data

  • Introduction to confidence intervals
  • Confidence intervals for difference of two proportions
  • Significance tests for difference of two proportions