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
7. Quantitative data
7.1 Significance test for the difference of two means
7.2 The t distribution
7.3 Confidence intervals for the mean
7.4 Significance test for the mean
7.5 Confidence intervals for the difference of two means
7.6 Hypothesis testing errors
7.7 Paired data
8. Chi-square
9. Linear regression
Wrapping up
Achievable logoAchievable logo
7.4 Significance test for the mean
Achievable AP Statistics
7. Quantitative data
Our AP Statistics course is currently in development and is a work-in-progress.

Significance test for the mean

6 min read
Font
Discuss
Share
Feedback

Significance test for a mean

The goal of a significance test for a mean is to use sample data to decide whether there’s convincing evidence that the population mean μ differs from a hypothesized value μ0​. In other words, we’re asking:

  • Is the difference we see between the sample mean and μ0​ something that could reasonably happen just from natural sampling variation?
  • Or is the difference large enough that it suggests the true population mean is actually different from μ0​?

Procedure for a significance test for a mean

Step 1: State the hypotheses

The null hypothesis always states “no difference” between the population mean and the hypothesized mean:

H0​​:μ=μ0​​

The alternative hypothesis depends on the question being asked:

Definitions
Two-tailed test
The population mean differs from the hypothesized mean in either direction.

Ha​​:μ=μ0​​

Right-tailed test
The population mean is greater than the hypothesized mean.

Ha​​:μ>μ0​​

Left-tailed test
The population mean is less than the hypothesized mean.

Ha​​:μ<μ0​​

Step 2: Check the conditions

To conduct a significance test for a mean, check the following:

  • Randomness: The sample is random (ideally a simple random sample).
  • Independence: The sample size is less than 10% of the population.
  • Normality: Either the sample size is greater than 30 (so the central limit theorem applies) or the population distribution is approximately normal.

Step 3: Calculate the test statistic

Definitions
One-sample t-statistic
A measure of how far the sample mean is from the hypothesized mean, in units of standard error. Used when σ is unknown.

t​=s/n​xˉ−μ0​​​

where xˉ is the sample mean, s is the sample standard deviation, and n is the sample size.

Step 4: Find the p-value

Definitions
P-value
The probability of getting a test statistic at least as extreme as the one observed, assuming H0​ is true. In other words, if the true population mean really is μ0​, how likely is a t-statistic as extreme as the one observed?

To find the p-value, use a t-distribution table with the correct degrees of freedom:

df​=n−1​

Locate where your t-value falls in the table to approximate the p-value.

If you’re using a TI-84 calculator, press 2nd → VARS, then choose tcdf(lower bound, upper bound, degrees of freedom). This gives a more precise p-value than the table.

Step 5: Make a decision

Use the given significance level. If none is provided, use the common default α=0.05.

  • If p<α, reject H0​.
  • If p>α, fail to reject H0​.

Practice problem

Example:

A company claims that its LED light bulbs last 100 hours on average. A consumer takes a random sample of 36 lightbulbs and measures their lifetimes, getting a sample mean lifetime of xˉ=103 and a sample standard deviation of s=6. Based on these results, the consumer believes the light bulbs last longer than the company claimed. Use the significance level α=0.01.

Part a.

State the hypotheses.

We’re testing whether the mean lifetime is greater than 100, as the consumer believes.

Solution:

(spoiler)

H0​Ha​​:μ=100:μ>100​

This is a right-tailed test because the claim is specifically “greater than 100,” not “different from 100 in either direction.”

Part b.

Check that the conditions needed for a t-test are met.

There are three conditions to check:

  1. Randomness
  2. Independence
  3. Normality

Solution:

(spoiler)
  • Randomness: Met, because the problem states a random sample was taken.
  • Independence: Met, because n=36 is very likely less than 10% of the total number of LED bulbs the company sells.
  • Normality: Met, because n is at least 30, so the central limit theorem tells us the sampling distribution of xˉ is approximately normal.

Part c.

Compute the test statistic t and the degrees of freedom df.

From the problem:

xˉsnμ0​​=103=6=36=100​

Compute the standard error:

SE​=n​s​=36​6​=66​=1​

Compute the test statistic:

t​=SExˉ−μ0​​=1103−100​​

Compute the degrees of freedom:

df​=n−1=36−1​

Solution:

(spoiler)

tdf​=3=35​

Part d.

Find the p-value and make a decision about the hypotheses. Also state the conclusion in context.

Because this is a right-tailed test, we use the one-tailed p-value.

From the t-table:

t0.005,df=35​​≈2.724​

Compare the test statistic from Part c to this critical value:

3​>2.724​

So the p-value is less than 0.005, which is also less than α=0.01.

Solution:

(spoiler)

Since the p-value is less than α, we reject H0​.

Conclusion (in context): There is strong evidence that the true mean lifetime of the company’s LED light bulbs is greater than 100 hours.

Part e.

What kind of error is possible in this scenario and how do you know?

Solution:

