Multi-Armed Bandit: UCB1

hard
Unit 23 · Causal Inference0/0 to milestone

A/B tests split traffic evenly for weeks. Bandits shift traffic towards the winner as evidence comes in. UCB1 is the classic algorithm: be optimistic about arms you haven't tried much.

Pro problem

Unlock this and every premium problem across all tracks — plus hidden-test grading, advanced AI engineering modules and new content every week.

Start 7-day free trial
solution.py · Python 3.13
Run your code to see results. ⌘↵ to run · ⌘⇧↵ to submit
Multi-Armed Bandit: UCB1 · TechGradify