Chapter 45: The Logic of the Bandits