Mastering Product Analytics with Mixpanel & GA4Lesson 19 of 32
Lesson 19 of 32

Analyzing A/B Test Results: P-Values, Confidence Intervals & Peeking Problems

Overview & Learning Objectives

Your A/B test has completed its 14-day run. The dashboard shows that the Test Variant achieved a 6.2% conversion rate compared to 5.8% in Control. Is this a true victory, or did Variant B just get lucky like rolling two sixes on a pair of dice? In this lesson, you will master the statistical interpretation of A/B test results: P-values ($p < 0.05$), 95% Confidence Intervals, understanding why "peeking" breaks statistical math, and Sequential Testing methodologies.

  • Interpret P-Values: understanding the probability of observing the result under the Null Hypothesis.
  • Read 95% Confidence Intervals: evaluating the range of true potential lift (e.g. $[+2.1\%, +8.4\%]$).
  • Understand the Peeking Problem and how Sequential Testing (mSPRT) allows continuous monitoring without inflating false positive rates.
Example

Real-World Example: Flipping a Coin 10 Times and Getting 7 Heads

PRACTICAL CONTEXT
  • Scenario: Flipping a coin 10 times and getting 7 heads—is the coin biased, or was it pure luck?
  • P-Value (p < 0.05): Proves that observed conversion uplift has less than a 5% chance of being a random fluke.
  • Confidence Interval: Provides the realistic range of business impact before greenlighting full production rollout.
Corporate / Tech Term Everyday / Practical Metaphor Operational Meaning
Null Hypothesis ($H_0$) The coin is normal and fair (Both designs are equal) Assumption that there is zero real difference between Control and Variant.
P-Value ($p < 0.05$) The "Luck Meter" reading below 5% Probability that random chance produced this difference.
95% Confidence Interval The Target Range on an Archery Board The realistic range where the true long-term business lift will land.
Peeking Problem Stopping a 90-minute soccer match at minute 4 because your team scored 1 goal Ending a test early on a temporary lucky spike.
Core Principle: If your 95% Confidence Interval crosses zero (e.g. $[-1.2\%, +4.5\%]$), you cannot declare a winner, because the true lift might actually be negative!

Visual Infographic: How to Read an A/B Test Scorecard

DECISION INFOGRAPHIC
Stage 1
1. Observed Lift

Variant B converted at 6.2% vs Control 5.8% (+6.9% relative lift).

Stage 2
2. P-Value Check

$p = 0.018$ (Below the critical $0.05$ threshold Statistically Significant!).

Stage 3
3. Confidence Interval

95% CI is $[+1.8\%, +12.0\%]$ (Entire interval is above zero!).

Stage 4
4. Executive Decision

Roll out to 100% of all users with high confidence.

Industry Standard & Framework

Standard: Statistical Inference & Sequential Testing (Wald's Sequential Probability Ratio Test).

Real-World Business Application: Zomato Gold Subscription Upsell Banner Experiment

Zomato tests a prominent floating badge vs a static checkout card to drive Zomato Gold dining memberships.

Metric EvaluatedControl (Static)Variant (Floating)Statistical EvaluationVerdict
Gold Signup Conversion4.21%4.68% (+11.1% Lift)P-value = 0.009 (p < 0.05)STATISTICALLY SIGNIFICANT WIN
95% Confidence Interval--$[+3.4\%, +18.8\%]$Entire range is positive
Average Order ValueINR 482INR 486 (+0.8%)P-value = 0.42 (Not Sig)Neutral impact; no cannibalization
Customer Complaint Rate0.12%0.13% (+8.3%)P-value = 0.71 (Not Sig)Guardrail green; no user backlash

Step-by-Step UI Tutorial & Visual Workflow Guide

Below is the practical, non-technical walkthrough showing how Product Analysts design, review, and execute this capability inside real-world tools like Mixpanel, Google Analytics 4, BigQuery, and Google Tag Manager.

Experiment

Analyzing A/B Test Results: P-Values, Confidence Intervals & Peeking Problems

50/50 Traffic Split Across 85,000 Checkout Sessions

STATISTICALLY SIGNIFICANT
VARIANT A (CONTROL) 50% Traffic
Standard 3-Step Payment Selector

Customer selects "UPI" → chooses PhonePe/Paytm → verifies on external app.

Visitors
42,500
Conversion
14.2%
WINNER (+18.3% UPLIFT)
VARIANT B (CHALLENGER) 50% Traffic
Instant 1-Click Sticky Dynamic UPI QR

Direct intent call triggers local UPI app without navigating away from cart.

Visitors
42,500
Conversion
16.8%
Statistical Rigor: P-Value = 0.003 (p < 0.05) | Confidence Level = 99.7% | Sample Size = 85,000 Verdict: Ship Variant B to 100% of Users
Mixpanel Experiments / Statsig Results Console

Step-by-Step UI Tutorial: Reading Statistical Significance in Statsig / Mixpanel

Step 1
Step 1: Open Completed Experiment

Navigate to Experiments -> Click "Zomato Gold Floating Badge Test".

Step 2
Step 2: Inspect Significance Badge

Look at the top status badge: "Statistically Significant (Win)" highlighted in green.

Step 3
Step 3: Review Lift & Confidence Bar

Inspect the horizontal bar chart: The dark center dot represents +11.1% lift; the horizontal whisker lines show the 95% CI ($[+3.4\%, +18.8\%]$).

Step 4
Step 4: Check Secondary Metrics Table

Scroll down to "Secondary & Guardrail Metrics" to verify that Average Order Value did not suffer.

How to Interpret 95% Confidence Interval Scenarios

INTERPRETATION GUIDE
interval Rangecrosses Zerodecision
$[+2.4\%, +9.8\%]$NO (Entirely Positive)CLEAR WINNER: Ship feature to 100% of users
$[-4.2\%, +3.1\%]$YES (Inconclusive)NO STATISTICAL DIFFERENCE: Do not ship; rethink design
$[-8.5\%, -1.2\%]$NO (Entirely Negative)CLEAR LOSER: Kill feature immediately

Implementation Guidelines for Product Analysts

  • Never stop an experiment early because the p-value dips below 0.05 on Day 3; this is the classic "Peeking Problem" and inflates false positive rates from 5% to over 30%!
  • Use modern Sequential Testing (mSPRT) algorithms if your team requires continuous monitoring and early stopping for catastrophic regressions.
  • Always communicate business results as a range (e.g. "We expect between a +2% and +9% lift") rather than promising the single point estimate.

Practical Hands-On Exercises

  1. If an experiment shows a +14% lift with a p-value of 0.22, should you ship the feature? Explain why or why not.
  2. Explain what happens if an analyst checks experiment results every single hour and stops the test the moment p < 0.05.