AD SPACE AVAILABLE · BRAND PARTNERS WELCOME

What Causes Stats Engine Anomalies When Evaluating Multi-Armed Bandit Tests in Optimizely?

Annika Bernklau · 365Finds Editorial
Indexed 88,650 Wiki articles

Put 365 Wiki to work with your AI

Copy the prompt below, paste it into the AI you already use, then ask your question.

Download full Skill

Try it with the prompt first. If you use 365 Wiki often, install the full 365Wiki Skill so you do not have to paste it again. No regular AI? Gemini or Microsoft Copilot on the web will work.

365Wiki Skill

If you have ever looked at a Multi-Armed Bandit (MAB) report in Optimizely and felt that the numbers defy basic arithmetic, you are not imagining things. A variation with a lower raw conversion rate is flagged as a winner. Statistical significance indicators vanish or swing erratically. Your data science team complains about sample ratio anomalies, while marketing celebrates a lift that no offline analysis can replicate.

At 365Finds, we evaluate experimentation platforms and optimization algorithms regularly. Multi-armed bandits are frequently sold as the ultimate CRO free lunch: why waste 50% of your precious traffic on losing variations when an algorithm can dynamically funnel visitors to winners in real time? But behind that compelling promise lies a mathematical minefield. When dynamic traffic allocation meets sequential testing engines, standard intuitions about conversion rates break down.

The anomalies you see in Optimizely's reports are almost never random software glitches. They are the predictable consequences of dynamic allocation colliding with time-varying traffic, conversion lag, and statistical design mismatches. Here is an exhaustive breakdown of what causes these distortions and how to evaluate bandit experiments without misleading your business.


1. Simpson’s Paradox: The Illusion of Inverted Conversion Rates

The most alarming anomaly in Optimizely occurs when Variation B shows a higher calculated lift or winning probability in Stats Engine, yet if you divide Variation B's total conversions by its total visitors, its raw conversion rate is visibly lower than the baseline.

This is textbook Simpson’s Paradox, triggered by the intersection of dynamic traffic allocation and temporal non-stationarity.

In the real world, web traffic is never constant. Conversion rates fluctuate across days of the week, promotional campaigns, and diurnal cycles:

When you pool the raw numbers across the entire test lifecycle, the raw pooled conversion rate is confounded by when each visitor arrived. Variation B's aggregated numbers become warped because its traffic distribution was skewed toward specific hours or days.

Why Optimizely Stats Engine Looks "Wrong"

Optimizely addressed this specific trap by introducing the Epoch Stats Engine for its adaptive traffic allocation features (like Stats Accelerator). Instead of naively pooling aggregate numbers, the Epoch Stats Engine segments the timeline into discrete "epochs"—windows during which traffic allocation probabilities remained static. It calculates treatment lift within each individual epoch and then aggregates those stratified estimates.

Because Variation B outperformed Control within each epoch, the stratified Stats Engine correctly identifies Variation B as the superior variation. However, when stakeholders open the dashboard and perform simple arithmetic (Total Conversions / Total Visitors), their raw calculation suffers from Simpson's Paradox. The result is immediate confusion: the platform says B won, but Excel says Control converted better.


2. Delayed Conversions and Attribution Latency Distortion

Bandit algorithms are impatient by design. Whether using Thompson Sampling or Upper Confidence Bound (UCB) variants, dynamic routing algorithms recalibrate traffic allocations on a rapid loop—often hourly or daily—based on observed rewards.

When conversion events have latency, this rapid feedback loop becomes pathological.

Consider an e-commerce checkout experiment:

During the first 24 hours of the experiment, the bandit algorithm observes immediate conversions on Variation A and virtually zero conversions on Variation B. Interpreting Variation B as a clear loser, the algorithm throttles its traffic allocation down to a minimal exploration rate (e.g., 5%).

By the time the delayed conversions for Variation B actually materialize two days later, the variation has already been starved of traffic. Worse, because its denominator (incoming visitors) has been shrunk to a trickle while delayed conversions from earlier cohorts continue to register, Variation B's apparent conversion rate during subsequent epochs can experience wild, erratic spikes.

At 365Finds, we consider attribution lag the single most dangerous operational flaw in multi-armed bandit testing. If your primary conversion event takes longer to mature than the algorithm's reweighting frequency, dynamic allocation actively penalizes superior experiences that require cognitive deliberation.


3. Sample Size Starvation and Variance Explosion on Deprioritized Arms

In a classic fixed-allocation A/B test (50/50 split), statistical power accumulates symmetrically across all variations. In an Optimizely bandit experiment, the algorithm's mandate is exploitation: minimize regret by directing traffic away from underperforming arms.

This deliberate starving of losing variations creates severe statistical distortions:

In statistical estimation, variance is inversely proportional to sample size. When an arm is starved of traffic, its confidence interval expands dramatically. At small sample sizes:

When observers monitor the Optimizely Stats Engine graph over time, the deprioritized variations appear to "bounce around like crazy." Stakeholders interpret these jagged confidence bands as instability in Optimizely’s algorithms, whereas they are simply the mathematical reality of evaluating high-variance, low-sample-size data streams.


4. Category Error: Expecting Hypothesis Testing from an Exploitation Rule

Much of the confusion surrounding Optimizely bandit anomalies stems from conflating three distinct product mechanisms:

