Thompson Sampling
A Bayesian algorithm for the exploration-exploitation trade-off that maintains a posterior over model parameters and selects actions by sampling from the posterior and acting optimally with respect to the sample.
Method
Maintain posterior p(θ | data). At each round: sample θ ~ posterior; choose action that maximizes expected reward under θ; observe reward; update posterior. Exact for conjugate models (Beta-Bernoulli, Gaussian); approximate (Laplace, variational, MCMC, bootstrapping) otherwise.
Applications
Web optimization and advertising, recommendation systems, adaptive clinical trials, dynamic pricing, any sequential decision problem with Bayesian modeling.
Advantages
Principled Bayesian approach; often excellent empirical performance; natural uncertainty handling; elegant and general.
Limitations
Requires a Bayesian model and posterior sampling capability; performance depends on model quality; theoretical guarantees stronger in some settings than others; implementation complexity for complex models.
Alternatives
UCB and variants, ε-greedy, information-directed sampling, gradient bandit algorithms, full RL methods. Top Algorithms & Models — Part 2 (101–200) Research Compendium
Sources
Educational reference only, not professional advice.
All algorithms