Course contentsShow
← Data Science
Lesson 410 of 2,14511. Hypothesis Tests for Proportions and CategoriesFree lesson

P-Value Calculation and Interpretation

Finding p-values for one-tailed and two-tailed proportion tests.

P-Value Calculation and Interpretation

What You'll Learn

You'll learn how to compute and correctly interpret p-values for both one-tailed and two-tailed proportion tests.

Finding P-Values for Proportion Tests

When you've calculated your Z-test statistic for proportions (whether one-sample or two-sample), the next step is converting it into a p-value that tells you how surprising your result is under the null hypothesis.

One-Tailed Tests

For a right-tailed test (H₁: p > p₀), the p-value is the area in the right tail beyond your Z-statistic:

  • If Z = 2.1, you find the probability P(Z > 2.1)
  • Smaller areas (probabilities closer to 0) mean stronger evidence against the null

For a left-tailed test (H₁: p < p₀), the p-value is the left tail:

  • If Z = -1.8, you find P(Z < -1.8)

Two-Tailed Tests

For a two-tailed test (H₁: p ≠ p₀), you double the tail probability:

  • If Z = 2.1, find P(Z > 2.1), then multiply by 2
  • This accounts for extreme values in either direction

Think of it this way: The p-value answers "If the null hypothesis were true, what's the probability of seeing a result this extreme or more?" A small p-value (typically < 0.05) suggests your observed result is unlikely under the null, providing evidence for the alternative hypothesis.

Making the Decision

Once you have your p-value:

  • Compare it to your significance level α (usually 0.05)
  • If p-value ≤ α: reject the null hypothesis
  • If p-value > α: fail to reject the null hypothesis

Key Takeaway: The p-value transforms your Z-statistic into an interpretable probability—for two-tailed proportion tests, always double the single-tail probability to account for deviations in both directions.