Feature TypePrimary ObjectiveTraffic AllocationBaseline / ControlP-Values & Statistical Significance
Standard A/B TestRigorous Learning & ValidationStatic (e.g., 50/50)MandatoryYes (Controlled False Discovery Rate via mSPRT)
Stats AcceleratorSpeed to SignificanceDynamic (Bandit-guided)MandatoryYes (Calculated via Epoch Stratified Estimation)
Multi-Armed Bandit (MAB Rule)Revenue / Reward MaximizationDynamic Reinforcement LearningNoneNo (Measures "Improvement Over Original")

Optimizely’s pure Multi-Armed Bandit flag rule (often deployed in Feature Experimentation) is designed strictly for short-term exploitation. It does not compute p-values, it does not declare formal statistical significance, and it does not maintain a rigid control baseline. It continually adjusts weights to maximize immediate yield.

A frequent anomaly occurs when data teams pull raw event logs from a pure MAB test and attempt to run offline two-sample t-tests, z-tests, or Mann-Whitney U tests. Classical frequentist hypothesis testing relies fundamentally on independent and identically distributed (i.i.d.) observations drawn from stationary, fixed-probability assignments.

When you apply classical statistical tests to data gathered under adaptive bandit sampling, the False Discovery Rate (FDR) explodes. False-positive rates can easily climb from the intended 5% to 30% or higher. When external reports fail to validate what the bandit did, analysts wrongly conclude that the platform's Stats Engine malfunctioned.


5. False Alarms and Masked Bugs Around Sample Ratio Mismatch (SRM)

In standard experimentation, Sample Ratio Mismatch (SRM) is the frontline diagnostic check. If an A/B test configured for 50/50 returns a 53/47 split across 100,000 users, automated health checks immediately trigger an SRM alert. SRM flags critical engineering issues: broken redirects, asynchronous code crashes on specific browsers, or tracking script drop-offs.

With dynamic traffic allocation, SRM monitoring breaks down in two opposite directions:

  1. False Positive SRM Panics: Automated monitoring scripts or data analysts unfamiliar with the bandit configuration run Pearson Chi-square tests on traffic splits, observe severe skew, and trigger emergency incident alerts.
  2. Masked Technical Catastrophes: The far more dangerous scenario occurs when a treatment variation suffers from a legitimate technical bug—such as a silent JavaScript error that breaks the "Add to Cart" button on mobile Safari. In a fixed A/B test, the 50/50 ratio holds, conversions plunge, and engineers easily spot the issue. In a bandit experiment, the algorithm simply observes low conversions on Safari and diverts traffic away from the broken variation. Instead of alerting the team to a critical frontend bug, the defect is silently swallowed under the guise of "algorithmic optimization."

6. User Stickiness, Session Fragmentation, and Re-Bucketing

Optimizely Feature Experimentation relies on deterministic hashing (based on User ID or device tokens) to assign users to variations. When dynamic traffic allocation is active, the algorithm changes allocation weight boundaries dynamically.

If user persistence is imperfect, severe attribution anomalies emerge:

When returning users encounter multiple treatments due to shifting allocation boundaries, conversion attribution is polluted. The Stats Engine receives conversion signals tied to corrupted exposure histories, producing erratic lift estimates that do not reflect isolated variant performance.


Practical Troubleshooting Guide: How 365Finds Evaluates Bandit Tests

When evaluating dynamic allocation experiments in Optimizely, 365Finds recommends adhering to the following decision framework:

flowchart TD
    Start["Evaluating Optimizely Experiment"] --> Q1{"Is the primary goal long-term learning or short-term yield?"}
    Q1 -->|"Long-term Learning"| FixedAB["Deploy Fixed A/B Testing<br>(Static 50/50 Split + Stats Engine)"]
    Q1 -->|"Short-term Yield"| Q2{"What is the conversion attribution window?"}
    
    Q2 -->|"> 24 Hours (Delayed Feedback)"| FixedAB
    Q2 -->|"< 12 Hours (Immediate Actions)"| Q3{"Which Optimizely engine mode is active?"}
    
    Q3 -->|"Stats Accelerator"| EvalSA["Evaluate via Epoch Stats Engine.<br>Ignore raw pooled percentages in Excel."]
    Q3 -->|"Multi-Armed Bandit Rule"| EvalMAB["Evaluate on Total Conversions & Cumulative Regret.<br>Do not run offline p-value tests."]

Actionable Checkpoints:

  1. Never evaluate pure MAB tests with raw two-sample p-value tests. If you need to make a permanent architectural decision or validate a foundational product hypothesis, run a fixed-split A/B test. Bandits are optimization engines, not scientific instruments.
  2. Do not calculate pooled conversion rates manually. When using Optimizely Stats Accelerator, trust the stratified Epoch Stats Engine estimates over manual calculations. Raw aggregate conversion rates are almost guaranteed to be skewed by Simpson's Paradox.
  3. Verify attribution latency before choosing a bandit. If your primary metric is a 7-day trial conversion or a multi-day purchase funnel, do not use dynamic traffic allocation. Restrict bandits to immediate-feedback metrics: email signups, headline click-through rates, or short-window promotional banners.
  4. Enforce strict bucketing persistence. In server-side Feature Experimentation, ensure your User Profile Service (UPS) is correctly implemented so that returning visitors remain locked into their initial variation regardless of how algorithmic traffic weights shift.
  5. Inspect device-level and browser-level allocations. If an arm suddenly loses all traffic, verify that it is not failing due to a browser-specific crash before accepting the algorithm's conclusion that the variation simply underperformed.

References