Hypothesis Testing Framework

Set up hypothesis tests with null and alternative hypotheses, significance level, and p-values.

🎯⭐ INTERACTIVE LESSON

Try the Interactive Version!

Learn step-by-step with practice exercises built right in.

Start Interactive Lesson →

Hypothesis Testing Framework

The Logic of Hypothesis Testing

  1. Assume the null hypothesis (H0H_0) is true
  2. Collect data and compute a test statistic
  3. Determine how likely (or unlikely) the data is under H0H_0
  4. Make a decision: reject or fail to reject H0H_0

Hypotheses

Null Hypothesis (H0H_0): The "no effect" or "no difference" claim. Always includes ==.

Alternative Hypothesis (HaH_a): What we're trying to find evidence for.

Types of alternative hypotheses:

  • Two-sided: Ha:pp0H_a: p \neq p_0 or Ha:μμ0H_a: \mu \neq \mu_0
  • One-sided (right): Ha:p>p0H_a: p > p_0 or Ha:μ>μ0H_a: \mu > \mu_0
  • One-sided (left): Ha:p<p0H_a: p < p_0 or Ha:μ<μ0H_a: \mu < \mu_0

Significance Level (α\alpha)

The significance level α\alpha is the threshold for deciding when to reject H0H_0.

Common values: α=0.05\alpha = 0.05 (most common), α=0.01\alpha = 0.01, α=0.10\alpha = 0.10

Test Statistic

The test statistic measures how far the sample result is from what H0H_0 predicts:

test statistic=statisticparameter under H0standard error\text{test statistic} = \frac{\text{statistic} - \text{parameter under } H_0}{\text{standard error}}

P-Value

The p-value is the probability of obtaining a test statistic as extreme as (or more extreme than) the observed value, assuming H0H_0 is true.

  • Small p-value → evidence against H0H_0
  • Large p-value → no convincing evidence against H0H_0

Decision Rule

  • If p-valueαp\text{-value} \leq \alpha: Reject H0H_0. There is convincing evidence for HaH_a.
  • If p-value>αp\text{-value} > \alpha: Fail to reject H0H_0. There is not convincing evidence for HaH_a.

Never say "accept H0H_0" — we only fail to reject it.

Statistical Significance

A result is statistically significant at level α\alpha if the p-value α\leq \alpha.

Statistical significance ≠ practical significance. A very large sample can detect tiny, meaningless differences.

Four-Step Process (AP)

  1. State: Define parameter, state hypotheses, choose α\alpha
  2. Plan: Name the test, check conditions
  3. Do: Calculate test statistic and p-value
  4. Conclude: Compare p-value to α\alpha, state conclusion in context

AP Tip: Always state your conclusion in context: "Since the p-value of 0.03 is less than α=0.05\alpha = 0.05, we reject H0H_0. There is convincing evidence that [context about HaH_a]."

📚 Practice Problems

No example problems available yet.