Exercises and examples from Think Stats.