Code
library(tidyverse)An Interactive Introduction
This lecture note introduces permutation tests — an exact, distribution-free approach to hypothesis testing that does not rely on asymptotic approximations or parametric assumptions.
The central idea is simple: under the null hypothesis of no treatment effect, the observed outcome vector \(Y\) is independent of the treatment assignment \(W\). If that is true, then any re-assignment of \(W\) is equally likely, and we can construct the exact null distribution of any test statistic by enumerating all such re-assignments.
| Chapter | Content |
|---|---|
| 2 — Permutation Tests | Setup, test statistic, permutation distribution, critical values, and an interactive simulation |
library(tidyverse)