vault / exp / bandits.md

Multi-armed bandits

Experimentation 55 words 2 outgoing 3 backlinks

A bandit shifts allocation while learning which option performs better. That trades some fixed-test simplicity for less traffic spent on weak options. In the coupon example, Thompson sampling updates a traffic split in a batch job; request handling uses that split rather than sampling a posterior on every request.

Read the full example: related post.