Decide & act
Contextual bandits
hero banner, subject line, notification timing, layout choice
Choose which of a few options to show each user, learning online from what they do.
Probability & Bayes
Hypothesis testing
Foundations
Thompson sampling is Bayesian updating; regret bounds come from concentration inequalities.
Frame the problem
Frame
A small action set, fast feedback, and a cost to showing the wrong thing. If feedback is slow or actions have long consequences, this is the budget-constrained optimisation playbook.
Sourcing & signal
Hunting for leakage
Data & labels
Logged context, action, and reward, plus the probability the action was shown. Without that propensity you cannot evaluate offline.
Encode & scale
Create features
Represent
Context features that are known at decision time. Nothing that arrives after the impression.
Temporal splits & backtesting
Split
Temporal. Offline replay on logged data.
Dumb baseline
Bandits
Scaling up
A per-arm online logistic model when the action set grows.
Online learning
Logistic regression
Model
A fixed A/B split is the baseline. Epsilon-greedy, then Thompson sampling, then LinUCB or a contextual policy when context matters.
Online learning
Train
Updates are online; the hyperparameter is the exploration rate and how fast it decays.
Off-policy evaluation
Evaluate offline
Replay and inverse propensity scoring on logs. Doubly robust when the logging policy was skewed.
A/B testing & interleaving
Evaluate online
The bandit against the fixed split, with guardrails on the arms it might starve.
Serving & release
Monitor & retrain
Ship & monitor
Log propensities forever. Watch for the loop where the bandit stops exploring and the data stops informing.
Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.