R calculations for article: http://www.win-vector.com/blog/2015/06/betting-with-their-money/