APR-BAY-003 // apr-v2-f32

Beta-Bernoulli Thompson Sampling

Conjugate Bayesian multi-armed bandit balancing exploration and exploitation via posterior probability matching.

Beta-Bernoulli Thompson Sampling architecture poster

Runtime: Loading .apr...

Inference: --

Artifact Format
apr-v2-f32
Parameters
32 Beta(a,b) arms
Family
bayesian

CLI Execution & Inspection

$ apr run thompson-sampling --seed 99 --rounds 1000
$ apr inspect thompson-sampling.apr --verify-sha256

Mathematical Formulation

Conjugate Beta Posterior

θa∼Beta(α0+Sa,β0+Fa)

Numerical Contract

Cumulative regret bounded by O(sqrt(KT log T)) with deterministic ChaCha20 posterior draws.