1. Home
  2. Explore
  3. Statistics
  4. One-Sample Mean Hypothesis Test

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

One-Sample Mean Hypothesis Test

One-Sample Hypothesis Test for a Population Mean

Identifying the type of problem

A hypothesis-testing problem may concern either a population mean or a population proportion. The wording helps identify which one is being tested:

  • Words such as average or mean indicate a mean problem. The population mean is represented by μ\muμ.

  • A proportion problem concerns a fraction or percentage of a population and uses a population proportion, often represented by ppp.

In this example, the claim concerns the average student loan debt, so the test is about a population mean.

When entering information into a calculator, the sample mean is not the total for all sampled students. It is the average value for the sample. Here, the reported value of 27,52427{,}52427,524 is the sample mean, written xˉ\bar{x}xˉ.


Writing the hypotheses

The alternative hypothesis represents the claim being investigated. It is often easiest to write this first because the claim’s wording indicates the direction of the test.

The claimed average loan debt is higher than the reported value of 25,23525{,}23525,235, so the alternative hypothesis is

Ha:μ>25,235H_a:\mu>25{,}235Ha​:μ>25,235

The null hypothesis uses the reference value and represents the baseline assumption:

H0:μ=25,235H_0:\mu=25{,}235H0​:μ=25,235

The hypotheses must refer to the same population quantity—in this case, the population mean student loan debt—and use the same reference value.

Choosing the direction

Words such as higher, greater than, increased, or more than indicate a right-tailed test:

Ha:μ>μ0H_a:\mu>\mu_0Ha​:μ>μ0​

Other directional claims correspond to different tails:

  • Lower, less than, or decreased indicates a left-tailed test: Ha:μ<μ0H_a:\mu<\mu_0Ha​:μ<μ0​.

  • Different or not equal indicates a two-tailed test: Ha:μ≠μ0H_a:\mu\ne\mu_0Ha​:μ=μ0​.

The direction should primarily come from the claim’s wording, not from whether the observed sample mean happens to be above or below the reference value. The sample result can help check whether an interpretation makes sense, but it does not replace the claim.


Selecting the test and entering the data

A one-sample ttt-test is used to test a population mean when the population standard deviation is not known and the sample standard deviation is provided.

For the student-loan example, the information is:

  • Null-hypothesis mean: μ0=25,235\mu_0=25{,}235μ0​=25,235

  • Sample mean: xˉ=27,524\bar{x}=27{,}524xˉ=27,524

  • Sample standard deviation: s=6,000s=6{,}000s=6,000

  • Sample size: n=100n=100n=100

  • Significance level: α=0.05\alpha=0.05α=0.05

The significance level of 5%5\%5% must be written as a decimal when compared with a calculator’s ppp-value:

α=0.05\alpha=0.05α=0.05

The sample size is the number of students sampled, not a loan amount. The standard deviation describes variation in individual loan amounts; the sample mean describes the average loan amount in the sample.


Test statistic and ppp-value

The one-sample ttt statistic measures how many estimated standard errors the sample mean lies above or below the null-hypothesis mean:

t=xˉ−μ0s/nt=\frac{\bar{x}-\mu_0}{s/\sqrt{n}}t=s/n​xˉ−μ0​​

For these data,

t=27,524−25,2356,000/100=2,289600≈3.815t=\frac{27{,}524-25{,}235}{6{,}000/\sqrt{100}} =\frac{2{,}289}{600} \approx 3.815t=6,000/100​27,524−25,235​=6002,289​≈3.815

This positive test statistic is consistent with the sample mean being above the value specified in the null hypothesis. The test uses a ttt distribution with

df=n−1=99df=n-1=99df=n−1=99

degrees of freedom.

The ppp-value is the probability, assuming the null hypothesis is true, of obtaining a result at least as supportive of the alternative hypothesis as the observed result. Because the alternative is right-tailed, the ppp-value is the area to the right of the observed test statistic under the ttt distribution. For these data, it is approximately

p≈0.0001p\approx 0.0001p≈0.0001

When a calculator presents results for left-, right-, and two-tailed tests, the alternative hypothesis determines which result to use. Since HaH_aHa​ uses >>>, the right-tailed ppp-value is appropriate.

The same tail direction can be seen by considering sample means: under the null hypothesis, this test asks how likely it would be to obtain a sample mean of 27,52427{,}52427,524 or higher.


Making the decision

Compare the ppp-value with the significance level:

  • If p≤αp\leq\alphap≤α, reject the null hypothesis.

  • If p>αp>\alphap>α, fail to reject the null hypothesis.

Here,

0.0001<0.050.0001<0.050.0001<0.05

Therefore, the null hypothesis is rejected.

A small ppp-value means that a sample result this far in the direction of the alternative would be unlikely if the null hypothesis were true. It provides evidence against the null hypothesis.


Stating the conclusion in context

Because the null hypothesis is rejected, the result is described as sufficient evidence for the alternative claim:

At the 5%5\%5% significance level, there is sufficient evidence to support the claim that the average student loan debt in the area is higher than 25,23525{,}23525,235.

If the ppp-value had been greater than the significance level, the appropriate conclusion would instead be that there is not sufficient evidence to support the claim. Failing to reject the null hypothesis does not prove that the null hypothesis is true; it means the sample did not provide strong enough evidence against it.

The decision and wording should stay aligned: rejecting the null corresponds to sufficient evidence for the stated alternative, while failing to reject corresponds to insufficient evidence for that alternative.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent