AP Statistics · Topic 4.4 · Reading guide, about 5 min

Hypotheses and conditions for a one-sample t-test

Name the one-sample t-test, write null and alternative hypotheses about mu or mu_d, and check conditions in context.

In one minute

A significance test asks whether sample data give convincing evidence against a claim about a population. For a mean, when σ\sigma is unknown, the tool is the one-sample t-test. The same test handles matched pairs, by testing the mean of the differences.

Before any number is computed you do two things: write hypotheses that match the question, and check that the conditions allow the t procedure. Many points on a free-response question come from exactly this setup.

Key terms

Null hypothesis
H0H_0, the claim assumed true for the test. It always contains equality, such as μ=50\mu = 50.
Alternative hypothesis
HaH_a, the claim we look for evidence of. It is one-sided (<< or >>) or two-sided (≠\ne).
One-sample t-test
A test of a claim about a population mean μ\mu using the t statistic, when σ\sigma is unknown.
Null value μ0\mu_0
The specific number the null hypothesis claims for the mean, such as 50 or 0.
Matched pairs t-test
A one-sample t-test applied to the differences from paired data, with H0:μd=0H_0: \mu_d = 0.
Parameter
A number describing a population, such as μ\mu or μd\mu_d. Hypotheses are always about parameters, never about xˉ\bar{x}.
Two-sided alternative
Ha:μ≠μ0H_a: \mu \ne \mu_0, used when the question asks whether the mean is different, in either direction.
Normality condition
The sampling distribution of xˉ\bar{x} should be approximately normal, which can be justified by a normal population, n≥30n \ge 30, or sample data without strong skew or outliers.

Defining the parameter and writing hypotheses

Start with a sentence defining the parameter in words and context: "Let μ\mu be the true mean weight, in grams, of all loaves this bakery makes." Then write both hypotheses in symbols and, ideally, in words.

The null always has the form H0:μ=μ0H_0: \mu = \mu_0, where μ0\mu_0 is the claimed value. The alternative comes from the question the researcher is asking, not from the sample data. Decide the direction before looking at the numbers:

If the question asks whether the mean is lower than the claim, use Ha:μ<μ0H_a: \mu < \mu_0. If it asks whether it is higher, use Ha:μ>μ0H_a: \mu > \mu_0. If it asks only whether it differs, use Ha:μ≠μ0H_a: \mu \ne \mu_0.

Hypothesis patterns for a mean
Question wordingH0H_0HaH_a
Is the mean less than the claim?μ=μ0\mu = \mu_0μ<μ0\mu < \mu_0
Is the mean greater than the claim?μ=μ0\mu = \mu_0μ>μ0\mu > \mu_0
Is the mean different from the claim?μ=μ0\mu = \mu_0μ≠μ0\mu \ne \mu_0
Do matched pairs show an average decrease (after minus before)?μd=0\mu_d = 0μd<0\mu_d < 0
Do matched pairs show any average change?μd=0\mu_d = 0μd≠0\mu_d \ne 0

Matched pairs

When each individual gives two measurements, compute the difference for each individual first. The parameter is μd\mu_d, the true mean difference, and the null is H0:μd=0H_0: \mu_d = 0, meaning no average change. The direction of HaH_a depends on the order of subtraction, so state the order. If differences are after minus before and you expect scores to rise, the alternative is Ha:μd>0H_a: \mu_d > 0. If you reverse the order, the same research question becomes Ha:μd<0H_a: \mu_d < 0.

Conditions for the t-test

The conditions are the same as for the t-interval, and each needs a sentence tied to the problem.

Randomization: the data come from a random sample of the population or from a randomized experiment. Without it, the conclusion cannot be generalized, and bias can invalidate the test.

10% condition: when sampling without replacement, the sample is less than 10% of the population. (Skip this for a randomized experiment.)

Normality: the population is approximately normal, or n≥30n \ge 30, or the sample data have no strong skew or outliers, shown by a dotplot, boxplot or histogram. For a matched pairs test, check the differences, not the original two sets of values.

Worked example: hypotheses and conditions

A bakery advertises loaves that weigh 500 grams on average. An inspector (invented scenario) suspects the loaves are underweight. She randomly selects 12 loaves from a day's production of about 400 loaves and weighs them. A dotplot of the 12 weights is roughly symmetric with no outliers.

Parameter: let μ\mu be the true mean weight, in grams, of all loaves the bakery makes that day.

Hypotheses: H0:μ=500H_0: \mu = 500 and Ha:μ<500H_a: \mu < 500. The alternative is one-sided because the inspector suspects underweight loaves.

Procedure: a one-sample t-test for μ\mu, appropriate because the population standard deviation is unknown.

Conditions: randomization, since the 12 loaves were randomly selected. 10%, since 12<10%12 < 10\% of 400, which is 40. Normality: with n=12<30n = 12 < 30 we rely on the sample data, and the dotplot shows no strong skew or outliers, so a normal model for xˉ\bar{x} is reasonable. The conditions are met, so the t-test can proceed.

Now a paired version: a teacher gives 20 randomly chosen students a typing test before and after a month of practice. With μd\mu_d = the true mean of (words per minute after minus before) for all students in the school, the hypotheses are H0:μd=0H_0: \mu_d = 0 and Ha:μd>0H_a: \mu_d > 0. Normality is checked with a graph of the 20 differences.

How it connects

  • Back to 4.2: the conditions and the parameter definitions are identical to the t-interval.
  • Forward to 4.5: with hypotheses and conditions in place, you compute t and a p-value.
  • Forward to 4.9: two-sample t-tests use the same logic with H0:μ1=μ2H_0: \mu_1 = \mu_2.

Common mistakes

  • **Writing hypotheses about xˉ\bar{x}.** Write μ\mu or μd\mu_d. The sample mean is known, and no one tests a known value.
  • **Putting the research hope in H0H_0.** The null holds equality. The effect you look for goes in HaH_a.
  • Choosing the direction after seeing the data. The alternative follows from the question, not from which way xˉ\bar{x} fell.
  • Checking normality of the raw columns for pairs. Check the differences.

How it shows up on the exam

  • A scenario asking you to define the parameter, state both hypotheses in symbols and words, and name the test.
  • A request to check each condition in context, often with a graph of the sample or of the differences.
  • A short justification for why the data are paired or why a one-sided alternative fits the question.

Check yourself

  1. Why must hypotheses be about a parameter and not a statistic?
  2. A company claims phone batteries last 12 hours on average. You think it is lower. Write H0H_0 and HaH_a.
  3. For a before-and-after study, how does reversing the order of subtraction change HaH_a?
  4. A sample of 15 has an extreme outlier. Which condition is in trouble?

Practice this topic. AP Practice questions on exactly what this lesson covers, with an explanation for every answer.