AP® Statistics · Unit 3 · Topic 3.6

One-Sided and Two-Sided p-Values

The same test statistic gives two different p-values depending on whether the alternative hypothesis points one direction or allows either direction, because a two-sided test counts area in both tails.

A p-value answers: if the null hypothesis is true, how likely is a result this extreme or more extreme? What counts as extreme depends on the alternative hypothesis. A one-sided alternative, like p > 0.5, only cares about results far in one direction, so the p-value is just the area in that one tail of the sampling distribution. A two-sided alternative, like p ≠ 0.5, treats a result far above or far below the null value as equally surprising, so you shade both tails and add their areas.

Because the normal curve is symmetric, the two tails beyond a given z-score have equal area. That means the two-sided p-value is simply double the one-sided p-value for the same test statistic. A z of 1.85 has a one-sided p-value of about 0.0322 (the area above z = 1.85). Double it and the two-sided p-value is about 0.0643. Same data, same statistic, different question being asked, different answer.

This matters because the choice between one-sided and two-sided has to be locked in before looking at the sample, as part of stating the hypotheses. If someone peeks at the data, sees the sample proportion leaned high, and then decides to test only p > p0, they are quietly giving themselves extra chances to find significance that the stated significance level does not account for. That connects directly to Type I error: a test's real false-positive rate only matches its stated alpha when the direction was fixed in advance, not chosen to match what the data already showed.

Key terms

p-value
The probability of getting a test statistic as extreme or more extreme than observed, assuming the null hypothesis is true.
one-sided alternative
A hypothesis that the parameter is greater than or less than the null value, shading only one tail.
two-sided alternative
A hypothesis that the parameter simply differs from the null value, shading both tails of the distribution.
Type I error
Rejecting a true null hypothesis, a false positive, whose rate is controlled by the significance level alpha.

Watch it explained

  1. How it worksHow does a two-sided alternative shade both tails instead of only one?
  2. Worked exampleFind the two-sided p-value for a z of 1.85 in a test about a population proportion.
  3. Common mistakeWhy isn't it fair to switch to a one-sided test after seeing which way the data went?

Check yourself

Your turn1 of 2
A one-sided p-value for a test statistic is 0.142. Find the corresponding two-sided p-value.

End of topic.