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.2 The t distribution
Achievable AP Statistics
7. Quantitative data
Our AP Statistics course is currently in development and is a work-in-progress.

The t distribution

7 min read
Font
Discuss
Share
Feedback

The t-distribution

The t-distribution is used to make inferences about a population’s mean when working with small samples or when the population standard deviation is unknown. It comes up constantly in real research because we usually don’t know the true population standard deviation — we have to estimate it from the sample.

Definitions
t-distribution
A probability distribution used to make inferences about a population means when the sample size is small, the population standard deviation is unknown, or both. It looks similar to the normal distribution, but is flatter with heavier tails. Those heavier tails reflect the extra uncertainty that comes from using the sample standard deviation in place of the population standard deviation.

When to use the t-distribution:

  1. The sample size is small (rule of thumb: n<30 is considered small).
  2. The population standard deviation is unknown (when σ is unknown, we use the sample standard deviation s instead).
  3. If n is small, the population should be approximately normally distributed. For larger samples (n>30), the population does not necessarily need to be normally distributed because the central limit theorem tells us that the t-distribution can still be used even if the population itself isn’t normally distributed.

Procedure for a one-sample t-test

Step 1: Verify conditions

  • The sample is random and independent.
  • The population standard deviation σ is unknown, or the sample size is small.

Step 2: Determine the degrees of freedom

Definitions
Degrees of freedom (df)
A value that identifies which specific t-distribution to use, based on sample size.

dfdf​=n−1(single sample)=n1​+n2​−2(two independent samples)​

Step 3: Find the significance level

The significance level α depends on the confidence level. Recall that the significance level is α and the confidence level is 1−α:

Confidence level 95%,αConfidence level 99%,αConfidence level 90%,α​=0.05=0.01=0.10​

Step 4: Perform the t-test

For a one-sample t-test, the null hypothesis is:

H0​​:μ=μ0​​

with one of the following alternatives:

Ha​Ha​Ha​​:μ=μ0​(two-tailed):μ>μ0​(right-tailed):μ<μ0​(left-tailed)​

Compute the t-test statistic:

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

Make a decision:

  • If ∣t∣>tcritical​, reject H0​.
  • Otherwise, fail to reject H0​.

Practice problem

Example:

A registered dietician claims that the average sodium content of a certain brand of soup is no more than 600 milligrams per serving. A consumer group suspects that the true average sodium content is higher than that. They randomly select 12 cans of this soup and find the sodium content (in mg) is as follows:

645,610,605,630,615,625,640,650,635,620,600,655

Assume that the sodium content in the population is approximately normally distributed.

Part a.

Why should a t-distribution be used here?

Solution:

(spoiler)

A t-distribution should be used here because the population standard deviation is unknown and the sample size is less than 30 (it’s only 12). Since the sample is small, we also need the population to be approximately normally distributed, which the problem states.

Part b.

State the hypotheses.

Let μ be the true mean sodium content per serving.

Solution:

(spoiler)

H0​Ha​​:μ=600(the average sodium is 600 mg):μ>600(the average sodium is greater than 600 mg)​

Part c.

Calculate the test statistic.

There are two ways to do this: by hand using a scientific calculator, or with a TI-84.

Method 1: Using a scientific calculator

Sample size:

n​=12​

Sample mean:

xˉ​=12645+610+⋯+655​=127530​=627.5 mg​

Sample standard deviation, using:

s​=n−11​i=1∑n​(xi​−xˉ)2​​

Compute each squared deviation:

(645−627.5)2(610−627.5)2(605−627.5)2(630−627.5)2(615−627.5)2(625−627.5)2(640−627.5)2(650−627.5)2(635−627.5)2(620−627.5)2(600−627.5)2(655−627.5)2​=306.25=306.25=506.25=6.25=156.25=6.25=156.25=506.25=56.25=56.25=756.25=756.25​

Sum the squared deviations:

∑(xi​−xˉ)2​=3362.5​

Divide by n−1=11 and take the square root:

