Tutorials › AP Statistics › Choosing One-Sided or Two-Sided for Two Means

Two-sample t hypothesis tests · Tutorial 722 of 1000

Choosing One-Sided or Two-Sided for Two Means

Choose an alternative that matches what the research question asks, and check that its direction agrees with the order of the population means.

Intermediate 9 min read

What You'll Learn

  • Distinguish a question about any difference from a question about a difference in a specified direction.
  • Translate “higher,” “lower,” and “different” into alternatives for \(\mu_1-\mu_2\).
  • Check whether the opposite direction would also matter to the research question.
  • Choose the alternative before examining sample results.
  • Explain how reversing the order of the means changes a one-sided alternative.
  • Identify why a surprising sample result does not justify changing the alternative.

The Research Question Determines the Direction

In “Hypotheses for Comparing Two Means,” you learned to write a null hypothesis of no difference and an alternative describing the difference a study is designed to detect. Now the key decision is whether the alternative should be two-sided or one-sided. That decision comes from the research question and the study plan—not from which sample mean turns out to be larger.

A two-sided alternative asks whether the population means differ in either direction. A one-sided alternative asks whether one specified population mean is greater than the other. To choose correctly, identify what result the investigation is intended to find evidence for. Ask: Would a difference in either direction answer the research question, or is the question specifically about one direction?

Key distinction: Use a two-sided alternative when the question concerns a difference in either direction. Use a one-sided alternative when the question specifies a direction for the difference. In either case, the alternative must match the research question as stated before examining the sample results.

Keep the subtraction order visible. If the difference is defined as \(\mu_1-\mu_2\), then \(H_a:\mu_1-\mu_2\ne0\) allows either sign; \(H_a:\mu_1-\mu_2>0\) specifies a positive difference; and \(H_a:\mu_1-\mu_2<0\) specifies a negative difference. The symbols describe the population means, not what happens to every individual observation.

Read the Wording, Then Ask What Counts

Wording such as “different,” “not the same,” or “whether the means differ” does not identify a direction. These phrases call for a two-sided alternative, because either a positive or a negative population difference would answer the question.

Wording such as “higher,” “lower,” “greater,” or “less” specifies a direction. Translate it using the order of the means. If population 1 is expected to have a higher mean than population 2, the alternative is \(H_a:\mu_1-\mu_2>0\). If population 1 is expected to have a lower mean, the alternative is \(H_a:\mu_1-\mu_2<0\).

A useful way to check your choice is to imagine the population difference going the other way. If the question asks whether one process produces a higher mean response, a lower mean would not support that directional claim. But if the real concern is whether the processes produce any change—whether higher or lower—then the alternative should be two-sided.

1
Identify the comparison.
Use the research question to determine which two population means are being compared and what order the difference uses.
2
Look for direction words.
“Different” leaves the direction open. “Higher” or “lower” specifies a direction, interpreted in the order of the means.
3
Check whether the other direction matters.
If either direction would answer the research question, use a two-sided alternative. If the question is specifically about one direction, use a one-sided alternative.
4
Write the alternative before looking at results.
Do not use the sample means to decide which alternative would make the observed data look most compelling.

The null hypothesis remains the reference claim of equal population means: \(H_0:\mu_1-\mu_2=0\). Choosing the alternative does not change that null. It determines which kinds of differences count as evidence against it.

One-Sided Does Not Mean “Any Difference in the Expected Direction”

A one-sided alternative is a precise claim about the sign of the population mean difference. For example, \(H_a:\mu_1-\mu_2>0\) claims that the mean for population 1 is greater than the mean for population 2. It does not claim merely that the means differ, and it does not say that every value from population 1 exceeds every value from population 2.

A two-sided alternative, \(H_a:\mu_1-\mu_2\ne0\), makes no prediction about which mean is larger. It treats a positive and a negative difference as departures from the null. This is appropriate when a result in either direction is relevant to the research question, even if researchers have a guess about which direction is more likely.

