Code for "Probability and Statistics for Programmers" by Allen B. Downey, published by O'Reilly Media.