Thompson Sampling
Suppose we have variations, and we want to update the variation weights for a given context.For the -th variation, define its mean as , k = 1, …, K. Denote the probabiity that is larger than the other means as as .
Under Thompson Sampling, is the variation weight for the -th variation. Define the posterior mean of as and its posterior variance as .
Define its posterior standard deviation as . Define the posterior distribution of as . This best-arm probability can be expressed as: We leverage the fact that the posterior distributions of the are normal and independent. The result above can be expressed as the expected value of the function below over the distribution of We use Gauss-Hermite quadrature to approximate the integral. Our integral is well suited for Gauss-Hermite quadrature, as the function inside the integral is smooth and light-tailed.
Let which implies that Define the standard normal distribution as . The integral can be represented as: Letting places the integral in the standard form for the Gauss-Hermite quadrature, which is

