Hypothesis Tests for Population Means (College Board AP® Statistics): Study Guide
One-sample t-test for a mean
What is a one-sample t-test?
A one-sample t-test is used to test whether the population mean, , is different from a hypothesized value,
You use a t-test when the population standard deviation, , is unknown
This requires using the t-distribution, which is similar to the normal distribution
To test the claim, you take a recent random sample of size from the population and calculate the sample mean,
e.g. you randomly sample 20 cats and calculate their mean weight to be 5.2 kg
The sample mean is 5.2 kg
What are the hypotheses for a one-sample t-test?
The null hypothesis, , is the assumption that the population mean has not changed
e.g. The mean weight of all cats in a city is 4.6 kg ()
It is assumed to be correct, unless there is convincing evidence against it
The alternative hypothesis, , is how you think the population mean has changed
e.g. The mean weight of all cats in a city has increased from 4.6 kg ()
Remember that a t-test could be one-tailed or two-tailed
This will affect your alternative hypothesis
Examiner Tips and Tricks
When writing out your hypotheses, always fully define the symbol used for the population parameter in context, e.g. '... where is the mean weight of all cats in the city'.
What are the conditions for a one-sample t-test?
When performing a one-sample t-test, check that
the data come from a random sample (or from random assignment in an experiment)
if sampling without replacement, the sample size is at most 10% of the population size,
This is not needed when treatments are randomly assigned in an experiment
the sampling distribution of is approximately normal
This is true if any one of these holds:
the population is approximately normal
the sample size is large,
the sample data show no strong skewness and no outliers
How do I calculate the standardized test statistic (t-value)?
You need a measure of how far the sample mean is from the population mean
This is the standardized test statistic (in this case, called the t-value)
The t-value, for the mean is given by:
where is the sample mean, is the hypothesized population mean, is the sample standard deviation, and is the sample size
The t-value shows how many standard errors the sample mean is from the hypothesized population mean
Examiner Tips and Tricks
The formula for the standardized test statistic is given in the exam, , along with tables of parameters and standard errors.
You will need to apply this correctly to get the t-value.
How do I calculate the p-value?
Work out the t-value
Find the appropriate number of degrees of freedom (df)
For a one-sample t-test this is always,
Using the t-distribution table given to you:
find the row for the df
find the two values in that row that the calculated t-value lies between
the p-value lies between the tail probabilities at the top of those two columns
Note that the p-value from the t-table is for one tail
For a two-tail test, remember to work out the total probability across both tails
You can double the p-value from a one-tail test
How do I conclude a hypothesis test?
Conclusions to a hypothesis test need to show two things:
a decision about the null hypothesis
an interpretation of this decision in the context of the question
To make the decision, compare the p-value to the significance level
If then we reject the null hypothesis
If then we fail to reject the null hypothesis
Examiner Tips and Tricks
Remember that the test should be interpreted within the context of the question.
Use the same language in your conclusion that is used in the problem, e.g. 'The data provide convincing statistical evidence that the mean weight of all cats in the city has increased'.
What are the steps for performing a one-sample t-test on a calculator?
When using a calculator to conduct a one-sample t-test, you must still write down all steps of the hypothesis testing process:
State the null and alternative hypotheses and clearly define your parameter
Describe the test being used and show that the situation meets the conditions required
Calculate the t-value and the degrees of freedom
Calculate the p-value using your calculator
select a one-sample t-test and enter the relevant summary statistics or data to generate the p-value
Compare the p-value to the significance level
Write down the conclusion to the test and interpret it in the context of the problem
Examiner Tips and Tricks
Even if you perform the one-sample t-test on your calculator, it is still important to show all of your work to demonstrate full understanding. Therefore you should still calculate the t-value and the degrees of freedom.
Worked Example
The IQ of all 800 students at Calculus High can be modeled as a normal distribution with mean 126. The principal decides to play classical music during lunchtimes and suspects that the mean IQ has changed. The principal randomly selects 15 students and asks them to complete an IQ test. The mean score for the sample is 127.1 and the sample standard deviation is 3.8.
(a) At the 0.05 level of significance, is the principal's suspicion supported by the test?
(b) Based on the conclusion from part (a), which type of error — Type I or Type II — could the principal have made? Interpret the consequence of this error in the context of the study.
Answer:
(a)
Define the population parameter,
Let be the mean IQ of all students at Calculus High
Write the null and alternative hypotheses, this will be a two-tailed test as a change is suspected but an increase or a decrease is not specified
State the type of test being used and verify the conditions for the test
The correct inference procedure is a one-sample t-test for the population mean at
The independence condition is satisfied, as
the sample of 15 students was selected randomly by the principal
and the sample size, 15, is less than 10% of the population of the school, 800 (15 < 80), which is required as sampling was conducted without replacement
The distribution of IQ scores in Calculus High is normal
The population standard deviation is unknown, so the sample standard deviation is used and a t-test is appropriate
Calculate the standardized test statistic, using
State the number of degrees of freedom
degrees of freedom = 15 - 1 = 14
Method 1: Using the t-table
At df = 14, 1.121 lies between 1.076 (tail probability 0.15) and 1.345 (0.10)
So:
Double these values because it is a two-tailed test
, so fail to reject
Method 2: Using a calculator
Write down the parameters for the t-test
Enter these into your calculator along with the correct alternative hypothesis and calculate the p-value
Compare the probability to the significance level and state the conclusion of the test
We fail to reject
Interpret the result in the context of the question
We do not have convincing statistical evidence that the mean IQ of students at Calculus High has changed from 126
(b)
Identify the error type from the conclusion
Because the conclusion was to fail to reject , the principal cannot have made a Type I error (rejecting a true )
The only possible error type is a Type II error
State what a Type II error means in context
A Type II error would mean failing to find convincing evidence of a change in the mean IQ when, in reality, the mean IQ of all students at Calculus High is no longer 126
Interpret the consequence
If the principal made a Type II error, they would conclude that classical music at lunchtime has no effect on the mean IQ of students at Calculus High, when in reality the music does affect the mean IQ
As a consequence, the principal may conclude that the music makes no difference to students' IQ and stop playing it at lunchtimes, when in fact it does change the mean IQ
Unlock more, it's free!
Was this revision note helpful?
Build on this topic