s​=113362.5​​=305.68​≈17.49​

Standard error:

SE​=n​s​=12​17.49​=3.46417.49​≈5.05​

Test statistic:

t​=SExˉ−μ0​​=5.05627.5−600​=5.0527.5​​

Method 2: Using a TI-84 calculator

  • Step 1: Enter your data. Go to STAT, select EDIT, then enter the values 645,610,…,655 into L1.
  • Step 2: Find the mean and standard deviation. Press STAT, move to the CALC menu, then choose 1: 1-Var Stats. Press ENTER and make sure L1 is the selected list. The results display xˉ (sample mean), sx​ (sample standard deviation), and n (sample size):

xˉsn​≈627.5≈17.49=12​

  • Step 3: Find the test statistic. Press STAT, move to TESTS, then select 2: T-Test. Choose Inpt: Data, μ0​:600, List: L1, Freq: 1, and μ:>μ0​. Scroll to Calculate and press ENTER. The calculator will display the test statistic, p-value, xˉ, s, and n.

Solution:

(spoiler)

t​≈5.45​

Part d.

Find the p-value.

There are two ways to find (or approximate) the p-value: using a t-table or using a TI-84.

Method 1: Using the t-table

Go to the t-table for the right-tailed test (since Ha​:μ>μ0​). Find the row with 11 degrees of freedom:

df​=n−1=12−1=11​

Look across the row to see where a t-value of 5.45 would fall. The closest listed value is 4.437, which corresponds to a p-value of 0.001. Since 5.45 is even farther into the right tail, the p-value is less than 0.001. This isn’t the exact p-value, but it’s enough to decide common significance levels such as 0.05 or 0.01.

Method 2: Using the TI-84 calculator (recommended)

Press STAT, scroll to TESTS, and choose 2: T-Test. Choose Inpt: Stats, then enter:

μ0​xˉsn​=600=627.5≈17.49=12​

Choose the correct alternative hypothesis (in this case, μ>μ0​ for right-tailed). Scroll to Calculate and press ENTER.

Solution:

(spoiler)

p​≈0.0001​

Part e.

Conclude and explain it in context. Use the 0.05 significance level.

Solution:

(spoiler)

Since

0.0001​<0.05​

We reject the null hypothesis. There is strong evidence that the true mean sodium content of this brand of soup is greater than 600 mg per serving. The dietician’s claim most likely underestimates the actual sodium content of the soup.

t-distribution: definition and properties

  • Used when sample size is small (n<30) and/or population standard deviation (σ) is unknown
  • Shape: similar to normal distribution, but flatter with heavier tails
  • Heavier tails reflect extra uncertainty from using sample standard deviation (s)

When to use the t-distribution

  • Sample size is small (n<30)
  • Population standard deviation unknown (use s instead of σ)
  • For small n, population should be approximately normal; for large n, normality less critical due to Central Limit Theorem

One-sample t-test procedure

  • Verify sample is random, independent; σ unknown or n small
  • Degrees of freedom: df=n−1
  • Significance level (α) relates to confidence level (1−α)
  • State hypotheses:
    • H0​:μ=μ0​
    • Ha​: μ=μ0​, μ>μ0​, or μ<μ0​ (depending on test direction)
  • Test statistic: t=s/n​xˉ−μ0​​
  • Decision rule: If ∣t∣>tcritical​, reject H0​

Example application

  • Use t-distribution when n=12 and σ unknown
  • Hypotheses: H0​:μ=600, Ha​:μ>600
  • Calculate sample mean (xˉ=627.5), sample standard deviation (s≈17.49), standard error (SE≈5.05), and t-statistic (t≈5.45)
  • p-value: <0.001 (very small, strong evidence against H0​)
  • Conclusion: Reject H0​; strong evidence true mean sodium >600 mg

Key summary points

  • t-distribution: for inference about mean when σ unknown
  • Heavier tails account for extra uncertainty from s
  • One-sample t-test requires random, independent sample; population normal or n large
  • Small p-value: strong evidence against null hypothesis (H0​)

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

