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.
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
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 :
Step 4: Perform the t-test
For a one-sample t-test, the null hypothesis is:
with one of the following alternatives:
Compute the t-test statistic:
Make a decision:
- If , reject .
- Otherwise, fail to reject .
Practice problem
Example:
A registered dietician claims that the average sodium content of a certain brand of soup is no more than milligrams per serving. A consumer group suspects that the true average sodium content is higher than that. They randomly select cans of this soup and find the sodium content (in mg) is as follows:
Assume that the sodium content in the population is approximately normally distributed.
Part a.
Why should a t-distribution be used here?
Solution:
A t-distribution should be used here because the population standard deviation is unknown and the sample size is less than (it’s only ). 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:
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:
Sample mean:
Sample standard deviation, using:
Compute each squared deviation:
Sum the squared deviations:
Divide by and take the square root:
Standard error:
Test statistic:
Method 2: Using a TI-84 calculator
- Step 1: Enter your data. Go to STAT, select EDIT, then enter the values 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 (sample mean), (sample standard deviation), and (sample size):
- Step 3: Find the test statistic. Press STAT, move to TESTS, then select 2: T-Test. Choose Inpt: Data, , List: L1, Freq: 1, and . Scroll to Calculate and press ENTER. The calculator will display the test statistic, p-value, , , and .
Solution:
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 ). Find the row with degrees of freedom:
Look across the row to see where a t-value of would fall. The closest listed value is , which corresponds to a p-value of . Since is even farther into the right tail, the p-value is less than . This isn’t the exact p-value, but it’s enough to decide common significance levels such as or .
Method 2: Using the TI-84 calculator (recommended)
Press STAT, scroll to TESTS, and choose 2: T-Test. Choose Inpt: Stats, then enter:
Choose the correct alternative hypothesis (in this case, for right-tailed). Scroll to Calculate and press ENTER.
Solution:
Part e.
Conclude and explain it in context. Use the significance level.
Solution:
Since
We reject the null hypothesis. There is strong evidence that the true mean sodium content of this brand of soup is greater than mg per serving. The dietician’s claim most likely underestimates the actual sodium content of the soup.