
From the conversion glossary
Concepts referenced in this article, defined.

Concepts referenced in this article, defined.
Run rigorous A/B tests and personalize every visit on Shopify or any storefront โ no engineers required.
Multi-armed bandit (MAB) testing dynamically reallocates traffic to winning variants during the experiment, while traditional A/B testing maintains a fixed split until statistical significance is reached. Both methods test hypotheses about which version of a page, offer, or element performs better โ but they make fundamentally different tradeoffs between statistical certainty and opportunity cost. Understanding when to use each approach is essential for any ecommerce brand running an optimization program.
Traditional A/B testing follows a fixed protocol:
The traffic split stays fixed at 50/50 regardless of early results. If Variant B is clearly winning after day 3, you still send 50% of traffic to the losing Variant A until the test concludes. This is the "cost" of A/B testing โ you sacrifice short-term revenue for statistical certainty.
Advantages of A/B testing:
Disadvantages:
Multi-armed bandit algorithms start with equal traffic allocation and then continuously shift more traffic toward better-performing variants. Common algorithms include:
Epsilon-greedy: Allocates ฮต% of traffic randomly (exploration) and (1-ฮต)% to the current best performer (exploitation). Simple but can get stuck on early leaders.
Thompson Sampling: Uses Bayesian probability to estimate each variant's true performance and samples traffic proportionally. More sophisticated and recommended for ecommerce.
Upper Confidence Bound (UCB): Favors variants with high uncertainty to ensure all variants get adequate exploration. Good for multi-variant experiments.
How it looks in practice:
The algorithm learns and adapts continuously, minimizing traffic to underperformers.
Advantages of MAB:
Disadvantages:
| Factor | A/B Testing | Multi-Armed Bandit |
|---|---|---|
| Traffic allocation | Fixed 50/50 | Dynamic, shifts toward winner |
| Statistical rigor | High | Lower |
| Revenue during test | Lower (traffic to loser) | Higher (optimizes in real-time) |
| Learning quality | High | Lower |
| Traffic requirement | High (1,000+ per variant) | Lower |
| Best for | Hypothesis testing | Revenue optimization |
| Multiple variants | Requires large sample | Handles well |
| Result stability | Stable | Can fluctuate |
Use traditional A/B testing when:
You want to learn, not just optimize. If your goal is to understand why a change works โ to build a model of your customers' behavior โ A/B testing provides cleaner, more interpretable results.
You have sufficient traffic. Sites with 10,000+ monthly visitors per page can reach statistical significance in a reasonable time. The opportunity cost of A/B testing's fixed split is acceptable.
You are testing structural changes. Major page redesigns, new checkout flows, or pricing page restructures warrant the statistical rigor of A/B testing. Getting it wrong on a structural change has long-term consequences.
You are running a regulated experiment. If your test results will be used to inform product decisions, communicate to investors, or change pricing, you need A/B testing's statistical standards.
You are building a testing program from scratch. Hypothesis-driven A/B testing builds team learning. MAB optimizes without the same team development benefit.
Use MAB when:
You have low traffic. Sites with under 5,000 monthly visitors per page cannot reach A/B testing significance quickly. MAB extracts value from limited data while the experiment runs.
You are testing many variants. Testing 5+ variants with A/B testing requires impractically large samples. MAB handles multi-variant experiments efficiently.
You want to minimize revenue loss. During high-stakes periods (festive season, product launches), you may not want to sacrifice 50% of traffic to an underperforming variant for 3โ4 weeks.
You are optimizing for short-term conversion. If your goal is pure revenue optimization (not learning), MAB achieves higher revenue during the test window.
Your traffic patterns shift seasonally. MAB adapts to changing performance in real time. A static A/B test started in October may be optimizing based on Diwali traffic that doesn't represent November buyer behavior.
Some testing programs use both methods:
Explore-then-exploit: Run a standard A/B test for 2โ3 weeks to identify a statistically significant winner, then use MAB to continuously optimize within the proven winner space.
Bandit-for-initial-screening, A/B-for-validation: Use MAB to identify promising variants from a large set, then run a standard A/B test on the top 2โ3 performers for rigorous validation.
Time-based switching: Default to A/B testing during stable traffic periods; switch to MAB during high-stakes, short-window events (Black Friday, Diwali) when opportunity cost is highest.
Scenario: Kapiva wants to test 4 different homepage hero messages for their Apple Cider Vinegar product.
With A/B testing: Testing 4 variants at 95% confidence would require 2,500 visitors per variant = 10,000 total visitors. At Kapiva's traffic levels, this would take 4โ6 weeks.
With MAB (Thompson Sampling): The algorithm starts at 25% each and begins shifting within 3โ4 days toward the top performer. By day 10, the winning variant is receiving 60โ70% of traffic, limiting revenue loss to the poorer performers.
Conclusion for this scenario: MAB is appropriate because of the multi-variant nature (4 options), the medium traffic level, and the desire to limit exposure to underperforming messages.
Don't let MAB run indefinitely. Set a maximum runtime (typically 30 days) even for MAB tests. Algorithms can get stuck in local optima and stop improving.
Use A/B testing for learning, MAB for optimizing. These are complementary tools. Build your understanding of what works through A/B testing, then let MAB optimize within that understanding.
Validate MAB "winners" with a short A/B test. If MAB strongly favors one variant, run a clean A/B test against it to validate the result before making permanent changes.
Track statistical significance even in MAB. Most MAB platforms report a confidence score. Do not treat a 60% confidence winner as a conclusive result.
Ensure your platform supports MAB properly. Basic A/B tools that approximate MAB with manual traffic reallocation are not true MAB โ they introduce human bias and do not benefit from algorithmic optimization.
Related reading: