https://rud.is/b/2012/03/07/thinkstats-1-3/
ThinkStats … in R :: Example 1.3