Multi-Armed Bandit Simulation and Replay (epsilon-Greedy, UCB1, Thompson, EXP3)
Multi-armed bandit analysis evaluates allocation policies such as epsilon-greedy, UCB1, Thompson sampling and EXP3 by simulating or replaying sequential choices among options and measuring cumulative regret or reward.
다중 슬롯머신(멀티암드 밴딧) 분석은 여러 선택지 사이의 순차적 선택을 모의하거나 재생해 엡실론 탐욕, UCB1, 톰슨 샘플링, EXP3 같은 배분 정책을 누적 후회나 보상으로 평가하는 방법입니다.
We test four ad variants and want to shift traffic toward the best one while still learning; which bandit policy would have earned the most on our data?
광고 시안 네 개를 시험하면서 학습도 계속하고 가장 좋은 시안으로 트래픽을 옮기고 싶은데, 우리 자료라면 어떤 밴딧 정책이 가장 많이 벌었을까요?
Estimate each variant's reward from your data and simulate the policies many times, comparing cumulative regret, or replay a log collected under uniform random assignment to measure each policy's reward directly. Thompson sampling and UCB-type rules usually waste the fewest rounds on poor variants.
When to use Multi-Armed Bandit Simulation and Replay (epsilon-Greedy, UCB1, Thompson, EXP3)
- Options are tried repeatedly and rewards arrive quickly.
- You want to balance learning which option is best with exploiting it.
- You have pilot or logged data to estimate arm rewards or to replay.
When to use something else
- You need a confirmatory comparison with fixed error rates; use a classical A/B test.
- Rewards depend strongly on user features; use contextual bandits or uplift modelling.
Assumptions and requirements
- Arm rewards are stationary (Bernoulli for 0/1 rewards, otherwise normal with the observed SD in simulation).
- Replay is unbiased only if the logged arms were assigned uniformly at random.
- UCB1 and EXP3 see rewards rescaled to [0, 1] by the observed range.
What the analysis reports
- Mean cumulative regret and its SD per policy (simulation)
- Average reward per matched event (replay)
- Arm pull shares and estimated arm means
- Regret curve and policy comparison chart
How to report it
Over [value] simulated runs of [value] rounds with [value] arms, mean cumulative regret was [value] for Thompson sampling, [value] for UCB1, [value] for epsilon-greedy and [value] for EXP3.
Related methods
- A/B Test
- Bayesian A/B Testing
- Uplift Modelling
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with direct computations (formulas, enumeration or simulation).
독립 계산. 직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과.
Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.
허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.
Run Multi-Armed Bandit Simulation and Replay (epsilon-Greedy, UCB1, Thompson, EXP3) on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable and a grouping variable
- Price
- 250 credits for one analysis up to 10,000 rows (complexity level 2); larger or wider data costs more. Optional methodologist review: 1200 credits.
- Checking
- Compared with independent computations
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.