One module per chapter of Wasserman, All of Nonparametric Statistics (2006), 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 ch05_nonparametric_regression.py, list its figures with --list, make one with --fig 5.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_introduction.py · Notes: Introduction
Module: ch02_estimating_cdf_functionals.py · Notes: Estimating the cdf and Statistical Functionals
Module: ch03_bootstrap_jackknife.py · Notes: The Bootstrap and the Jackknife
Module: ch04_smoothing_concepts.py · Notes: Smoothing: General Concepts
Module: ch05_nonparametric_regression.py · Notes: Nonparametric Regression
Module: ch06_density_estimation.py · Notes: Density Estimation
Module: ch07_normal_means_minimax.py · Notes: Normal Means and Minimax Theory
Module: ch08_orthogonal_functions.py · Notes: Nonparametric Inference Using Orthogonal Functions
Module: ch09_wavelets_adaptive_methods.py · Notes: Wavelets and Other Adaptive Methods
Module: ch10_other_topics.py · Notes: Other Topics