Think-Stats [CS] transcribed some utility functions from thinkstats.py