Thompson sampling, one armed bandits, and the Beta distribution