Sequential looks and alpha spending
Looking at data as it arrives inflates false positives unless you plan the looks. Group-sequential boundaries, alpha spending and SPRTs let you stop early and keep your error rate.
What runs in CodeSplash
- STAT289Wald sequential probability ratio test Runs in CodeSplash
- STAT290Maximized sequential probability ratio test Runs in CodeSplash
- STAT291Conditional MaxSPRT Runs in CodeSplash
- STAT292Pocock group sequential procedure Runs in CodeSplash
- STAT293O’Brien–Fleming group sequential procedure Runs in CodeSplash
- STAT294Wang–Tsiatis group sequential family Runs in CodeSplash
- Sequential monitoring — group-sequential boundaries and always-valid p-values Verified in Python and R
- Sequential probability ratio tests — Wald SPRT, MaxSPRT and conditional MaxSPRT Verified in Python and R
You will be able to
- Explain why repeated looks at a fixed threshold inflate the error rate
- Compare Pocock, O'Brien–Fleming and Wang–Tsiatis boundaries
- Say when an SPRT or MaxSPRT fits better than planned looks
The problem with peeking
ExploreYou run an A/A test with no real difference and check it every day. Move through the days and watch how many experiments have looked like a winner at some point.
EExplorable · Peeking at an A/A test
If you check an experiment with no effect every day, how often will it look like a winner?
With no real difference and a look every day, how often will this A/A test cross p < α at least once?
Scrub through one experiment's life.
Commit your prediction above to see the result
Make your prediction to see the result.
Each look is another chance to cross the line by luck. With enough looks at a fixed 1.96, a difference that doesn't exist eventually crosses it. This is optional stoppingOptional stoppingChecking results repeatedly and stopping when p < 0.05 inflates false positives far above α., and you can't repair it after the fact.
Spend alpha on purpose
ReadThe fix is to plan the looks and share out your total across them. Choose a boundary in advance, and stop only if the statistic crosses it.
| Family | Boundary | Early stopping |
|---|---|---|
| Pocock | The same at every look | Easy, and the final look pays for it |
| O'Brien–Fleming | Very high early, near 1.96 at the end | Rare early, almost no final cost |
| Wang–Tsiatis | A family between those two, set by | Your choice |
Alpha-spending functions do the same with a continuous budget, so looks need not be equally spaced.
What each boundary costs
PredictPredict first
Plan three looks at two-sided . Which plan has the higher final boundary?
Reveal
Pocock: its final boundary is 2.29 against 2.00 for O'Brien–Fleming. Wang–Tsiatis with its middle falls between at 2.08. Pocock also needs a sample about 16.6% larger than a fixed design at the same power. O'Brien–Fleming needs only 1.7% more.
See the error rate hold
ExploreCompare peeking at 1.96 with the two planned boundaries, first with no effect and then with a real effect. Check two things: the error rate, and how soon a real effect stops the trial.
BExplorable · Spending alpha across looks
How can you look at the data early without inflating the error rate?
How often does peeking at 1.96 reject at these looks?
Commit your prediction above to see the result
Make your prediction to see the result.
3 looks, inflation 1.0174, final bound z = 2.004.
- Information inflation
- 1.017
- Expected size under H1 (fraction of fixed)
- 0.8562
- Expected size under H0 (fraction of fixed)
- 1.012
- Final efficacy z
- 2.004
Plots
View data
| Bound | Information fraction | z |
|---|---|---|
| efficacy | 0.3333 | 3.471 |
| efficacy | 0.3333 | −3.471 |
| efficacy | 0.6667 | 2.454 |
| efficacy | 0.6667 | −2.454 |
| efficacy | 1 | 2.004 |
| efficacy | 1 | −2.004 |
| observed | 0.3333 | 1.100 |
| observed | 0.6667 | 2.600 |
Boundaries by look
| Look | Information | Efficacy z | Nominal p | α spent (cumulative) | P(stop for efficacy | H0) | P(stop for efficacy | H1) | Observed z | Decision |
|---|---|---|---|---|---|---|---|---|
| 1 | 33.3% | 3.471 | < .001 | 0.0005 | 0.0005 | 0.0329 | 1.100 | continue |
| 2 | 66.7% | 2.454 | .014 | 0.0143 | 0.0138 | 0.4095 | 2.600 | stop: efficacy |
| 3 | 100.0% | 2.004 | .045 | 0.0500 | 0.0357 | 0.3576 | — | — |
- Bounds on the z scale of the treatment − control difference; information fractions are shares of the maximum information (≈ units).
- Non-binding futility: the efficacy bounds assume the trial may continue past a futility bound, so stopping for futility never inflates α.
- Always-valid p-values stay valid under continuous peeking; they are larger than fixed-horizon p-values.
The exact R script · R R version 4.5.1 (2025-06-13)
# Sequential monitoring — group-sequential boundaries and always-valid p-values
# Generated by CodeSplash Analytics 1.0.0 on 2026-11-09 · method experiment.sequential 1.1.0 · spec 69f6b95ebd744285
# Runs on its own: outside the app, cs_publish() writes $CS_RESULT_PATH or prints the result JSON.
# %% Setup
library(codesplashr) # error-spending bounds cs_exp_gs_* and cs_exp_msprt (twins of codesplash.experiment)
# %% Inputs
looks <- as.integer(3)
timing <- c() # information fractions (empty = equally spaced)
alpha <- 0.05
beta <- 1 - 0.8
two_sided <- "two-sided" == "two-sided"
spending <- "obf_classic" # obf | pocock | hsd | power | hp | pocock_classic | obf_classic | wt
param <- if (spending == "wt") 0.25 else -4 # Delta for Wang-Tsiatis
futility <- if (two_sided) "none" else "none"
fkind <- "hsd"
fparam <- -2
n_fixed <- NULL
observed <- as.numeric(unlist(c(1.1, 2.6)))
m_diff <- as.numeric(unlist(c()))
m_se <- as.numeric(unlist(c()))
m_tau <- NULL
warnings <- list()
if (spending == "power" && param <= 0) stop("The power family needs rho > 0.")
timing <- as.numeric(unlist(timing))
if (!length(timing)) {
timing <- (seq_len(looks)) / looks
} else {
timing <- sort(timing)[seq_len(min(length(timing), looks))]
if (length(timing) < looks) stop(sprintf("Give %d information fractions (or none for equal spacing).", looks))
timing[looks] <- 1
}
if (looks > 1 && any(diff(timing) <= 0)) stop("Information fractions must increase.")
if ("none" == "nonbinding" && two_sided) warnings <- c(warnings, "Futility bounds are only offered for one-sided designs; none were added.")
# Equivalent idiom: gsDesign::gsDesign(k = looks, test.type = if (two_sided) 2 else 1, alpha = alpha / 2, beta = beta, timing = timing, sfu = sfLDOF)
# %% Design
d <- cs_exp_gs_design(timing, alpha, beta, two_sided, spending, param, futility, fkind, fparam)
upper <- d$upper
lower <- d$lower
# %% Observed looks
decisions <- character(0)
for (k in seq_len(min(length(observed), looks))) {
z <- observed[k]
decisions[k] <- if ((if (two_sided) abs(z) else z) >= upper[k]) "stop: efficacy"
else if (futility == "nonbinding" && z <= lower[k] && k < looks) "stop: futility (non-binding)"
else if (k == looks) "final: not significant"
else "continue"
}
if (length(observed) > looks) warnings <- c(warnings, sprintf("Only the first %d observed z values were used.", looks))
# %% Always-valid monitoring (mixture SPRT)
ms <- NULL
tau_used <- NULL
if (length(m_diff)) {
if (length(m_se) != length(m_diff)) stop("Give one standard error per observed difference.")
tau_used <- if (!is.null(m_tau) && m_tau > 0) m_tau else (stats::qnorm(1 - alpha / 2) + stats::qnorm(1 - beta)) * m_se[length(m_se)]
ms <- cs_exp_msprt(m_diff, m_se^2, tau_used, alpha)
}
# %% Result
mult <- if (two_sided) 2 else 1
rows <- lapply(seq_len(looks), function(k) {
row <- list(look = k, t = timing[k], upper = upper[k], lower = if (is.finite(lower[k])) lower[k] else NULL,
nominal_p = (1 - stats::pnorm(upper[k])) * mult, spent = d$alpha_spent[k] * mult,
cross_h0 = d$pu0[k] * mult, cross_h1 = d$pu1[k])
if (!is.null(n_fixed)) row$n <- as.integer(ceiling(n_fixed * d$inflation * timing[k] - 1e-9))
if (k <= length(decisions)) {
row$z <- observed[k]
row$decision <- decisions[k]
}
row
})
columns <- c(
list(list(key = "look", label = "Look", type = "integer"), list(key = "t", label = "Information", type = "percent")),
if (!is.null(n_fixed)) list(list(key = "n", label = "Units per arm", type = "integer")),
list(list(key = "upper", label = "Efficacy z", type = "number")),
if (futility == "nonbinding") list(list(key = "lower", label = "Futility z", type = "number")),
list(list(key = "nominal_p", label = "Nominal p", type = "pvalue"), list(key = "spent", label = "α spent (cumulative)", type = "number"),
list(key = "cross_h0", label = "P(stop for efficacy | H0)", type = "number"), list(key = "cross_h1", label = "P(stop for efficacy | H1)", type = "number")),
if (length(decisions)) list(list(key = "z", label = "Observed z", type = "number"), list(key = "decision", label = "Decision", type = "string"))
)
tables <- list(list(key = "bounds", title = "Boundaries by look", columns = columns, rows = rows))
if (!is.null(ms)) {
tables <- c(tables, list(list(
key = "msprt", title = sprintf("Always-valid inference (mixture SPRT, τ = %.4g)", tau_used),
columns = list(list(key = "look", label = "Look", type = "integer"), list(key = "diff", label = "Difference", type = "number"),
list(key = "p", label = "Always-valid p", type = "pvalue"), list(key = "low", label = "Lower", type = "number"),
list(key = "high", label = "Upper", type = "number")),
rows = lapply(seq_along(ms$p), function(i) list(look = i, diff = m_diff[i], p = ms$p[i], low = ms$low[i], high = ms$high[i]))
)))
}
bx <- bz <- numeric(0)
bl <- character(0)
for (k in seq_len(looks)) {
bx <- c(bx, timing[k]); bz <- c(bz, upper[k]); bl <- c(bl, "efficacy")
if (two_sided) { bx <- c(bx, timing[k]); bz <- c(bz, -upper[k]); bl <- c(bl, "efficacy") }
if (futility == "nonbinding") { bx <- c(bx, timing[k]); bz <- c(bz, lower[k]); bl <- c(bl, "futility") }
}
for (k in seq_len(min(length(observed), looks))) { bx <- c(bx, timing[k]); bz <- c(bz, observed[k]); bl <- c(bl, "observed") }
values <- list(
looks = looks, alpha = alpha, inflation = d$inflation, inflation_pct = d$inflation - 1, i_max = d$i_max,
i_fix = d$i_fix, en0 = d$en0, en1 = d$en1, power_check = d$power, type1 = d$type1,
upper_final = upper[looks], n_max = if (is.null(n_fixed)) NA else as.integer(ceiling(n_fixed * d$inflation - 1e-9)),
decision_last = if (length(decisions)) decisions[length(decisions)] else NA, tau = if (is.null(tau_used)) NA else tau_used
)
for (k in seq_len(looks)) {
values[[sprintf("upper[%d]", k)]] <- upper[k]
values[[sprintf("lower[%d]", k)]] <- if (is.finite(lower[k])) lower[k] else NA
values[[sprintf("spent[%d]", k)]] <- d$alpha_spent[k]
values[[sprintf("cross_h0[%d]", k)]] <- d$pu0[k]
values[[sprintf("cross_h1[%d]", k)]] <- d$pu1[k]
}
if (!is.null(ms)) for (i in seq_along(ms$p)) {
values[[sprintf("msprt_p[%d]", i)]] <- ms$p[i]
values[[sprintf("msprt_low[%d]", i)]] <- ms$low[i]
values[[sprintf("msprt_high[%d]", i)]] <- ms$high[i]
}
cs_publish(list(
method = "experiment.sequential",
methodVersion = "1.1.0",
title = "Sequential monitoring plan",
engine = cs_engine_info("stats"),
summary = sprintf("%d looks, inflation %.4f, final bound z = %.3f.", looks, d$inflation, upper[looks]),
statistics = list(
list(key = "inflation", label = "Information inflation", value = d$inflation),
list(key = "en1", label = "Expected size under H1 (fraction of fixed)", value = d$en1),
list(key = "en0", label = "Expected size under H0 (fraction of fixed)", value = d$en0),
list(key = "upper_final", label = "Final efficacy z", value = upper[looks])
),
tables = tables,
warnings = warnings,
notes = c("Bounds on the z scale of the treatment − control difference; information fractions are shares of the maximum information (≈ units).",
"Non-binding futility: the efficacy bounds assume the trial may continue past a futility bound, so stopping for futility never inflates α.",
"Always-valid p-values stay valid under continuous peeking; they are larger than fixed-horizon p-values."),
charts = list(cs_chart(
"boundaries", "sequential-boundary", "Stopping boundaries",
list(information = cs_col("Information fraction", bx), z = cs_col("z", bz), bound = cs_col("Bound", bl))
)),
values = values
))
3 looks, inflation 1.0174, final bound z = 2.004.
- Information inflation
- 1.017
- Expected size under H1 (fraction of fixed)
- 0.8562
- Expected size under H0 (fraction of fixed)
- 1.012
- Final efficacy z
- 2.004
To keep this page light, the plots are shown once, under the R tab.
Boundaries by look
| Look | Information | Efficacy z | Nominal p | α spent (cumulative) | P(stop for efficacy | H0) | P(stop for efficacy | H1) | Observed z | Decision |
|---|---|---|---|---|---|---|---|---|
| 1 | 33.3% | 3.471 | < .001 | 0.0005 | 0.0005 | 0.0329 | 1.100 | continue |
| 2 | 66.7% | 2.454 | .014 | 0.0143 | 0.0138 | 0.4095 | 2.600 | stop: efficacy |
| 3 | 100.0% | 2.004 | .045 | 0.0500 | 0.0357 | 0.3576 | — | — |
- Bounds on the z scale of the treatment − control difference; information fractions are shares of the maximum information (≈ units).
- Non-binding futility: the efficacy bounds assume the trial may continue past a futility bound, so stopping for futility never inflates α.
- Always-valid p-values stay valid under continuous peeking; they are larger than fixed-horizon p-values.
The exact Python script · Python Python 3.13.5 · scipy 1.18.1 · pandas 3.1.0
# Sequential monitoring — group-sequential boundaries and always-valid p-values
# Generated by CodeSplash Analytics 1.0.0 on 2026-11-09 · method experiment.sequential 1.1.0 · spec 69f6b95ebd744285
# Runs on its own: outside the app, cs.publish() writes $CS_RESULT_PATH or prints the result JSON.
# %% Setup
import math
from scipy.special import ndtr, ndtri
import codesplash as cs
from codesplash.experiment import analyze as xa # mixture SPRT (twin of R cs_exp_msprt)
from codesplash.experiment import sequential as gs # error-spending bounds (twin of R cs_exp_gs_*)
# %% Inputs
looks = int(3)
timing = [] # information fractions (empty = equally spaced)
alpha = 0.05
beta = 1.0 - 0.8
two_sided = "two-sided" == "two-sided"
spending = "obf_classic" # obf | pocock | hsd | power | hp | pocock_classic | obf_classic | wt
param = 0.25 if spending == "wt" else -4 # Δ for Wang–Tsiatis
futility = "none" if not two_sided else "none"
fkind = "hsd"
fparam = -2
n_fixed = None
observed = [1.1, 2.6]
m_diff = []
m_se = []
m_tau = None
warnings = []
if spending == "power" and param <= 0:
raise ValueError("The power family needs ρ > 0.")
if not timing:
timing = [(k + 1) / looks for k in range(looks)]
else:
timing = sorted(float(t) for t in timing)[:looks]
if len(timing) < looks:
raise ValueError(f"Give {looks} information fractions (or none for equal spacing).")
timing[-1] = 1.0
if any(b <= a for a, b in zip(timing, timing[1:])):
raise ValueError("Information fractions must increase.")
if "none" == "nonbinding" and two_sided:
warnings.append("Futility bounds are only offered for one-sided designs; none were added.")
# Equivalent idiom (R): gsDesign::gsDesign(k, test.type = 1 | 2 | 4, alpha, beta, timing, sfu = sfLDOF, sfl = sfHSD).
# %% Design
d = gs.design(timing, alpha, beta, two_sided, spending, param, futility, fkind, fparam)
upper, lower = d["upper"], d["lower"]
# %% Observed looks
decisions = []
for k, z in enumerate(observed[:looks]):
if (abs(z) if two_sided else z) >= upper[k]:
decisions.append("stop: efficacy")
elif futility == "nonbinding" and z <= lower[k] and k < looks - 1:
decisions.append("stop: futility (non-binding)")
elif k == looks - 1:
decisions.append("final: not significant")
else:
decisions.append("continue")
if len(observed) > looks:
warnings.append(f"Only the first {looks} observed z values were used.")
# %% Always-valid monitoring (mixture SPRT)
m_p, m_lo, m_hi = [], [], []
tau_used = None
if m_diff:
if len(m_se) != len(m_diff):
raise ValueError("Give one standard error per observed difference.")
tau_used = m_tau if m_tau else (float(ndtri(1.0 - alpha / 2.0)) + float(ndtri(1.0 - beta))) * m_se[-1]
m_p, m_lo, m_hi = xa.msprt(m_diff, [s * s for s in m_se], tau_used, alpha)
# %% Result
rows = []
for k, t in enumerate(timing):
row = {
"look": k + 1, "t": t, "upper": upper[k],
"lower": (lower[k] if math.isfinite(lower[k]) else None),
"nominal_p": float(1.0 - ndtr(upper[k])) * (2.0 if two_sided else 1.0),
"spent": d["alpha_spent"][k] * (2.0 if two_sided else 1.0),
"cross_h0": d["pu0"][k] * (2.0 if two_sided else 1.0), "cross_h1": d["pu1"][k],
}
if n_fixed is not None:
row["n"] = int(math.ceil(n_fixed * d["inflation"] * t - 1e-9))
if k < len(decisions):
row["z"] = observed[k]
row["decision"] = decisions[k]
rows.append(row)
columns = [
{"key": "look", "label": "Look", "type": "integer"}, {"key": "t", "label": "Information", "type": "percent"},
*([{"key": "n", "label": "Units per arm", "type": "integer"}] if n_fixed is not None else []),
{"key": "upper", "label": "Efficacy z", "type": "number"},
*([{"key": "lower", "label": "Futility z", "type": "number"}] if futility == "nonbinding" else []),
{"key": "nominal_p", "label": "Nominal p", "type": "pvalue"}, {"key": "spent", "label": "α spent (cumulative)", "type": "number"},
{"key": "cross_h0", "label": "P(stop for efficacy | H0)", "type": "number"}, {"key": "cross_h1", "label": "P(stop for efficacy | H1)", "type": "number"},
*([{"key": "z", "label": "Observed z", "type": "number"}, {"key": "decision", "label": "Decision", "type": "string"}] if decisions else []),
]
tables = [{"key": "bounds", "title": "Boundaries by look", "columns": columns, "rows": rows}]
if m_p:
tables.append({
"key": "msprt", "title": f"Always-valid inference (mixture SPRT, τ = {tau_used:.4g})",
"columns": [{"key": "look", "label": "Look", "type": "integer"}, {"key": "diff", "label": "Difference", "type": "number"},
{"key": "p", "label": "Always-valid p", "type": "pvalue"}, {"key": "low", "label": "Lower", "type": "number"},
{"key": "high", "label": "Upper", "type": "number"}],
"rows": [{"look": i + 1, "diff": m_diff[i], "p": m_p[i], "low": m_lo[i], "high": m_hi[i]} for i in range(len(m_p))],
})
bx, bz, bl = [], [], []
for k, t in enumerate(timing):
bx.append(t); bz.append(upper[k]); bl.append("efficacy")
if two_sided:
bx.append(t); bz.append(-upper[k]); bl.append("efficacy") # one level, both signs: drawn as upper + lower lines
if futility == "nonbinding":
bx.append(t); bz.append(lower[k]); bl.append("futility")
for k, z in enumerate(observed[:looks]):
bx.append(timing[k]); bz.append(z); bl.append("observed")
values = {
"looks": looks, "alpha": alpha, "inflation": d["inflation"], "inflation_pct": d["inflation"] - 1.0, "i_max": d["i_max"],
"i_fix": d["i_fix"], "en0": d["en0"], "en1": d["en1"], "power_check": d["power"], "type1": d["type1"],
"upper_final": upper[-1], "n_max": int(math.ceil(n_fixed * d["inflation"] - 1e-9)) if n_fixed is not None else None,
"decision_last": decisions[-1] if decisions else None, "tau": tau_used,
}
for k in range(looks):
values[f"upper[{k + 1}]"] = upper[k]
values[f"lower[{k + 1}]"] = lower[k] if math.isfinite(lower[k]) else None
values[f"spent[{k + 1}]"] = d["alpha_spent"][k]
values[f"cross_h0[{k + 1}]"] = d["pu0"][k]
values[f"cross_h1[{k + 1}]"] = d["pu1"][k]
for i in range(len(m_p)):
values[f"msprt_p[{i + 1}]"] = m_p[i]
values[f"msprt_low[{i + 1}]"] = m_lo[i]
values[f"msprt_high[{i + 1}]"] = m_hi[i]
cs.publish({
"method": "experiment.sequential",
"methodVersion": "1.1.0",
"title": "Sequential monitoring plan",
"engine": cs.engine_info("scipy"),
"summary": f"{looks} looks, inflation {d['inflation']:.4f}, final bound z = {upper[-1]:.3f}.",
"statistics": [
{"key": "inflation", "label": "Information inflation", "value": d["inflation"]},
{"key": "en1", "label": "Expected size under H1 (fraction of fixed)", "value": d["en1"]},
{"key": "en0", "label": "Expected size under H0 (fraction of fixed)", "value": d["en0"]},
{"key": "upper_final", "label": "Final efficacy z", "value": upper[-1]},
],
"tables": tables,
"warnings": warnings,
"notes": [
"Bounds on the z scale of the treatment − control difference; information fractions are shares of the maximum information (≈ units).",
"Non-binding futility: the efficacy bounds assume the trial may continue past a futility bound, so stopping for futility never inflates α.",
"Always-valid p-values stay valid under continuous peeking; they are larger than fixed-horizon p-values.",
],
"charts": [cs.chart(
"boundaries", "sequential-boundary", "Stopping boundaries",
{"information": cs.col("Information fraction", bx), "z": cs.col("z", bz), "bound": cs.col("Bound", bl)},
)],
"values": values,
})
Stop as soon as the evidence is clear
ReadWald's SPRTSequential probability ratio test (SPRT)Adds up the log-likelihood ratio of H₁ to H₀ after every observation and stops as soon as it crosses an upper or lower boundary. checks after every observation. It adds up the log-likelihood ratio between two specific hypotheses, and stops when the running total crosses an upper or lower boundary.
On a binary example it stops at observation 16. A fixed design with the same error rates would need about 36.
The saving relies on having named the alternative. MaxSPRTMaximized SPRT (MaxSPRT)An SPRT for event surveillance where the alternative is any elevated rate, maximized over the elevation at each look. drops that need: it maximizes over effect sizes and signals on any excess, which suits safety surveillance. Its conditional form handles a baseline estimated from limited data.
BExplorable · The sequential probability ratio test
What if you could stop as soon as the evidence is clear?
How many observations does the test use on average?
Commit your prediction above to see the result
Make your prediction to see the result.
Check your understanding
CheckpointCheck yourself
Your stakeholders want a chance of stopping early only if the effect is overwhelming, and want the final analysis to look like a normal test. Which boundary fits?
Show the answer
Answer: b
O'Brien–Fleming spends almost nothing early, so its final boundary stays close to the fixed-design value.
Check yourself
You planned one analysis. At halfway your manager asks to look, and p = .03. What can you do?
Show the answer
Answer: c
Looks can't be erased. You can be transparent about them, and plan a proper boundary or an always-valid method next time.
Check yourself
Which situation calls for MaxSPRT rather than Wald's SPRT?
Show the answer
Answer: b
Wald's SPRT tests two named values. MaxSPRT maximizes over elevations, which fits surveillance of counts with no single alternative in mind.
Check yourself
Why do alpha-spending functions exist, when Pocock and O'Brien–Fleming boundaries are already available?
Show the answer
Answer: b
Real looks rarely fall on schedule. A spending function turns the information reached so far into a boundary.
Plan it in the A/B tests studio
In the appOpen Studios → A/B tests and create an A/B test. In the Design step, the Stopping plan offers Fixed horizon, Group-sequential looks, Always-valid (continuous), Wald SPRT on the difference, and MaxSPRT (event surveillance). Compute the boundaries, then pre-register the plan before any data arrive.
Method guide · experiment.sequentialSequential monitoring — group-sequential boundaries and always-valid p-valuesWhen may an A/B test stop early, and what do the interim looks say so far?Recap
Recap- Repeated looks at a fixed threshold inflate false positives, however innocent the reason.
- Plan the looks: Pocock makes stopping easy, O'Brien–Fleming protects the final analysis, and spending functions handle uneven timing.
- SPRT stops as soon as the evidence is clear between two named values; MaxSPRT watches for any excess.
Concepts in this lesson