Be careful with words such as “improve” or “better.” First identify what the quantitative variable measures. If a larger value means a better outcome, “improve” may mean a positive difference. If a smaller value is desirable—for example, fewer minutes of waiting—an improvement may mean a negative difference in the stated order. Translate the outcome into a direction for the mean; do not rely on the word “improve” alone.

Worked Examples

Worked Example: Do Two Study Spaces Differ?

A school compares the time, in minutes, students spend completing a particular practice set in a quiet room and in a shared study area. The question is whether the mean completion times differ. In an invented sample, the quiet-room group has a mean of 34 minutes and the shared-area group has a mean of 37 minutes. Choose the alternative.

Set the order: Let \(\mu_1\) be the true mean completion time for students using the quiet room, and let \(\mu_2\) be the true mean for students using the shared study area. The difference is quiet room minus shared area.

Read the question: The question asks whether the means “differ.” It does not ask whether either study space produces a higher or lower mean.

Choose the alternative: Either a positive or a negative difference would answer the question, so use \(H_a:\mu_1-\mu_2\ne0\). The null is \(H_0:\mu_1-\mu_2=0\).

Keep the sample results separate: The sample mean difference is \(34-37=-3\) minutes. That observed direction does not change the alternative to \(H_a:\mu_1-\mu_2<0\). The alternative follows the research question, which allows either direction.

Worked Example: Is One Packaging Method Faster?

A food producer compares the time, in seconds, needed to package an item using Method A and Method B. The question is whether Method A has a lower true mean packaging time than Method B. In an invented sample, the means are 18.6 seconds for Method A and 19.4 seconds for Method B. Choose the alternative.

Set the order: Let \(\mu_A\) be the true mean packaging time using Method A and \(\mu_B\) the true mean using Method B. Use Method A minus Method B.

Translate the claim: “Method A has a lower mean time” means \(\mu_A<\mu_B\). In the chosen order, this is \(\mu_A-\mu_B<0\).

Write the hypotheses: The null is \(H_0:\mu_A-\mu_B=0\), and the one-sided alternative is \(H_a:\mu_A-\mu_B<0\). The difference is measured in seconds.

Interpret the sample information: The sample difference is \(18.6-19.4=-0.8\) seconds, which points in the direction of the alternative. The observed difference is consistent with the question’s direction, but the question—not this sample result—is what justifies a one-sided alternative.

Worked Example: When “Improvement” Means a Smaller Mean

A community center compares wait times, in minutes, under its current appointment system and a revised system. The center’s question is whether the revised system reduces mean wait time. In an invented sample, the current-system mean is 12.5 minutes and the revised-system mean is 10.9 minutes. Choose the alternative using current system minus revised system.

Define the order: Let \(\mu_C\) be the true mean wait time under the current system and \(\mu_R\) the true mean under the revised system. The specified difference is \(\mu_C-\mu_R\).

Translate “reduces”: A reduction means the revised system has a lower mean wait time: \(\mu_R<\mu_C\). In the chosen order, that is equivalent to \(\mu_C-\mu_R>0\).

Write the hypotheses: Use \(H_0:\mu_C-\mu_R=0\) and \(H_a:\mu_C-\mu_R>0\). The one-sided alternative is positive because the current-system mean is listed first. If the difference were instead revised minus current, the same research question would require a negative alternative.

Check the sample direction: The sample difference is \(12.5-10.9=1.6\) minutes. The positive sample difference agrees with the directional claim, but it is not the reason for choosing that claim.

Worked Example: A Prediction Does Not Always Make the Test One-Sided

Researchers compare the mean energy use, in kilowatt-hours per day, of two home heating settings. They expect Setting A to use less energy than Setting B, but they also say that any difference in mean energy use—higher or lower—would be important to investigate. In an invented sample, the means are 21.3 kilowatt-hours for Setting A and 20.8 for Setting B. Choose the alternative that matches the stated research question.

