The Core Question
Should you split traffic evenly between variants and wait for statistical significance? Or should you let an algorithm shift traffic toward the winner as it learns?
This isn't a theoretical debate. The answer depends on your goals, your traffic volume, and how much you care about the conversions you lose during the test. Below is a concrete side-by-side.
Live Simulation
The simulator below runs two parallel experiments on the same underlying variants. Variant A converts at 40% and Variant B at 60%. The A/B test splits traffic 50/50. The bandit uses Thompson Sampling to adapt.
Hit Play and watch what happens.
A/B Test vs Bandit
Traditional A/B Test
Bandit (Thompson Sampling)
Pay attention to three things:
- Traffic allocation: the bandit quickly shifts traffic toward Variant B
- Cumulative conversions: the bandit earns more total conversions
- Regret curves: the A/B test's regret grows linearly, while the bandit's flattens
What Is Regret?
Regret is the difference between the reward you could have earned (by always choosing the best variant) and the reward you actually earned. In A/B testing, regret accumulates linearly because you keep sending half your traffic to the losing variant for the entire test duration.
With a bandit, regret grows quickly at first during exploration, then flattens as the algorithm converges on the winner. The total area under the regret curve is dramatically smaller.
When A/B Testing Wins
A/B testing isn't obsolete. It's the right choice when:
- You need precise effect size estimates. A/B tests produce clean, unbiased estimates with confidence intervals. Bandits optimize for reward, not measurement precision.
- The decision is binary and permanent. If you're choosing between two completely different product directions and need to defend the decision to stakeholders with p-values, A/B testing is the standard.
- If your site gets millions of visitors per month, traffic is abundant enough that the cost of a 50/50 split is low relative to the benefit of precise measurement.
- Regulatory or compliance requirements. Some industries require specific statistical testing methodologies.
When Bandits Win
Bandits dominate when:
- Traffic is scarce. With 500 visitors a day, a 50/50 A/B test on a 5% baseline conversion rate might take 4-6 weeks. A bandit converges faster and wastes less traffic along the way.
- You're optimizing continuously: adding new ad creatives, testing headlines, rotating CTAs. Bandits handle the continuous addition of new variants naturally.
- Opportunity cost matters. Every visitor sent to a losing variant is a lost conversion. For e-commerce and SaaS, that's real revenue.
- A/B tests only pay off once the test is complete, while bandits start paying off from round one, which matters if you care about the journey and not just the destination.
The Numbers
A realistic scenario puts numbers on the difference:
| Metric | A/B Test | Bandit |
|---|---|---|
| Traffic split | 50/50 fixed | Adaptive (converges to ~90/10) |
| Time to 95% confidence | ~28 days | N/A (optimizes continuously) |
| Conversions lost to inferior variant | ~1,400 | ~350 |
| Cumulative regret after 10,000 visitors | ~1,000 | ~200 |
| Final winner identification | Yes (with p-value) | Yes (with posterior probability) |
These numbers assume a 5% vs 7% conversion rate difference with 500 daily visitors.
The Hybrid Approach
You don't have to choose one or the other. Many teams use a hybrid approach:
- Start with a bandit to quickly find promising variants and shift traffic
- Switch to an A/B test on the top 2 candidates when you need a rigorous effect size estimate
- Use bandits for ongoing optimization once the initial decision is made
This gives you the speed benefits of bandits for early exploration and the measurement precision of A/B tests for final decisions.
Start with a bandit
Fast exploration, shift traffic toward promising variants
Switch to an A/B test
Top 2 candidates, rigorous effect size estimate
Resume bandit optimization
Ongoing tuning once the decision is made
Common Objections
"Bandits don't give you statistical significance"
True in the frequentist sense. But Thompson Sampling gives you something arguably better: a posterior probability that each variant is the best. When one variant has a 99% posterior probability of being optimal, that's strong evidence, just expressed differently.
"Bandits are harder to implement"
Not anymore. Platforms like Bandit handle all the algorithm logic server-side. From the developer's perspective, you call getAssignment() and trackEvent(). The complexity is abstracted away.
"What about novelty effects?"
Both A/B tests and bandits are susceptible to novelty effects. The difference is that a bandit will adapt more quickly if the novelty wears off and conversion rates change over time.
Making the Decision
Use this decision framework:
- Optimizing a live metric (conversion rate, click-through rate, revenue) → Bandit
- Measuring a specific effect size for a business case → A/B Test
- Low traffic, high opportunity cost → Bandit
- High traffic, need statistical rigor → A/B Test
- Continuous variant generation (ad creatives, subject lines) → Bandit
- One-time product decision → A/B Test
Most teams benefit from having both tools available and choosing based on the specific situation.
Ready to try algorithmic testing?
Stop wasting traffic on losing variants. Bandit's multi-armed bandit algorithms automatically shift traffic to your best-performing treatments in real time.
Get Started Free