Skip to content

Hypothesis Testing & Bayesian Inference

The decision side of inference: given noisy data, how do you separate real signal from random chance, and how do you quantify the risk of being wrong? This section covers hypothesis testing and p-values, the two error types and statistical power, the test family (z, t, chi-squared, F, ANOVA), non-parametric tests, Bayesian estimation, and the practical concepts that surround them.

Rapid Recall

A hypothesis test asks whether an effect is real or luck, framing a specific null and rejecting it only when the data are surprising under it. The p-value is the probability of data this extreme or more given the null, not the probability the null is true. Type I error (false positive) has probability \(\alpha\) that you set; Type II (\(\beta\)) depends on effect size, sample size, noise, and \(\alpha\), and power is \(1-\beta\). The test family (z, t, chi-squared, F) all descend from the normal via the central limit theorem. Bayesian estimation reweights a prior by the likelihood, and MAP picks the posterior mode, which is exactly regularized maximum likelihood.

What this section covers

The decision pipeline

flowchart LR
  HT["Hypothesis testing"] --> P["p-value"]
  P --> Err["Type I/II & power"]
  Err --> Tests["z, t, chi-squared, F, ANOVA"]
  Tests --> NP["Non-parametric tests"]
  HT --> Bayes["Bayesian estimation & MAP"]
  Tests --> Found["CLT & LLN foundations"]