Sequential Probability Ratio Test

hard
Unit 22 · Causal Inference & A/B Testing0/0 to milestone

Peeking at a fixed-sample test inflates false positives. Wald's SPRT is designed to be checked after every observation. For Bernoulli data testing H0:p=p0H_0: p = p_0 against H1:p=p1H_1: p = p_1, track the log-likelihood ratio

Pro problem

Unlock this and every premium problem across all tracks — plus hidden-test grading, advanced AI engineering modules and new content every week.

Start 7-day free trial
solution.py · Python 3.13
Run your code to see results. ⌘↵ to run · ⌘⇧↵ to submit
Sequential Probability Ratio Test · TechGradify