Hypothesis Testing Cheat Sheet

Complete framework for statistical hypothesis testing: null/alternative hypotheses, p-values, t-tests, chi-square, ANOVA, and Type I/II errors.

Last Updated: May 1, 2025

Core Concepts

ItemDescription
H0 (Null Hypothesis)The default assumption — 'no effect', 'no difference'
H1/Ha (Alternative)What you're trying to prove — 'there IS an effect'
p-valueProbability of observing data at least as extreme, assuming H0 is true
Alpha (Significance Level)Threshold to reject H0 — commonly 0.05 (5%)
One-tailed vs Two-tailedOne-tailed: tests direction (greater/less); Two-tailed: any difference
Power = 1 - BetaProbability of correctly rejecting H0 when H1 is true

Type I & Type II Errors

DecisionH0 is TrueH0 is False
Reject H0Type I Error (alpha)Correct (Power)
Fail to Reject H0Correct (1-alpha)Type II Error (beta)

T-Tests

ItemDescription
One-Sample t-testCompare sample mean to known population mean: t = (xbar - mu0) / (s/sqrt(n))
Independent Two-SampleCompare means of two independent groups; check equal variance assumption
Paired t-testCompare means of same subjects before/after — analyzes differences
Welch's t-testTwo-sample t-test WITHOUT assuming equal variances — safer default
AssumptionsNormality (or n>30), independence, continuous data
Cohen's d = (xbar1 - xbar2) / s_pooledEffect size for t-tests: 0.2=small, 0.5=medium, 0.8=large

Chi-Square & ANOVA

ItemDescription
Chi-Square Test of IndependenceTests association between two categorical variables
Chi-Square Goodness of FitTests if observed frequencies match expected distribution
Chi-Square Statistic: X^2 = Sum((O-E)^2 / E)Sum of squared standardized differences
One-Way ANOVACompare means of 3+ groups — tests if at least one differs
F = Between-group variance / Within-group varianceLarger F suggests real group differences
Post-Hoc Tests (Tukey HSD)After ANOVA: find WHICH groups differ — control familywise error
Pro Tip: A p-value is NOT the probability the null is true. It's P(data this extreme | null is true). A small p-value means surprising data under H0, not that your hypothesis is correct.