One module per chapter of Wasserman, All of Statistics (2004), with one function per figure, linked to the lecture notes. The code is written for this course with numpy, scipy, pandas, matplotlib and scikit-learn, and reads the book's own data sets.
python3 ch09_parametric_inference.py, list its figures with --list, make one with --fig 9.1, or run every chapter with python3 make_all.py --figures.The book's data sets are downloaded once from its website into a local cache. Each figure is written to img/chNN/ as PNG, SVG and PDF. Shared helpers are in common.py.
Module: ch01_probability.py · Notes: Probability
Module: ch02_random_variables.py · Notes: Random Variables
Module: ch03_expectation.py · Notes: Expectation
Module: ch04_inequalities.py · Notes: Inequalities
Module: ch05_convergence.py · Notes: Convergence of Random Variables
Module: ch06_models_inference_learning.py · Notes: Models, Statistical Inference and Learning
Module: ch07_estimating_cdf.py · Notes: Estimating the cdf and Statistical Functionals
Module: ch08_bootstrap.py · Notes: The Bootstrap
Module: ch09_parametric_inference.py · Notes: Parametric Inference
Module: ch10_hypothesis_testing.py · Notes: Hypothesis Testing and p-values
Module: ch11_bayesian_inference.py · Notes: Bayesian Inference
Module: ch12_decision_theory.py · Notes: Statistical Decision Theory
Module: ch13_regression.py · Notes: Linear and Logistic Regression
Module: ch14_multivariate_models.py · Notes: Multivariate Models
Module: ch15_independence.py · Notes: Inference About Independence
Module: ch16_causal_inference.py · Notes: Causal Inference
Module: ch17_directed_graphs.py · Notes: Directed Graphs and Conditional Independence
Module: ch18_undirected_graphs.py · Notes: Undirected Graphs
Module: ch19_log_linear_models.py · Notes: Log-Linear Models
Module: ch20_nonparametric_curve_estimation.py · Notes: Nonparametric Curve Estimation
Module: ch21_orthogonal_functions.py · Notes: Smoothing Using Orthogonal Functions
Module: ch22_classification.py · Notes: Classification
Module: ch23_stochastic_processes.py · Notes: Probability Redux: Stochastic Processes
Module: ch24_simulation_methods.py · Notes: Simulation Methods