⚠ Couldn't renderCanvas 2D context failed to initialize. Try reloading the page.

Multi-Armed Bandit — Marketing Budget Allocator (2D)

This simulator turns a classic reinforcement-learning problem — the multi-armed bandit — into a live marketing-budget dashboard. Five ad channels each hide a true, fixed conversion rate the algorithm cannot see. Every simulated budget unit is a "pull": a token drops from the budget source into the channel the current algorithm chose, landing as a win (green) or a miss (red) sampled from that channel's hidden rate. The top panel shows each channel's running estimate as a bar, the middle panel plots cumulative regret against the hindsight-optimal allocation over time, and the bottom strip shows how the budget has actually been split across channels so far. Switch between epsilon-greedy exploration, UCB1's confidence-bound exploration, and a random baseline, and watch all three panels respond together.