📊 P-Values & Statistical Significance

Understanding hypothesis testing, p-values, significance levels, and common misinterpretations.

The Null Hypothesis

Start with an assumption: Hâ‚€ (null hypothesis) states "there is no effect" or "the groups are the same".

Example Hâ‚€: "Drug A and placebo produce the same symptom relief."

Your test collects data and asks: "How unlikely is this data if Hâ‚€ is true?" If unlikely enough, reject Hâ‚€ and claim a difference exists (statistical significance).

What is a P-value?

P-value: Probability of observing your data (or more extreme) assuming Hâ‚€ is true.

Low p-value = your data is surprising under Hâ‚€ = evidence against Hâ‚€.

Example: Flip a coin 100 times, get 65 heads. H₀: coin is fair (50/50). P-value = probability of 65+ heads in 100 flips if coin is fair ≈ 0.002 (very low, unlikely under H₀).

Significance Level (α)

Threshold for "unlikely enough". Usually α = 0.05 (5% false positive rate acceptable). If p < α, reject H₀ and claim statistical significance.

Note: α = 0.05 means 1 in 20 tests will falsely reject H₀ even if it's true (false positive / Type I error).

What P-values Are NOT

Type I and Type II Errors

Trade-off: Lowering α (fewer false positives) increases β (more false negatives). Larger sample sizes reduce both.

Degrees of Freedom & Critical Values

Tests compare your statistic (t, χ², F, Z) to a threshold based on the distribution. The distribution depends on degrees of freedom (df) = roughly sample size minus constraints.

More df = larger critical value needed for significance = harder to reject Hâ‚€ (makes sense: larger sample should show real effects more clearly).

One-Tailed vs. Two-Tailed Tests

Two-tailed: "Is A different from B?" (either direction). Splits α in half (α/2 at each tail). More conservative.

One-tailed: "Is A better than B?" (specific direction). Uses all of α in one tail. Only use if you had strong reason to expect direction before seeing data.

Default: two-tailed. One-tailed risks p-hacking (if result went the other way, you'd ignore it).

P-Hacking & Multiple Comparisons

If you test many hypotheses, some will reach p < 0.05 by random chance alone. Running 20 tests at α=0.05 expects ~1 false positive.

Solutions:

Effect Size

P-value doesn't capture effect magnitude. Report both:

Confidence Intervals

95% confidence interval (CI): If you ran the same study 100 times, ~95 of them would produce CI's containing the true parameter.

Misinterpretation: NOT "95% probability the true value is in this interval" (Bayesian; requires a prior).

Use: Better than p-values alone because they show the range of plausible effects.

Reproducibility Crisis

Many published "significant" results don't replicate. Causes:

Fixes: Pre-register studies, report all tests (Registered Reports), use large samples, replicate before publishing.