liveBook · Manning

Bootstrap Thompson sampling

As explained in Experimentation for Engineers

Bootstrap Thompson sampling is a form of Thompson sampling that estimates each alternative's probability of being best from bootstrap resamples or an ensemble of fitted models.

Bootstrap Thompson sampling selects among alternatives by fitting or resampling multiple plausible models, then treating each model’s predicted best alternative as a probability sample. Alternatives chosen by more models receive more traffic, while disagreement preserves targeted exploration. section 3.3.2 section 5.3.2

Ten recommender models

Suppose ten equally credible models predict which post will maximize viewing time. If seven select post #1 and three select post #2, the policy displays post #1 with probability 7/10 and post #2 with probability 3/10. Drawing a fresh model for each user therefore makes action probability equal to the estimated probability of being best. section 5.3.2

A practical implementation follows this pattern:

  • Fit an ensemble of models from bootstrap-resampled observations, using a suitable supervised-learning method. section 5.3.1 section 5.4
  • For each decision, draw one model uniformly at random and choose the action with its highest predicted reward. section 5.3.2
  • For non-contextual metrics such as click-through rate, bootstrap each arm’s observations, compare sampled estimates, and select the largest. section 3.3.2
  • Replace repeated full-data resampling with an online bootstrap when decision latency matters; otherwise repeated resampling can grow as O(T²). section 3.3.2

How Experimentation for Engineers covers it

How deep it goes
Explains ensemble voting, bootstrap selection, online updates, and O(T²) scaling, while deferring detailed model-training design.
Examples
Uses click-through-rate arms, recommender posts, ensemble model votes, and Python implementations of offline and online bootstrapping.
What it assumes
Assumes bandit decisions and supervised learning, while making bootstrap-based uncertainty useful across several model families.
What you can do after
Apply it via bootstrap resampling or model ensembles to balance exploitation with uncertainty-directed exploration.
How it connects
Connects Thompson sampling with randomized probability matching, contextual bandits, supervised learning, epsilon-greedy exploration, and A/B testing.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Experimentation for Engineers. The section links point to the parts of the book it draws on.