{"site":{"name":"Koji","description":"AI-native customer research platform that helps teams conduct, analyze, and synthesize customer interviews at scale.","url":"https://www.koji.so","contentTypes":["blog","documentation"],"lastUpdated":"2026-08-18T09:04:00.925Z"},"content":[{"type":"documentation","id":"37001e0e-e241-4a14-a821-e0e4711fb72b","slug":"multi-armed-bandit-vs-ab-test","title":"Multi-Armed Bandits vs A/B Tests: When Adaptive Allocation Costs You the Answer (2026)","url":"https://www.koji.so/docs/multi-armed-bandit-vs-ab-test","summary":"A multi-armed bandit reallocates traffic toward the leading arm to minimise regret; a fixed A/B test preserves allocation to maximise power and keep estimates unbiased. Benchmark simulations show aggressive index rules gain about 18.6% more in-trial successes while cutting power to roughly a third. Adaptively collected data also produce biased arm means. Bandits suit short-lived multi-arm decisions; A/B tests suit anything needing an effect size, a reusable result, or segment-level insight.","content":"# Multi-Armed Bandits vs A/B Tests: When Adaptive Allocation Costs You the Answer (2026)\n\n**Answer first: a multi-armed bandit and an A/B test optimise different things, and the difference is not efficiency - it is what you are allowed to conclude afterwards.** A bandit shifts traffic toward whichever variant is winning so far, which reduces the number of users exposed to the loser. An A/B test holds allocation fixed, which preserves your ability to estimate how much better the winner actually is. You cannot fully have both. In a benchmark clinical trial sized so that fixed randomisation reached 80% power, the most aggressive bandit rules delivered about 18.6% more successful outcomes during the trial - and cut statistical power to roughly a third of the fixed design's. Worse, the arm averages a bandit reports are systematically biased, because the algorithm's decision about what to sample next is entangled with what it has already seen.\n\nUse a bandit when the decision is short-lived and you only need a winner. Use an A/B test when you need an effect size, when the result will be reused, or when somebody will later ask *how much*. This guide explains why, with the arithmetic.\n\n## The two objectives, stated honestly\n\nEvery experiment has a cost: some users get the worse variant. Two different fields have optimised against that cost in opposite directions.\n\n**Bandits minimise regret.** Regret is the cumulative shortfall between what your users got and what they would have got had you assigned everyone the best arm from the start. A bandit algorithm - epsilon-greedy, Upper Confidence Bound, Thompson sampling, or a Gittins-index rule - continuously reallocates traffic toward arms that are performing well. Fewer users see the loser. The exploration/exploitation trade-off is exactly this: explore enough to find the best arm, exploit enough that finding it was worth something.\n\n**A/B tests minimise estimation error.** A fixed 50/50 split is not an accident of laziness. It is the allocation that maximises statistical power for a two-arm comparison, and it keeps assignment independent of accumulated outcomes, which is what makes the standard estimator unbiased and the standard confidence interval honest.\n\nThese goals conflict. Every unit of traffic a bandit pulls away from the losing arm is a unit of information about the losing arm that you no longer have. And the losing arm's performance is half of the effect size.\n\n## The trade, in numbers\n\nThe clearest quantification comes from clinical trials, where the ethical stakes of assigning patients to a worse arm forced the field to study this carefully. Villar, Bowden and Wason, writing in *Statistical Science* (2015), summarise their own results in the abstract: \"bandit approaches offer significant advantages, in terms of assigning more patients to better treatments, and severe limitations, in terms of their resulting statistical power.\"\n\nTheir benchmark is worth reproducing because it makes the trade concrete. They simulate a two-arm trial with a true success rate of 30% on control and 50% on treatment, sized at 148 participants so that fixed randomisation attains at least 80% power at a one-sided 5% significance level. Then they run the same trial under different allocation rules.\n\n| Allocation rule | What it optimises | Outcome during the trial | Ability to prove it |\n|---|---|---|---|\n| Fixed randomisation (50/50) | Estimation | Baseline | At least 80% power by construction |\n| Randomised bandits (Thompson sampling, UCB) | Balance | More successes than fixed | Slightly below fixed |\n| Deterministic index rules (Gittins, Whittle) | In-trial outcomes | About 11 more successes, an 18.62% improvement over fixed | Power roughly 3.5 times smaller than fixed |\n\nRead the bottom row twice. The Gittins-index design produced an average gain of 11 successfully treated patients, which the authors note \"is only 4 fewer patients on average than the theoretical upper bound\" achievable if every patient had been assigned the best treatment from the start. It is near-optimal at treating the people in the trial. And it arrives at the end with roughly a third of the power to demonstrate that the better treatment is better.\n\nThe mechanism is not mysterious. Under the Whittle-index rule the expected allocation was about 16 participants to control against about 132 to treatment. Sixteen observations is not enough to estimate a 30% rate with any precision, and the comparison is only as good as its weaker side. As the authors put it: \"Adaptive rules have their power reduced because they induce correlation among treatment assignments.\"\n\n**The generalisable form: a bandit spends your sample on the arm you already believe in, and your uncertainty about the effect size lives almost entirely in the arm it stopped sampling.**\n\n## The bias nobody warns you about\n\nLosing power is a known, quantifiable cost. There is a second problem that is easier to miss because the number still looks perfectly reasonable.\n\nNie, Tian, Taylor and Zou proved in 2018 that adaptively collected data produce biased arm means. Their abstract: \"we prove that when the data collection procedure satisfies natural conditions, then sample means of the data have systematic negative biases.\" The intuition they give is the useful one: \"consider an adaptive clinical trial where additional data points are more likely to be tested for treatments that show initial promise. Our surprising result implies that the average observed treatment effects would underestimate the true effects of each treatment.\"\n\nWhy negative? An arm that gets an unlucky early run is abandoned, and its record is frozen at that unlucky level, never given the chance to regress upward. An arm that gets a lucky early run is sampled heavily, and the additional data drags its average back toward the truth. Winners get corrected; losers get stranded. The conditions are satisfied by most commonly used algorithms, including UCB and Thompson sampling.\n\nThe literature has since refined this. Later work showed that the net direction is not universally negative: optimistic sampling produces a negative bias, but optimistic stopping and optimistic choosing produce positive ones, so the sign in a given deployment depends on which of those your setup does. The practical conclusion survives either way, and it is the one to write on the wall: **the arm averages on a bandit dashboard are not unbiased estimates, and treating them as effect sizes is a category error.** They were produced by a procedure that chose what to look at based on what it had already seen.\n\n## The sign inversion worth understanding\n\nThere is a genuine irony here for anyone who has worked on [interference between users](/docs/interference-between-users-experiments). In an interfering marketplace, the fix is to randomise *harder over time* - a switchback flips the whole system back and forth so that time, not people, carries the randomisation, and the resulting estimate is clean.\n\nA bandit does the opposite with the same axis. It lets accumulated results determine future allocation, which means treatment assignment becomes correlated with time. And anything else that drifts with time now confounds the comparison: your traffic mix, seasonality, a marketing campaign, the day of the week. Because late periods are heavily skewed toward the leading arm, a shift in population composition between early and late periods gets attributed to the arm rather than to the period. This is a Simpson's-paradox structure: each period can favour one arm while the pooled data favour the other.\n\n**Same lever, opposite sign. Randomising over time removes bias caused by units interacting. Adapting over time introduces bias caused by the algorithm interacting with its own history.** The defences - time-blocked or batched allocation, stratifying the analysis by period, using inverse-propensity weights that account for the changing assignment probability - all amount to putting back the independence between assignment and time that the bandit removed on purpose.\n\n## So when is a bandit the right call?\n\nBandits are not a trap. They are the correct tool for a specific and common shape of decision.\n\n**Use a bandit when:**\n\n- The decision is short-lived and self-contained. Which of six subject lines for a one-off send, which hero image during a two-day sale, which of four push-notification wordings this morning. There is no future in which somebody needs the effect size.\n- The cost of exposure is high and immediate. Real money, real harm, or a limited audience you cannot re-approach.\n- You have many arms and low prior information. Bandits scale gracefully to a dozen creatives in a way a properly powered multi-arm A/B test does not.\n- The environment is stable over the horizon of the decision.\n\n**Use a fixed A/B test when:**\n\n- You need a number, not a winner. Anything feeding a business case, a forecast, a pricing model, or a roadmap prioritisation needs a defensible magnitude with an interval around it.\n- The result will be reused or generalised. \"Personalised onboarding lifts activation by 4 to 7 points\" gets cited for two years. \"Variant C won\" does not travel.\n- You care about the loser. Understanding why the losing variant failed is often more valuable than shipping the winner, and a bandit deliberately starves you of data on it.\n- The effect may be heterogeneous across segments. A bandit optimises the pooled average and then commits to it - see the next section, which is the sharpest reason of all.\n- The metric matures slowly. Bandits reallocate on early signal, and early signal is exactly what the [novelty effect](/docs/novelty-effect) corrupts. A variant that is merely new can win the exploration phase and then be locked in by the exploitation phase before its curiosity spike decays.\n\nThat last pairing is the most dangerous failure mode in practice: a bandit run on a short-horizon metric will reliably converge on whichever variant produces the largest transient reaction.\n\n| Question about your decision | Points to a bandit | Points to a fixed A/B test |\n|---|---|---|\n| What do you need at the end? | A winner to serve | A magnitude with an interval |\n| How long does the decision live? | Hours to days | Months to years |\n| How many arms? | Many, with weak priors | Two or three, well specified |\n| Does anyone need to know why the loser lost? | No | Yes |\n| Could the effect differ by segment? | No, or you do not care | Yes |\n| How fast does the metric mature? | Immediately | Slowly, or with a novelty decay |\n\n## The failure mode nobody puts on the dashboard\n\nA bandit converges. That is the point. But consider what convergence means when the effect is not the same for everyone.\n\nSuppose a redesigned flow is better for 80% of your users and clearly worse for the 20% who use a screen reader, or who are on a slow connection, or who are power users with muscle memory for the old layout. The pooled average favours the new flow. A bandit will drive traffic to it and, in the limit, allocate almost nothing to the old one.\n\n**The subgroup that was harmed will never again be sampled on the arm that was better for them, and the data that would have revealed the harm is exactly the data the algorithm stopped collecting.** A fixed A/B test at least leaves you a properly sized control arm in which the harm is measurable, if you go and look. A converged bandit leaves you an average and no way back. This is why [heterogeneous treatment effects](/docs/heterogeneous-treatment-effects-research) and adaptive allocation are the same problem viewed from two ends: optimising a mean is only safe when the mean describes somebody.\n\nNone of this is visible on a bandit dashboard, which shows arm means and allocation shares and looks like it is working exactly as designed. Because it is.\n\n## The modern approach: get the *why* the bandit cannot give you\n\nBoth designs share a blind spot. An A/B test tells you the magnitude of a difference. A bandit tells you which arm to serve. Neither tells you what happened to the person, and that is the input you need to decide whether the winner is genuinely better or merely newer, and whether the losing arm lost for a reason you should care about.\n\nThis is where AI-native research changes the economics. Traditional research cannot keep pace with an experimentation programme: recruiting, scheduling, moderating, transcribing and coding thirty interviews takes longer than the test, so teams ship on the metric and skip the mechanism. Koji runs AI-moderated interviews - voice or text - with users from each arm in parallel, probes their answers the way a human researcher would, and returns thematic analysis automatically. A read that used to take three weeks lands inside the decision window.\n\nTwo studies are worth running alongside any adaptive experiment:\n\n**Interview the arm the algorithm abandoned.** A bandit stops sampling the loser, so the loser is where your knowledge is thinnest and your risk is highest. Ten interviews with users who had the deprecated variant will tell you whether it lost because it was worse or because it was unfamiliar.\n\n**Interview the users who stayed on the winning arm and disengaged anyway.** They are the signature of a heterogeneous effect hiding inside a favourable average.\n\n[Structured questions](/docs/structured-questions-guide) are what make these studies produce numbers rather than anecdotes. Koji supports six types in a single conversation - open_ended, scale, single_choice, multiple_choice, ranking, and yes_no - so one twelve-minute interview yields both the mechanism and the rate:\n\n- **single_choice**: which version the participant used, so every downstream cut is arm-aware.\n- **scale**: perceived ease or confidence, giving a distribution you can compare across arms rather than a win/lose bit.\n- **ranking**: have users rank what improved and what got worse; a harmed subgroup shows up as an inverted ranking long before it shows up in the pooled metric.\n- **yes_no**: \"Did anything about the new version make a task harder?\" - a clean rate, per arm.\n- **open_ended**: the AI follows up on the surprising answer, which is the only place the mechanism ever lives.\n\nBecause the structured answers carry types, the report aggregates them without manual coding, so you can say \"31% of participants on the winning variant reported a task that got harder, concentrated among weekly-or-more users\" while the experiment is still running. Unlike a legacy survey tool such as SurveyMonkey, where the questions are fixed in advance and cannot chase an unexpected answer, an AI moderator hears \"I stopped using the shortcut\" and asks which shortcut, how often, and what they do now.\n\nYou do not need a statistics background to use this well. You need to know that a bandit gives you a decision, an A/B test gives you a number, and neither gives you a reason.\n\n## Frequently asked questions\n\n### What is the difference between a multi-armed bandit and an A/B test?\n\nAn A/B test holds traffic allocation fixed, usually at an even split, and compares arms at the end; this maximises statistical power and keeps the estimate unbiased. A multi-armed bandit continuously reallocates traffic toward whichever arm is performing best so far, minimising regret - the cumulative cost of exposing users to inferior variants. The bandit gets better outcomes during the experiment; the A/B test gets a better estimate of how much better the winner is.\n\n### Do bandits really reduce statistical power that much?\n\nYes. In a simulated two-arm trial sized at 148 participants so fixed randomisation would attain at least 80% power, Villar, Bowden and Wason found that deterministic index rules such as the Gittins and Whittle indices produced power \"approximately 3.5 times smaller than with a FR design.\" The cause is allocation imbalance: the Whittle rule assigned roughly 16 of 148 participants to control, and you cannot estimate a difference precisely when one side has almost no data. Randomised bandits like Thompson sampling and UCB lose much less power than deterministic index rules.\n\n### Are the conversion rates a bandit reports accurate?\n\nNot as unbiased estimates. Nie, Tian, Taylor and Zou proved that under conditions satisfied by common algorithms including UCB and Thompson sampling, sample means from adaptively collected data carry systematic negative biases, because arms with unlucky early results are abandoned before they can regress toward the truth while heavily sampled arms get corrected. Later work showed the net sign can be positive or negative depending on whether the adaptivity is in sampling, stopping, or choosing. Either way, treat bandit arm means as decision inputs, not as effect sizes.\n\n### Can a bandit be confounded by time?\n\nYes, and this is underappreciated. Because a bandit's allocation depends on accumulated results, treatment assignment becomes correlated with time, so anything else that drifts over time - traffic mix, seasonality, day-of-week patterns, a marketing push - confounds the comparison. Late periods are dominated by the leading arm, so a change in population composition gets attributed to the arm instead of the period, which can produce a Simpson's paradox. Batched allocation, period-stratified analysis, and inverse-propensity weighting all help restore the independence the bandit removed.\n\n### When should I choose a bandit over an A/B test?\n\nChoose a bandit for short-lived, self-contained decisions with many arms where you only need a winner and exposure to the loser is genuinely costly: subject lines, promotional creatives, a one-day merchandising choice. Choose a fixed A/B test whenever the magnitude matters - business cases, pricing, roadmap prioritisation - whenever the result will be cited later, whenever you need to understand why the losing variant lost, or whenever the effect is likely to differ across segments.\n\n### What is the biggest risk of running a bandit on a product feature?\n\nConvergence on an average that hides harm. If a change helps most users and hurts a minority, the pooled average favours it, the bandit drives allocation toward it, and the harmed subgroup is never again sampled on the variant that suited them - while the data that would have revealed the harm is precisely what the algorithm stopped collecting. A secondary risk is early-signal capture: bandits reallocate on the first days of data, which is when novelty effects are strongest, so a merely-new variant can win exploration and get locked in before its curiosity spike decays.\n\n## Related Resources\n\n- [Interference Between Users: Why Your A/B Test Control Group Is Not a Control Group](/docs/interference-between-users-experiments) - the same time axis used to remove bias rather than create it\n- [Heterogeneous Treatment Effects: Nobody Experienced Your Average](/docs/heterogeneous-treatment-effects-research) - what convergence on a mean costs the subgroup it does not describe\n- [Statistical Power and Minimum Detectable Effect](/docs/statistical-power-minimum-detectable-effect) - the power arithmetic a bandit spends\n- [Interim Analysis and Sequential Testing](/docs/interim-analysis-sequential-testing-research) - how to look at a running study without inflating false positives\n- [The Novelty Effect: Why New Features Fool Your Metrics](/docs/novelty-effect) - the transient signal an adaptive algorithm is most likely to lock in\n- [Structured Questions Guide](/docs/structured-questions-guide) - the six question types that turn arm-level interviews into comparable rates\n","category":"Research Methods","lastModified":"2026-08-18T03:24:37.414436+00:00","metaTitle":"Multi-Armed Bandit vs A/B Test: The Power and Bias Trade-Off (2026)","metaDescription":"Bandits cut exposure to losing variants but cost statistical power and bias arm means. The numbers behind the trade-off, and when each design is the right call.","keywords":["multi-armed bandit vs a/b test","adaptive allocation","Thompson sampling","explore exploit trade-off","regret minimization","bandit statistical power","adaptive experiment bias"],"aiSummary":"A multi-armed bandit reallocates traffic toward the leading arm to minimise regret; a fixed A/B test preserves allocation to maximise power and keep estimates unbiased. Benchmark simulations show aggressive index rules gain about 18.6% more in-trial successes while cutting power to roughly a third. Adaptively collected data also produce biased arm means. Bandits suit short-lived multi-arm decisions; A/B tests suit anything needing an effect size, a reusable result, or segment-level insight.","aiPrerequisites":["Familiarity with A/B testing","Basic understanding of statistical power"],"aiLearningOutcomes":["Explain the regret vs estimation trade-off","Quantify the power cost of adaptive allocation","Recognise why bandit arm means are biased estimates","Identify time confounding in adaptive experiments","Choose the right design for a given decision"],"aiDifficulty":"advanced","aiEstimatedTime":"12 min"}],"pagination":{"total":1,"returned":1,"offset":0}}