Hypothesis Tests for Population Means (College Board AP® Statistics)

Study Guide

Test yourself
Naomi C

Written by: Naomi C

Reviewed by: Dan Finlay

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, mu, of a normally distributed population has changed

    • You use a t-test when the population standard deviation, sigma, is unknown

      • This requires using the t-distribution, which is similar to the normal distribution

  • To try to prove your case, you take a recent random sample of size nfrom the population and calculate the sample mean, x with bar on top

    • 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, straight H subscript 0, is the assumption that the population mean has not changed

    • e.g. straight H subscript 0 space colon The mean weight of all cats in a city is 4.6 kg (mu equals 4.6)

      • It is assumed to be correct, unless evidence proves otherwise

  • The alternative hypothesis, straight H subscript straight a, is how you think the population mean has changed

    • e.g. straight H subscript straight a colon The mean weight of all cats in a city has increased from 4.6 kg (mu greater than 4.6)

    • 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 mu 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, you must show that it meets the following conditions:

    • Items in the sample (or experiment) must satisfy the independence condition

      • by verifying that data is collected by random sampling

      • or random assignment (in an experiment)

      • and, if sampling without replacement, showing that the sample size is less than 10% of the population size

    • The population is approximately normally distributed

      • The distribution needs to be approximately symmetric

      • There should be no outliers

    • If the population is very skewed, you can only do a t-test ifn greater or equal than 30

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:

    • t equals fraction numerator x with bar on top minus mu over denominator fraction numerator s over denominator square root of n end fraction end fraction

    • where x with bar on top is the sample mean, mu is the population mean, s is the sample standard deviation, and n is the sample size

  • The t-value shows how many standard errors the sample mean is from the population mean

Examiner Tips and Tricks

The formula for the standardized test statistic is given in the exam, fraction numerator statistic minus parameter over denominator standard space error space of space the space statistic end fraction, 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 ('dof')

    • For a one-sample t-test this is always, dof equals n minus 1

  • Using the t-distribution table given to you:

    • find the row that corresponds to the dof

    • identify the t-value in the row that is closest to the calculated value

    • write down the value in the corresponding column header

      • this is the p-value

  • Note that the p-value from the t-table is for one tail

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 p less than alpha then the null hypothesis should be rejected

    • If p greater than alpha then the null hypothesis should not be rejected

  • In a two-tailed test, double the p-value and compare this to alpha

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 provides sufficient 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-values 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 working 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 this has caused a change in the average IQ of the students. 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. At the 0.05 level of significance, is the principal's suspicion supported by the test?

Method 1: Using the t-table

Define the population parameter, mu

Let mu 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

straight H subscript 0 space colon space mu equals 126
straight H subscript straight a space colon space mu not equal to 126

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 alpha equals 0.05

  • 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 sample size is small (n equals 15, which is less than 30) and the population standard deviation is unknown, so the t-distribution can be used

Calculate the standardized test statistic, using t equals fraction numerator x with bar on top minus mu over denominator fraction numerator s over denominator square root of n end fraction end fraction

t equals fraction numerator 127.1 minus 126 over denominator fraction numerator 3.8 over denominator square root of 15 end fraction end fraction equals 1.12112...

State the number of degrees of freedom

degrees of freedom = 15 - 1 = 14

Find the p-value from the t-tables

Find the row corresponding to 14 degrees of freedom and identify the t-value that is closest to the calculated t-value

closest t-value = 1.076

corresponding p-value is p equals 0.15

Double this probability because it is a two-tailed test

p equals 0.15 times 2 equals 0.3

Compare the probability to the significance level and state the conclusion of the test

table row cell 0.3 end cell greater than cell 0.05 end cell row p greater than alpha end table

straight H subscript 0 is not rejected

Interpret the result in the context of the question

We do not have sufficient evidence to support the principal's suspicion that the mean IQ of the students at Calculus High is affected by the playing of classical music at lunchtime

Method 2: Using a calculator

Define the population parameter, mu

Let mu 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

straight H subscript 0 space colon space mu equals 126
straight H subscript straight a space colon space mu not equal to 126

State the type of test being used and the conditions for the test

The correct inference procedure is a one-sample t-test for the population mean at alpha equals 0.05

  • 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)

  • The distribution of IQ scores in Calculus High is normal

  • The sample size is small (n equals 15, which is less than 30) and the population standard deviation is unknown, so the t-distribution can be used

Even though you do not need to enter the t-value or the degrees of freedom to your calculator, it is still important to show the calculation of them

Calculate the standardized test statistic, using t equals fraction numerator x with bar on top minus mu over denominator fraction numerator s over denominator square root of n end fraction end fraction

t equals fraction numerator 127.1 minus 126 over denominator fraction numerator 3.8 over denominator square root of 15 end fraction end fraction equals 1.12112...

State the number of degrees of freedom

degrees of freedom = 15 - 1 = 14

Write down the parameters for the t-test

mu equals 126
x with bar on top equals 127.1
s equals 3.8
n equals 15

Enter these into your calculator along with the correct alternative hypothesis and calculate the p-value

p equals 0.28109...

Compare the probability to the significance level and state the conclusion of the test

table row cell 0.28109... end cell greater than cell 0.05 end cell row p greater than alpha end table

straight H subscript 0 is not rejected

Interpret the result in the context of the question

We do not have sufficient evidence to support the principal's suspicion that the mean IQ of the students at Calculus High is affected by the playing of classical music at lunchtime

Last updated:

You've read 0 of your 10 free study guides

Unlock more, it's free!

Join the 100,000+ Students that ❤️ Save My Exams

the (exam) results speak for themselves:

Did this page help you?

Naomi C

Author: Naomi C

Expertise: Maths

Naomi graduated from Durham University in 2007 with a Masters degree in Civil Engineering. She has taught Mathematics in the UK, Malaysia and Switzerland covering GCSE, IGCSE, A-Level and IB. She particularly enjoys applying Mathematics to real life and endeavours to bring creativity to the content she creates.

Dan Finlay

Author: Dan Finlay

Expertise: Maths Lead

Dan graduated from the University of Oxford with a First class degree in mathematics. As well as teaching maths for over 8 years, Dan has marked a range of exams for Edexcel, tutored students and taught A Level Accounting. Dan has a keen interest in statistics and probability and their real-life applications.