Why read RL as statistics
A reinforcement learning agent never sees the thing it wants. It wants the expected return of its policy, and it sees one noisy return at a time. It wants the gradient of that expectation, and it sees a single sampled trajectory. It wants to know which of two algorithms is better, and it has five random seeds. Underneath the vocabulary of agents and environments, almost every question in RL is a question a statistician would recognise: what am I estimating, is my estimator biased, how large is its variance, and how sure should I be?
This course takes that view seriously. Each chapter picks one RL idea, names the statistical object hiding inside it, and uses the statistician's tools to explain why the method looks the way it does:
- Bandits are sequential experiments, and UCB is a confidence interval used as a decision rule.
- Thompson sampling is Bayesian inference with one extra step: act on a draw from the posterior.
- Monte Carlo and TD learning are two estimators of the same mean, one unbiased and noisy, one biased and steady.
- Off-policy evaluation is importance sampling, with everything that makes importance sampling hard.
- Value-function approximation is regression on targets you make up yourself, and the max over noisy estimates is the winner's curse.
- Policy gradients are score-function estimators, and a baseline is a control variate.
- RLHF fits a Bradley–Terry model to preferences and then does regularised inference against a prior.
- Evaluating RL is a small-sample problem with heavy tails, and the usual "mean of three seeds" is not an answer.
Who it is for
You know probability and statistics at the level of a first mathematical statistics course: expectation, variance, the law of large numbers, the central limit theorem, maximum likelihood, Bayes' rule, confidence intervals. You can read NumPy. You don't need to know any reinforcement learning: the first chapter defines the decision process and every term after it is defined where it first appears. Symbols follow the notation page.
How each chapter works
Every chapter states the RL idea in plain words, names the estimator inside it, works a small example by hand, and then runs an experiment. Each chapter has a companion Python file that needs only NumPy; the numbers quoted in the chapter are what that file prints. Chapters end with exercises and the papers the chapter was written from.