(spoiler)

Because we rejected H0​, the possible error is a type I error.

  • Type I error: Rejecting H0​ even though it’s actually true.
  • Type II error: Failing to reject H0​ even though it’s false.

A type II error isn’t possible here because we did not fail to reject H0​. The significance level is 0.01, so the probability of a type I error is controlled at 1%.

Part f.

Why might the company have made the claim that the lightbulbs last 100 hours on average when there is strong evidence that they actually last even longer?

Solution:

(spoiler)

Although it may seem odd to claim a lower average lifetime than what the data suggests, here are a few possible reasons:

  1. Less unhappy customers: The company may prefer a conservative claim so customers are more likely to be satisfied (or pleasantly surprised) rather than disappointed.
  2. Less warranty cost: A conservative advertised lifetime can reduce warranty claims and related costs.
  3. Less chances of legal consequences: Understating performance can reduce the risk of legal issues related to false advertising.

Significance test for a mean: Purpose

  • Determines if sample data provide evidence that population mean μ differs from hypothesized μ0​
  • Compares observed sample mean to μ0​ considering sampling variation

Steps for significance test for a mean

  1. State hypotheses:
    • Null: H0​:μ=μ0​
    • Alternative: Ha​:μ=μ0​, Ha​:μ>μ0​, or Ha​:μ<μ0​
  2. Check conditions:
    • Random sample
    • Independence: n<10% of population
    • Normality: n>30 or population approximately normal
  3. Calculate test statistic:
    • t=n​s​xˉ−μ0​​
  4. Find p-value:
    • Use t-distribution with df=n−1
    • Compare t-value to table or use calculator (tcdf)
  5. Make decision:
    • If p<α, reject H0​
    • If p>α, fail to reject H0​

Example: LED light bulb test

  • Hypotheses: H0​:μ=100, Ha​:μ>100 (right-tailed test)
  • Conditions met: random sample, n=36<10% population, n>30
  • Test statistic: t=3, df=35
  • P-value: <0.005 (from t-table), so reject H0​ at α=0.01
  • Conclusion: Strong evidence mean lifetime >100 hours

Types of errors

  • Type I error: Rejecting H0​ when true (possible here)
  • Type II error: Failing to reject H0​ when false (not possible here)

Reasons for conservative company claims

  • Increase customer satisfaction
  • Reduce warranty costs
  • Avoid legal issues from overstating product performance

Summary of significance test for a mean

  • Use sample data to test if μ differs from μ0​
  • Conditions: random, independent, normal/large sample
  • Test statistic: t=n​s​xˉ−μ0​​
  • Decision: p<α → reject H0​; p>α → fail to reject H0​

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

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

Significance test for the mean

Significance test for a mean

The goal of a significance test for a mean is to use sample data to decide whether there’s convincing evidence that the population mean μ differs from a hypothesized value μ0​. In other words, we’re asking:

  • Is the difference we see between the sample mean and μ0​ something that could reasonably happen just from natural sampling variation?
  • Or is the difference large enough that it suggests the true population mean is actually different from μ0​?

Procedure for a significance test for a mean

Step 1: State the hypotheses

The null hypothesis always states “no difference” between the population mean and the hypothesized mean:

H0​​:μ=μ0​​

The alternative hypothesis depends on the question being asked:

Definitions
Two-tailed test
The population mean differs from the hypothesized mean in either direction.

Ha​​:μ=μ0​​

Right-tailed test
The population mean is greater than the hypothesized mean.

Ha​​:μ>μ0​​

Left-tailed test
The population mean is less than the hypothesized mean.

Ha​​:μ<μ0​​

Step 2: Check the conditions

To conduct a significance test for a mean, check the following:

  • Randomness: The sample is random (ideally a simple random sample).
  • Independence: The sample size is less than 10% of the population.
  • Normality: Either the sample size is greater than 30 (so the central limit theorem applies) or the population distribution is approximately normal.

Step 3: Calculate the test statistic

Definitions
One-sample t-statistic
A measure of how far the sample mean is from the hypothesized mean, in units of standard error. Used when σ is unknown.

t​=s/n​xˉ−μ0​​​

where xˉ is the sample mean, s is the sample standard deviation, and n is the sample size.

Step 4: Find the p-value

Definitions
P-value
The probability of getting a test statistic at least as extreme as the one observed, assuming H0​ is true. In other words, if the true population mean really is μ0​, how likely is a t-statistic as extreme as the one observed?

To find the p-value, use a t-distribution table with the correct degrees of freedom:

df​=n−1​

Locate where your t-value falls in the table to approximate the p-value.

If you’re using a TI-84 calculator, press 2nd → VARS, then choose tcdf(lower bound, upper bound, degrees of freedom). This gives a more precise p-value than the table.

Step 5: Make a decision

Use the given significance level. If none is provided, use the common default α=0.05.

  • If p<α, reject H0​.
  • If p>α, fail to reject H0​.

Practice problem