Notice the distinction: The researchers predict that Setting A may use less energy, but their stated question is whether there is any difference, and they say that either direction would matter.

Set the order: Let \(\mu_A\) and \(\mu_B\) be the true mean daily energy uses for homes using Settings A and B. Use \(\mu_A-\mu_B\), measured in kilowatt-hours per day.

Choose the alternative: Since either direction is relevant, use \(H_a:\mu_A-\mu_B\ne0\), with \(H_0:\mu_A-\mu_B=0\). The prior prediction does not override the two-direction research question.

Separate results from the setup: The sample difference is \(21.3-20.8=0.5\) kilowatt-hours per day, in the opposite direction from the researchers’ prediction. That result does not justify switching to a different alternative. The research question was already defined to include either direction.

Changing the Order Changes the Sign

A one-sided alternative can look different when the order of the means is reversed, even though the research question is unchanged. Suppose the question is whether Group A has a lower mean than Group B. If the difference is Group A minus Group B, the alternative is \(H_a:\mu_A-\mu_B<0\). If the difference is Group B minus Group A, the same claim becomes \(H_a:\mu_B-\mu_A>0\).

This is why writing down the order before choosing a sign matters. A greater-than sign does not automatically mean that the group named in the research question is higher; it means the first mean in the written difference exceeds the second. A complete explanation names the two groups, states the order, and connects the sign to the question.

Quick sign check: For \(\mu_1-\mu_2\), a positive alternative means population 1 has the larger mean; a negative alternative means population 1 has the smaller mean. Reversing the order reverses the sign needed to express the same directional claim.

Common Mistakes and AP Exam Tips

  • Choosing a one-sided alternative because the sample means point that way: This uses the observed results to decide what the research question supposedly was. State the alternative from the question before using the sample data as evidence.
  • Treating a prediction as automatically one-sided: Researchers may expect one direction while still asking whether any difference exists. If a difference either way matters, the question calls for a two-sided alternative.
  • Using a one-sided alternative when the question says only “different”: “Different” does not specify which population mean is larger. Unless the question or study plan specifies a direction, use \(H_a:\mu_1-\mu_2\ne0\).
  • Reversing the sign when the order is fixed: If the difference is \(\mu_1-\mu_2\), a claim that population 1 has a lower mean requires \(H_a:\mu_1-\mu_2<0\), not a positive alternative.
  • Confusing a better outcome with a higher value: Lower wait time or lower energy use may be desirable. Translate the stated goal into a comparison of means, taking account of what the variable measures.
  • Changing the alternative after seeing an unexpected result: A result in the unpredicted direction does not make a one-sided claim point the other way. Keep the alternative tied to the question set before examining the data.

For full-credit communication, state whether the question concerns any difference or a specific direction, write the alternative using the defined order of means, and explain what its sign means in context. If the wording is ambiguous, do not guess from the sample means; clarify whether a result in the opposite direction would also answer the research question.

Key takeaway: A two-sided alternative is for a question about a difference in either direction; a one-sided alternative is for a question about a difference in a specified direction. Choose it from the research question before examining results, and let the subtraction order determine the sign.

Check Your Understanding

For each situation, choose a one-sided or two-sided alternative and write it using the stated order of the means.

  1. A comparison asks whether two printer models have different mean page-printing times. Let \(\mu_1\) be Model A’s mean and \(\mu_2\) Model B’s mean. What alternative matches the question?
  2. A researcher asks whether a new exercise plan leads to a higher mean number of push-ups than a standard plan. Let \(\mu_N\) be the new-plan mean and \(\mu_S\) the standard-plan mean. Write the alternative.
  3. A team asks whether a redesign changes mean daily screen time, and says either an increase or decrease would matter. Should the alternative be one-sided or two-sided?
  4. The question is whether Route P has a lower mean delivery time than Route Q. Write an alternative first using \(\mu_P-\mu_Q\), then using \(\mu_Q-\mu_P\).
  5. Why is it not appropriate to choose a one-sided alternative only after noticing which sample mean is larger?