Source: https://www.math.univ-toulouse.fr/~agarivie/sites/default/files/JDS15_bandits.pdf