encyclopegia.org

Thompson sampling

Thompson sampling, named after William Rae Thompson, is a heuristic for choosing actions that address the exploration–exploitation dilemma in the multi-armed bandit problem.[src] It consists of choosing the action that maximizes the expected reward with respect to a randomly drawn belief.[src]

Thompson sampling, named after William Rae Thompson, is a heuristic for choosing actions that address the exploration–exploitation dilemma in the multi-armed bandit problem.[src] It consists of choosing the action that maximizes the expected reward with respect to a randomly drawn belief.[src] past observations triplets \mathcal{D} = \{(x; a; r)\} ; a posterior distribution P(\theta|\mathcal{D}) \propto P(\mathcal{D}|\theta)P(\theta) , where P(\mathcal{D}|\theta) is the likelihood function.[src] Thompson sampling consists of playing the action a^\ast \in \mathcal{A} according to the probability that it maximizes the expected reward; action a^\ast is chosen with probability \int \mathbb{I} \left[ \mathbb{E}(r|a^\ast,x,\theta) = \max_{a'} \mathbb{E}(r|a',x,\theta) \right] P(\theta|\mathcal{D}) d\theta, where \mathbb{I} is the indicator function.[src] In practice, the rule is implemented by sampling.[src] In each round, parameters \theta^\ast are sampled from the posterior P(\theta|\mathcal{D}) , and an action a^\ast chosen that maximizes \mathbb{E}[r|\theta^\ast,a^\ast,x] , i.e.[src] the expected reward given the sampled parameters, the action, and the current context.[src] Conceptually, this means that the player instantiates their beliefs randomly in each round according to the posterior distribution, and then acts optimally according to them.[src] In most practical applications, it is computationally onerous to maintain and sample from a posterior distribution over models.[src] As such, Thompson sampling is often used in conjunction with approximate sampling techniques.[src] P(a_{T+1}|\hat{a}_{1:T}, o_{1:T}) = \int_{\Theta} P(a_{T+1}|\theta, \hat{a}_{1:T}, o_{1:T}) P(\theta|\hat{a}_{1:T}, o_{1:T}) \, d\theta , where P(\theta|\hat{a}_{1:T}, o_{1:T}) is the posterior distribution over the parameter \theta given actions a_{1:T} and observations o_{1:T} .[src] In practice, the Bayesian control amounts to sampling, at each time step, a parameter \theta^\ast from the posterior distribution P(\theta|\hat{a}_{1:T}, o_{1:T}) , where the posterior distribution is computed using Bayes' rule by only considering the (causal) likelihoods of the observations o_1, o_2, \ldots, o_T and ignoring the (causal) likelihoods of the actions a_1, a_2, \ldots, a_T , and then by sampling the action a^\ast_{T+1} from the action distribution P(a_{T+1}|\theta^\ast,\hat{a}_{1:T},o_{1:T}) .[src]

14 sentences · 14 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Thompson sampling." encyclopegia.org, 2026, https://encyclopegia.org/wiki/thompson-sampling. Accessed 29 November 2026.

Chicago

"Thompson sampling." encyclopegia.org. Accessed November 29, 2026. https://encyclopegia.org/wiki/thompson-sampling.

APA

encyclopegia.org. (2026). Thompson sampling. Retrieved November 29, 2026, from https://encyclopegia.org/wiki/thompson-sampling

Accessed November 29, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Klay Thompson

stub · references available

Larry Thompson

stub · references available

Hanna Thompson

stub · references available

Thompson

stub · references available

Hugh Thompson

stub · references available

Caroline Thompson

stub · references available

John Thompson

stub · references available

Raymond Thompson

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1362198073 · 0.5 · snapshot enwiki-001362198073

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.