By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: Mastering the Mixture Sequential Probability Ratio Test (mSPRT) for A/B Testing | HackerNoon
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > Computing > Mastering the Mixture Sequential Probability Ratio Test (mSPRT) for A/B Testing | HackerNoon
Computing

Mastering the Mixture Sequential Probability Ratio Test (mSPRT) for A/B Testing | HackerNoon

News Room
Last updated: 2025/08/11 at 7:02 PM
News Room Published 11 August 2025
Share
SHARE

Table of Links

  1. Introduction

  2. Hypothesis testing

    2.1 Introduction

    2.2 Bayesian statistics

    2.3 Test martingales

    2.4 p-values

    2.5 Optional Stopping and Peeking

    2.6 Combining p-values and Optional Continuation

    2.7 A/B testing

  3. Safe Tests

    3.1 Introduction

    3.2 Classical t-test

    3.3 Safe t-test

    3.4 χ2 -test

    3.5 Safe Proportion Test

  4. Safe Testing Simulations

    4.1 Introduction and 4.2 Python Implementation

    4.3 Comparing the t-test with the Safe t-test

    4.4 Comparing the χ2 -test with the safe proportion test

  5. Mixture sequential probability ratio test

    5.1 Sequential Testing

    5.2 Mixture SPRT

    5.3 mSPRT and the safe t-test

  6. Online Controlled Experiments

    6.1 Safe t-test on OCE datasets

  7. Vinted A/B tests and 7.1 Safe t-test for Vinted A/B tests

    7.2 Safe proportion test for sample ratio mismatch

  8. Conclusion and References

5 Mixture sequential probability ratio test

5.1 Sequential Testing

As sophisticated A/B testing infrastructure has proliferated, so too have the opportunities to peek at test results [Joh+17]. As we’ve seen, this leads to the unintended consequence of inflating the false positive rate. To take advantage of their infrastructure, then, big technology companies have begun implementing statistical methods that are valid at any time. This field of statistics is known as sequential testing, or anytime-valid inference. Sequential testing originated with Wald’s seminal paper on the subject, Sequential Tests of Statistical Hypotheses [Wal45]. Wald introduces the first sequential testing method, known as the sequential probability ratio test (SPRT). The SPRT is a one-sample test of size m that divides the sample space into three mutually exclusive regions corresponding to the decision to be taken: either accept H0, reject H0, or continue sampling. The quantity to determine the decision is the posterior probability of the data under H1 divided by the posterior probability under H0, P(D|H1)/P(D|H0). This is the well-known Bayes factor between the alternative and null hypotheses and is closely related to E-variables in safe testing [GHK23].

Wald and Wolfowitz proved that the SPRT is the optimal sequential test in terms of statistical power [WW48]. It should be noted, however, that their formulation of a sequential test is not aligned with that of safe tests. Their proof is based on dividing the probability ratio space into three regions: accept H0, reject H0, or continue sampling. Conversely, the safe t-test is optimal in terms of GROW [Pér+22], which means that the E-variable E will grow fastest when H0 is not true. The decision to reject H0 is taken when E ≥ 1/α, while the opposing decision to accept H0 can be taken at any time. Understand the differing formulations of these sequential tests and their optimality proofs should help to internalize the relative performances of the two tests.

5.2 Mixture SPRT

Developing an A/B test for sequential testing involved expanding the SPRT to function with two-sample data. This was accomplished by Johari et al. [Joh+17] who pioneered a method of A/B testing known as the mixture Sequential Probability Ratio test (mSPRT). This test has been adopted in large technology companies such as Uber and Netflix [SA23]. As with the safe t-test, the mSPRT performs optimally with granular, sequential data. The mSPRT is essentially similar to the SPRT, with a prior belief that the true parameter lies close to θ0. Let’s examine the mathematical details of this test in more depth.

We will keep the mSPRT statistic in its martingale form in order to compare the performance with the safe t-test.

Author:

(1) Daniel Beasley


This paper is available on arxiv under ATTRIBUTION-NONCOMMERCIAL-SHAREALIKE 4.0 INTERNATIONAL license.

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article Google Cloud Launches ‘Cloud Setup’ to Streamline Foundational Infrastructure
Next Article Walmart shoppers slam major change to price tags as ‘so inconvenient’
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

Insider Reveals How Apple Might Win The AI Race With An Upgraded Siri – BGR
News
Aisles of the Future: How PCIC’s Category-Item Blend Transforms Online Grocery Shopping | HackerNoon
Computing
Pronto’s 10-minute house help pitch sparked a 3.6x valuation jump in just 90 days | News
News
OpenAI Apologizes for ‘Mega Chart Screwup’ from GPT-5 Launch
News

You Might also Like

Computing

Aisles of the Future: How PCIC’s Category-Item Blend Transforms Online Grocery Shopping | HackerNoon

15 Min Read
Computing

Huawei secures self-driving tech contract for BYD’s premium brand: report · TechNode

1 Min Read
Computing

Report Reveals Tool Overload Driving Fatigue And Missed Threats In MSPs | HackerNoon

4 Min Read
Computing

Final trailer for Black Myth: Wukong reveals 72 Transformations and Four Heavenly Kings · TechNode

1 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?