Example:

A company claims that its LED light bulbs last 100 hours on average. A consumer takes a random sample of 36 lightbulbs and measures their lifetimes, getting a sample mean lifetime of xˉ=103 and a sample standard deviation of s=6. Based on these results, the consumer believes the light bulbs last longer than the company claimed. Use the significance level α=0.01.

Part a.

State the hypotheses.

We’re testing whether the mean lifetime is greater than 100, as the consumer believes.

Solution:

(spoiler)

H0​Ha​​:μ=100:μ>100​

This is a right-tailed test because the claim is specifically “greater than 100,” not “different from 100 in either direction.”

Part b.

Check that the conditions needed for a t-test are met.

There are three conditions to check:

  1. Randomness
  2. Independence
  3. Normality

Solution:

(spoiler)
  • Randomness: Met, because the problem states a random sample was taken.
  • Independence: Met, because n=36 is very likely less than 10% of the total number of LED bulbs the company sells.
  • Normality: Met, because n is at least 30, so the central limit theorem tells us the sampling distribution of xˉ is approximately normal.

Part c.

Compute the test statistic t and the degrees of freedom df.

From the problem:

xˉsnμ0​​=103=6=36=100​

Compute the standard error:

SE​=n​s​=36​6​=66​=1​

Compute the test statistic:

t​=SExˉ−μ0​​=1103−100​​

Compute the degrees of freedom:

df​=n−1=36−1​

Solution:

(spoiler)

tdf​=3=35​

Part d.

Find the p-value and make a decision about the hypotheses. Also state the conclusion in context.

Because this is a right-tailed test, we use the one-tailed p-value.

From the t-table:

t0.005,df=35​​≈2.724​

Compare the test statistic from Part c to this critical value:

3​>2.724​

So the p-value is less than 0.005, which is also less than α=0.01.

Solution:

(spoiler)

Since the p-value is less than α, we reject H0​.

Conclusion (in context): There is strong evidence that the true mean lifetime of the company’s LED light bulbs is greater than 100 hours.

Part e.

What kind of error is possible in this scenario and how do you know?

Solution:

(spoiler)

Because we rejected H0​, the possible error is a type I error.

  • Type I error: Rejecting H0​ even though it’s actually true.
  • Type II error: Failing to reject H0​ even though it’s false.

A type II error isn’t possible here because we did not fail to reject H0​. The significance level is 0.01, so the probability of a type I error is controlled at 1%.

Part f.

Why might the company have made the claim that the lightbulbs last 100 hours on average when there is strong evidence that they actually last even longer?

Solution:

(spoiler)

Although it may seem odd to claim a lower average lifetime than what the data suggests, here are a few possible reasons:

  1. Less unhappy customers: The company may prefer a conservative claim so customers are more likely to be satisfied (or pleasantly surprised) rather than disappointed.
  2. Less warranty cost: A conservative advertised lifetime can reduce warranty claims and related costs.
  3. Less chances of legal consequences: Understating performance can reduce the risk of legal issues related to false advertising.
Key points

Significance test for a mean: Purpose

  • Determines if sample data provide evidence that population mean μ differs from hypothesized μ0​
  • Compares observed sample mean to μ0​ considering sampling variation

Steps for significance test for a mean

  1. State hypotheses:
    • Null: H0​:μ=μ0​
    • Alternative: Ha​:μ=μ0​, Ha​:μ>μ0​, or Ha​:μ<μ0​
  2. Check conditions:
    • Random sample
    • Independence: n<10% of population
    • Normality: n>30 or population approximately normal
  3. Calculate test statistic:
    • t=n​s​xˉ−μ0​​
  4. Find p-value:
    • Use t-distribution with df=n−1
    • Compare t-value to table or use calculator (tcdf)
  5. Make decision:
    • If p<α, reject H0​
    • If p>α, fail to reject H0​

Example: LED light bulb test

  • Hypotheses: H0​:μ=100, Ha​:μ>100 (right-tailed test)
  • Conditions met: random sample, n=36<10% population, n>30
  • Test statistic: t=3, df=35
  • P-value: <0.005 (from t-table), so reject H0​ at α=0.01
  • Conclusion: Strong evidence mean lifetime >100 hours

Types of errors

  • Type I error: Rejecting H0​ when true (possible here)
  • Type II error: Failing to reject H0​ when false (not possible here)

Reasons for conservative company claims

  • Increase customer satisfaction
  • Reduce warranty costs
  • Avoid legal issues from overstating product performance

Summary of significance test for a mean

  • Use sample data to test if μ differs from μ0​
  • Conditions: random, independent, normal/large sample
  • Test statistic: t=n​s​xˉ−μ0​​
  • Decision: p<α → reject H0​; p>α → fail to reject H0​

More from Quantitative data

  • Significance test for the difference of two means
  • The t distribution
  • Confidence intervals for the mean
  • Confidence intervals for the difference of two means
  • Hypothesis testing errors