Previous
Next  | 7.3 Confidence intervals for the mean
All rights reserved ©2016 - 2026 Achievable, Inc.

The t distribution

The t-distribution

The t-distribution is used to make inferences about a population’s mean when working with small samples or when the population standard deviation is unknown. It comes up constantly in real research because we usually don’t know the true population standard deviation — we have to estimate it from the sample.

Definitions
t-distribution
A probability distribution used to make inferences about a population means when the sample size is small, the population standard deviation is unknown, or both. It looks similar to the normal distribution, but is flatter with heavier tails. Those heavier tails reflect the extra uncertainty that comes from using the sample standard deviation in place of the population standard deviation.

When to use the t-distribution:

  1. The sample size is small (rule of thumb: n<30 is considered small).
  2. The population standard deviation is unknown (when σ is unknown, we use the sample standard deviation s instead).
  3. If n is small, the population should be approximately normally distributed. For larger samples (n>30), the population does not necessarily need to be normally distributed because the central limit theorem tells us that the t-distribution can still be used even if the population itself isn’t normally distributed.

Procedure for a one-sample t-test

Step 1: Verify conditions

  • The sample is random and independent.
  • The population standard deviation σ is unknown, or the sample size is small.

Step 2: Determine the degrees of freedom

Definitions
Degrees of freedom (df)
A value that identifies which specific t-distribution to use, based on sample size.

dfdf​=n−1(single sample)=n1​+n2​−2(two independent samples)​

Step 3: Find the significance level

The significance level α depends on the confidence level. Recall that the significance level is α and the confidence level is 1−α:

Confidence level 95%,αConfidence level 99%,αConfidence level 90%,α​=0.05=0.01=0.10​

Step 4: Perform the t-test

For a one-sample t-test, the null hypothesis is:

H0​​:μ=μ0​​

with one of the following alternatives:

Ha​Ha​Ha​​:μ=μ0​(two-tailed):μ>μ0​(right-tailed):μ<μ0​(left-tailed)​

Compute the t-test statistic:

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

Make a decision:

  • If ∣t∣>tcritical​, reject H0​.
  • Otherwise, fail to reject H0​.

Practice problem

Example:

A registered dietician claims that the average sodium content of a certain brand of soup is no more than 600 milligrams per serving. A consumer group suspects that the true average sodium content is higher than that. They randomly select 12 cans of this soup and find the sodium content (in mg) is as follows:

645,610,605,630,615,625,640,650,635,620,600,655

Assume that the sodium content in the population is approximately normally distributed.

Part a.

Why should a t-distribution be used here?

Solution:

(spoiler)

A t-distribution should be used here because the population standard deviation is unknown and the sample size is less than 30 (it’s only 12). Since the sample is small, we also need the population to be approximately normally distributed, which the problem states.

Part b.

State the hypotheses.

Let μ be the true mean sodium content per serving.

Solution:

(spoiler)

H0​Ha​​:μ=600(the average sodium is 600 mg):μ>600(the average sodium is greater than 600 mg)​

Part c.

Calculate the test statistic.

There are two ways to do this: by hand using a scientific calculator, or with a TI-84.

Method 1: Using a scientific calculator

Sample size:

n​=12​

Sample mean:

xˉ​=12645+610+⋯+655​=127530​=627.5 mg​

Sample standard deviation, using:

s​=n−11​i=1∑n​(xi​−xˉ)2​​

Compute each squared deviation:

(645−627.5)2(610−627.5)2(605−627.5)2(630−627.5)2(615−627.5)2(625−627.5)2(640−627.5)2(650−627.5)2(635−627.5)2(620−627.5)2(600−627.5)2(655−627.5)2​=306.25=306.25=506.25=6.25=156.25=6.25=156.25=506.25=56.25=56.25=756.25=756.25​

Sum the squared deviations:

∑(xi​−xˉ)2​=3362.5​

Divide by n−1=11 and take the square root:

s​=113362.5​​=305.68​≈17.49​

Standard error:

SE​=n​s​=12​17.49​=3.46417.49​≈5.05​

Test statistic:

t​=SExˉ−μ0​​=5.05627.5−600​=5.0527.5​​

Method 2: Using a TI-84 calculator

  • Step 1: Enter your data. Go to STAT, select EDIT, then enter the values 645,610,…,655 into L1.
  • Step 2: Find the mean and standard deviation. Press STAT, move to the CALC menu, then choose 1: 1-Var Stats. Press ENTER and make sure L1 is the selected list. The results display xˉ (sample mean), sx​ (sample standard deviation), and n (sample size):

xˉsn​≈627.5≈17.49=12​

  • Step 3: Find the test statistic. Press STAT, move to TESTS, then select 2: T-Test. Choose Inpt: Data, μ0​:600, List: L1, Freq: 1, and μ:>μ0​. Scroll to Calculate and press ENTER. The calculator will display the test statistic, p-value, xˉ, s, and n.

Solution:

(spoiler)

t​≈5.45​

Part d.

Find the p-value.

There are two ways to find (or approximate) the p-value: using a t-table or using a TI-84.

Method 1: Using the t-table

Go to the t-table for the right-tailed test (since Ha​:μ>μ0​). Find the row with 11 degrees of freedom:

df​=n−1=12−1=11​

Look across the row to see where a t-value of 5.45 would fall. The closest listed value is 4.437, which corresponds to a p-value of 0.001. Since 5.45 is even farther into the right tail, the p-value is less than 0.001. This isn’t the exact p-value, but it’s enough to decide common significance levels such as 0.05 or 0.01.

Method 2: Using the TI-84 calculator (recommended)

Press STAT, scroll to TESTS, and choose 2: T-Test. Choose Inpt: Stats, then enter:

μ0​xˉsn​=600=627.5≈17.49=12​

Choose the correct alternative hypothesis (in this case, μ>μ0​ for right-tailed). Scroll to Calculate and press ENTER.

Solution:

(spoiler)

p​≈0.0001​

Part e.

Conclude and explain it in context. Use the 0.05 significance level.

Solution:

(spoiler)

Since

0.0001​<0.05​

We reject the null hypothesis. There is strong evidence that the true mean sodium content of this brand of soup is greater than 600 mg per serving. The dietician’s claim most likely underestimates the actual sodium content of the soup.

Key points

t-distribution: definition and properties

  • Used when sample size is small (n<30) and/or population standard deviation (σ) is unknown
  • Shape: similar to normal distribution, but flatter with heavier tails
  • Heavier tails reflect extra uncertainty from using sample standard deviation (s)

When to use the t-distribution

  • Sample size is small (n<30)
  • Population standard deviation unknown (use s instead of σ)
  • For small n, population should be approximately normal; for large n, normality less critical due to Central Limit Theorem

One-sample t-test procedure

  • Verify sample is random, independent; σ unknown or n small
  • Degrees of freedom: df=n−1
  • Significance level (α) relates to confidence level (1−α)
  • State hypotheses:
    • H0​:μ=μ0​
    • Ha​: μ=μ0​, μ>μ0​, or μ<μ0​ (depending on test direction)
  • Test statistic: t=s/n​xˉ−μ0​​
  • Decision rule: If ∣t∣>tcritical​, reject H0​

Example application

  • Use t-distribution when n=12 and σ unknown
  • Hypotheses: H0​:μ=600, Ha​:μ>600
  • Calculate sample mean (xˉ=627.5), sample standard deviation (s≈17.49), standard error (SE≈5.05), and t-statistic (t≈5.45)
  • p-value: <0.001 (very small, strong evidence against H0​)
  • Conclusion: Reject H0​; strong evidence true mean sodium >600 mg

Key summary points

  • t-distribution: for inference about mean when σ unknown
  • Heavier tails account for extra uncertainty from s
  • One-sample t-test requires random, independent sample; population normal or n large
  • Small p-value: strong evidence against null hypothesis (H0​)

More from Quantitative data

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