Skip to content
Tech Interview Prep
Technical interview guide

A/B Testing

Applying hypothesis testing to compare two product/design variants: sample size, statistical power, and the traps of stopping early.

Minutes to read
3
Practice MCQs
25
Interview Q&A
25
Edition
v7
Editorial status
Reviewed

Scope: Practitioner and standards references current as of 2026-09: the experimentation-platform literature, NIST/SEMATECH e-Handbook, the 2016 ASA statement on p-values, SciPy, and statsmodels.

Interview Q&A

Treat each question like a live interview question: answer out loud first (structure, assumptions, tradeoffs), then open the model answer to spot gaps and rehearse a tighter follow-up.

Curated: · Written: · Reviewed:

25 questions

Q&A-1

Explain why randomisation is the point and how it changes a production decision.

Answer

The short version. Randomisation is the point because it is the only thing that makes assignment independent of the outcome you are measuring. Bigger samples, better dashboards and regression controls reduce noise or adjust for what you already measured. Randomisation removes the confounding you never measured.

With potential outcomes (Y(1) if a user gets the feature, Y(0) if not) the naive difference in means decomposes as:

E[Y|T=1] - E[Y|T=0] = E[Y(1) - Y(0)] + ( E[Y(0)|T=1] - E[Y(0)|T=0] )
                       \___ effect ___/     \_______ selection bias _______/

Random assignment makes T independent of (Y(0), Y(1)), so the bias term is zero in expectation and the difference estimates the average treatment effect. It also gives you a known sampling variance, which is what lets you size the test before you run it.

How it changes the production decision. Without randomisation the decision is "the metric moved, ship it": you cannot bound your error rate. With it, you commit to a rule before seeing the data: ship if the 95% CI on the primary metric excludes zero and guardrails (p99 latency, error rate) do not regress past a set threshold. You can also price the test in advance. Baseline conversion 4%, you want to detect a 10% relative lift (0.4pp), 80% power, α = 0.05 two-sided:

n per arm ≈ 16 · p(1-p) / δ²  =  16 · 0.04 · 0.96 / 0.004²  ≈  38,000

So ~77k users. At 5k eligible users/day that is a 15-day 50/50 split: 15 days where half your users do not get the feature. That number, not the p-value, is usually what reshapes the launch.

Alternatives, and when not to randomise.

DesignWhat it buysWhat it costs
User-level A/BUnbiased ATE, known varianceNeeds traffic; cannot test network effects
Pre/postNo split neededConfounded by seasonality and other launches; 5-10% week-over-week swings are normal
Matched / propensity scoreWorks when you cannot withholdBalances only observed covariates; unconfoundedness is untestable
Switchback / geoHandles interferenceFewer units, wider CI; carryover between windows

Do not randomise when you cannot withhold the treatment (a security patch), when spillover between arms is large (marketplace inventory, social features), or when the decision is cheap and reversible, then ship and watch.

Failure modes and how you catch them.

  • Sample ratio mismatch: you asked for 50/50 and got 49.2/50.8 on 100k users (χ² p < 0.001). Almost always a logging or bot-filter bug applied after assignment. Check assignment counts daily.
  • Peeking: stopping the first day p < 0.05 pushes the false-positive rate from 5% toward 20-30% over ~20 looks. Pre-register the duration or use a sequential test.
  • Novelty effect: week-one lift decays. Plot effect by days-since-exposure.
  • Differential attrition: users drop out differently by arm. Compare pre-assignment covariates and post-assignment logging rates.

The senior move is to randomise at assignment and analyse by assigned group regardless of what users did afterwards: that is what preserves the independence you paid for.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-4

What does the randomisation unit guarantee, and what does it deliberately leave open?

Answer

Direct answer. The randomisation unit guarantees that assignment, exposure and analysis share one granularity: every observation inside a unit gets the same arm, so the between-arm difference in means is an unbiased estimate of the effect of assigning a unit to treatment, and the independence assumption behind the variance estimate holds across units. It deliberately leaves open everything that crosses a unit boundary: interference between units, and whether the effect at that granularity is the effect you actually care about.

Why the unit is the lever. Randomised experiments rest on SUTVA: no interference between units, and one version of treatment per unit. Picking the unit is how you make the first half plausible. Randomise by user and a user never sees both arms, so there is no carryover and no inconsistent UI. Randomise by request and the same user does see both arms, which is fine for a stateless backend change and wrong for anything the user perceives.

UnitGuaranteesLeaves open
userone arm per user; per-user metrics unbiasedspillover to other users; shared infrastructure
session / requestcheap, high N, low variancesame user in both arms; carryover, inconsistent UI
cluster (friends, seller)no contamination inside the clusterinterference between clusters; variance inflation
geo / marketmarketplace equilibrium effects sit inside the unitfew clusters, so low power; geo heterogeneity
switchback (time)shared-resource and marketplace effectstime trends and seasonality confound

What coarsening costs. Cluster randomisation buys the guarantee with variance. With cluster size m = 50 and intra-cluster correlation ρ = 0.05, the design effect is 1 + (m − 1)ρ = 1 + 49 × 0.05 = 3.45. A 100,000-user cluster-randomised test has the power of roughly 29,000 independent users, so you need 3.45× the traffic of a user-level test to detect the same effect. That is the price, and it is why teams coarsen only as far as the leakage forces them to.

What it still leaves open. The unit guarantees an unbiased assignment effect, not an unbiased per-exposed-user effect. If only 20% of randomised users are actually exposed to the change, the intent-to-treat estimate is roughly 0.2× the effect on exposed users. And it says nothing about interference that crosses units.

Failure modes and how to see them.

  • Marketplace, user-level randomisation: sellers see mixed demand and adjust. Detect by regressing control users' metrics on the treated fraction of their market; a nonzero slope is spillover.
  • Shared backend: a latency change on a shared cache or connection pool moves control latency too. Detect by checking whether control metrics shift as treated traffic ramps.
  • Social: treated users message control users. Detect with a cluster-randomised holdout or a network-exposure model.

When cluster variance is unaffordable and interference is real, switch to a switchback or a geo holdout rather than treating user-level randomisation as clean.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-15

How would you explain the unit-of-analysis problem in practice without using the usual slogan?

Answer

The 90-second version. Ask what was randomised. If users were assigned to treatment, the independent unit is the user, and the 40 events that user generated are 40 correlated observations of one unit, not 40 draws. The interval has to be computed at the level of assignment. Everything else (the delta method, cluster-robust errors, the bootstrap) is machinery for doing that when you can't or don't want to collapse to one row per user.

Why the event count lies. The naive standard error assumes each event is an independent draw. It isn't. Events from the same user share that user's baseline: their device, their session habits, their propensity to click. The variance of the mean over n_events events is not σ²/n_events; it is inflated by the design effect

DEFF = 1 + (m - 1) * ICC

where m is events per user and ICC is the intraclass correlation: the share of total variance that lives between users rather than within them. DEFF = 1 means events are independent and the naive interval is fine. DEFF = m means every event from a user is identical and the effective sample is exactly the user count. Reality sits between, and ICC is the number you have to measure.

The arithmetic, with real figures. 2,000,000 events from 50,000 users, so m = 40:

ICCDEFFeffective ninterval width vs naive
0.001.002,000,000×1.00
0.052.95677,966×1.72
0.208.80227,273×2.97
0.5020.5097,561×4.53
1.0040.0050,000×6.32
Python
def design_effect(m, icc):
    return 1 + (m - 1) * icc

m, n_events = 40, 2_000_000
for icc in (0.0, 0.05, 0.2, 0.5, 1.0):
    deff = design_effect(m, icc)
    print(f"icc={icc:<5} deff={deff:>5.2f} "
          f"n_eff={n_events/deff:>10,.0f} width x{deff**0.5:.2f}")

The point of the table is that the correction is not a fixed factor of √40. At a plausible ICC of 0.2 you are off by a factor of 3, not 6.3; at ICC 0.05 you are off by 1.7. Anyone who quotes a single number has not measured their own data.

What to do about it. Three options, in order of how much they cost you:

  • Collapse to one row per user (their mean, their sum, their conversion flag) and run the test on 50,000 rows. Exact, no modelling assumptions, and it costs you the ability to say anything about per-event behaviour.
  • Keep event rows and use cluster-robust standard errors keyed on user id. Same point estimate, corrected variance. Needs enough clusters: below roughly 40–50 clusters the asymptotic correction is unreliable and you want a cluster bootstrap instead.
  • For ratio metrics (clicks per session, revenue per user) use the delta method, which linearises the ratio and propagates the user-level variance through it.

Failure modes and how you catch them. The symptom is an interval several times too narrow and a result that does not replicate on the next cohort. It survives casual checks because the happy path (a large effect, a short window, a metric with low ICC) hides it. Detection: run an A/A test and check the false-positive rate is near 5%; if it comes back at 20%, your unit of analysis is wrong. Or compute both the naive and the clustered SE on the same data and look at the ratio: that ratio is your measured DEFF.

The explanation that lands. Don't say "events aren't independent". Say: "You randomised 50,000 users. You have 2,000,000 rows. Which number is your sample size?" Then show the table. The slogan is a conclusion; the table is the argument.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-7

Where does choosing the primary metric matter, and where is it irrelevant?

Answer

The 90-second answer. Choosing a primary metric matters exactly when you're making a ship/no-ship decision under uncertainty and want the false-positive rate you quoted to be the one you actually get. It's irrelevant when there's no error rate to control: exploratory analysis, dashboards, monitoring, a bug you're fixing because it's a bug, or when a constraint has already forced the decision, like a guardrail regression that says "do not ship" no matter what the primary metric did.

Why pre-registration is the whole point. The decision rule refers to one metric, so the p-value you compute is a statement about that one metric. Pick the metric after seeing which one moved and you've run k tests and reported the best. For k independent metrics at α = 0.05, the chance that at least one crosses by luck is 1 − 0.95^k:

metrics testedP(≥1 false positive)
15%
522.6%
1040.1%

That's the mechanism: post-hoc selection doesn't bias the estimate, it inflates the error rate. Pre-registering the metric and the rule is what keeps the quoted 5% honest.

MARKDOWN
Primary: checkout conversion, user level
Ship if: lower bound of the 95% CI > 0 and no guardrail breached
Otherwise: do not ship, regardless of secondary metrics

Where it's irrelevant. Three concrete cases:

  • No decision rule. Exploratory work, funnel dashboards, monitoring, and qualitative research aren't testing a hypothesis, so there's no α to protect. Naming a "primary metric" here is ceremony.
  • The decision is already forced. A guardrail breach (p99 latency, crash rate, refund rate) ends the decision before the primary metric is read. The primary metric can't override it, so it isn't doing the work.
  • The decision is a trade-off, not a threshold. When several outcomes move in opposite directions (engagement up, support contacts up), a single primary metric hides the trade-off. That's what composite metrics (an OEC) or a decision framework are for.

Alternatives and when each fits.

ApproachUse when
Single pre-registered primaryOne ship/no-ship call, adequate power
Composite / OECMultiple outcomes must be weighed together
Guardrail-onlyChange is a fix or a constraint, not a bet
Sequential / always-validYou must peek continuously

Failure modes. Post-hoc selection inflates FPR (above). A primary metric that's a proxy, clicks for revenue, can move while the business outcome doesn't; detect by checking the proxy against the outcome offline. Goodhart: once a metric gates shipping, teams optimize it directly; detect by watching guardrails and the metric's correlation with the outcome over time. Detection for all of these is the same artifact: a timestamped pre-registration doc, and a count of how many metrics were tested.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-8

Teach guardrail metrics to an engineer who has only seen it as a rule of thumb.

Answer

A guardrail metric is a tripwire, not a second primary metric. You pick it because the change could hurt something you are not trying to move (latency, error rate, crash-free sessions, unsubscribes) and you set a threshold wide enough that crossing it means real harm rather than noise. When it trips, you stop the experiment and look; you do not debate whether the win was worth it.

The mechanism that matters is statistical. Your primary metric is powered: you sized the test to detect a 1% lift, so it is sensitive and it is noisy. A guardrail is the opposite. You do not need power to catch a 10% latency regression, you need a threshold far enough into the tail that a false trip is rare. That is why guardrails are one-sided, only the harm direction counts, and why their thresholds look loose next to the primary metric's.

The trap is peeking. If you check a guardrail at each of 14 daily looks with a per-look 5% false-positive rate, the chance of at least one spurious stop is 1 − 0.95^14 ≈ 51%. To hold that at 5% overall you would need a per-look rate near 0.37%. Guardrails get away with continuous checking only because the threshold is set wide: a +10% latency trip sits far out in the tail, so its per-look false-positive rate is tiny. Set the threshold at 5% and you have built a coin flip.

Typical starting points, not laws:

GuardrailStop thresholdWhy that width
p95 latency+10%near-deterministic at scale, so a tight band is safe
Error rate+0.1pplow noise, tight threshold
Crash-free sessions−0.2pprare event, needs a wide band
Unsubscribe rate+5% relativenoisy, wide relative band

Alternatives, and when each is right:

  • Hard automated stop: fastest, no human in the loop, but one false trip kills a valid experiment and erodes trust in the system.
  • Human review on breach: tolerates noise, but adds hours to days while the harm keeps accruing; right when the guardrail is noisy and the harm is reversible.
  • Metric-specific thresholds: latency and error rate are near-deterministic at scale, so tight thresholds work; unsubscribe is rare and noisy, so it needs a wide relative threshold or a longer window.

Guardrails are the wrong tool when the harm is the decision variable, then it is a primary metric and you power for it, or when you cannot measure it at your traffic, like a crash you would see once a week.

Failure modes, and how you would catch them: a guardrail that never fires usually has a threshold beyond the 99.9th percentile of past runs, so backtest thresholds against historical experiments. One that fires constantly causes alert fatigue and gets disabled, so count trips per quarter. A proxy that drifts from real harm shows up when you correlate breaches with post-launch incidents.

Concretely: define guardrails and thresholds in the experiment plan, automate the stop, and backtest the thresholds before you trust them.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-5

Describe sample ratio mismatch and the evidence you would collect before relying on it.

Answer

What it is

Sample ratio mismatch (SRM) is a statistically significant deviation between the observed allocation of units to arms and the intended allocation. Randomize 50/50, count 50,000 in control and 48,000 in treatment, and the arms are no longer exchangeable: the difference is a property of the assignment, not of the treatment, and it invalidates the comparison.

The check is a chi-squared goodness-of-fit test on the arm counts against the intended ratio:

Python
from scipy import stats
obs = [50_000, 48_000]          # intended 50/50
chi2 = sum((o - 49_000)**2 / 49_000 for o in obs)   # 40.82, df=1
stats.chisquare(obs).pvalue     # ~1.7e-10

Trace: total 98,000, expected 49,000 per arm, each term is 1000²/49,000 = 20.41, summed to 40.82 on one degree of freedom, p ≈ 1.7e-10. At a 0.001 threshold that is a hard fail.

Evidence before you rely on it

A p-value tells you the split is off; it does not tell you where. Collect, in this order:

  • Counts at the randomization unit, not the event. If users are the unit, count distinct users bucketed per arm. Counting sessions or pageviews inflates the arm that generates more events per user and manufactures an SRM that isn't there.
  • Assignment vs exposure counts. Compare users bucketed against users who actually saw the variant. A mismatch in assignment points at the bucketing function; a mismatch in exposure points at logging, triggering, or a redirect that drops one arm.
  • The bucketing function, salt, and bucket ranges. Confirm none changed mid-experiment. A salt change re-randomizes everyone and produces an SRM with no code bug at all.
  • Breakdowns by day, platform, country, and experiment version. A uniform deficit across every segment points at bucketing; a deficit that appears only after a deploy, or only on iOS, points at a code path.
  • A time series of the ratio. A step change at a timestamp is the strongest single piece of evidence for a cause.
  • An instrumentation audit. Sample raw events against the pipeline: dedup logic, bot filtering, client vs server logging, and any pre-analysis filtering.

Trade-offs and failure modes

The threshold is a false-positive budget. At p < 0.05, one in twenty healthy experiments is flagged; most platforms use p < 0.001 or lower because they run thousands of checks. Gating every readout automatically is defensible, but it has a cost: a benign SRM, a variant that crashes and so logs fewer exposures, is still a real difference in populations and should block, whereas a tiny deviation in a secondary segment may not warrant it. Severity tiers (block on the primary-metric population, flag for review elsewhere) are the usual compromise.

The failure mode to avoid is adjusting the analysis for the observed ratio, or dismissing a small mismatch as noise. Both treat a broken assignment as a statistical inconvenience rather than as evidence the arms hold different populations.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-6

A teammate proposes a design that hinges on a/A tests. How do you evaluate it?

Answer

I'd evaluate the design by asking what the A/A test is meant to validate, then checking whether it can actually detect the failures it's supposed to catch, at what cost, and what it misses. Assume the goal is to validate the experimentation pipeline (randomization, assignment, and metric computation) before trusting A/B results. A/A tests are necessary but not sufficient. They detect assignment bias and variance underestimation, but they don't catch metric definition errors, novelty effects, or interference. So the design should pair A/A with other checks.

In an A/A test, both arms get the same treatment. The p-values from repeated tests should be uniformly distributed. If they're not, the pipeline is biased. You can check this with a Kolmogorov-Smirnov test on the p-values, or by binning them and running a chi-square test. You should also check for sample ratio mismatch (SRM): if the observed ratio of users in each arm deviates from the expected 50/50, that indicates assignment bias. A chi-square test on the counts detects this.

Python
import numpy as np
from scipy import stats

# Simulate 1000 A/A tests, each with n=10000 users per arm
n = 10000
pvals = []
for _ in range(1000):
    control = np.random.binomial(1, 0.05, n)
    treatment = np.random.binomial(1, 0.05, n)
    p1 = control.mean()
    p2 = treatment.mean()
    p_pool = (control.sum() + treatment.sum()) / (2 * n)
    se = np.sqrt(p_pool * (1 - p_pool) * (2 / n))
    z = (p2 - p1) / se
    pvals.append(2 * (1 - stats.norm.cdf(abs(z))))

ks_stat, ks_p = stats.kstest(pvals, 'uniform')
print(f"KS p-value: {ks_p:.4f}")  # should be > 0.05
print(f"Fraction p < 0.05: {np.mean(np.array(pvals) < 0.05):.4f}")  # should be ~0.05

# SRM check: simulate observed counts with a 2% imbalance
observed = [10000, 10200]
expected = [10100, 10100]
chi2, p = stats.chisquare(observed, expected)
print(f"SRM p-value: {p:.4f}")  # should be > 0.001

The cost is traffic and time. Running A/A tests consumes users who could be in a real experiment. Alternatives include holdback groups (1% of users never get treatment) to detect long-term effects, pre-experiment validation with historical data, and synthetic data injection. A/A is best when you need to validate the pipeline before a high-stakes experiment. If the cost of a wrong decision is low, you might skip it.

MethodDetectsCostWhen to use
A/A testAssignment bias, variance underestimationTraffic, timeBefore high-stakes A/B
Holdback groupLong-term effects, novelty1% of trafficWhen long-term impact matters
Pre-experiment validationMetric definition errorsHistorical dataAlways, if data available
Synthetic dataPipeline bugsEngineering timeDuring development

Concrete failure modes: (1) Insufficient sample size. A/A passes but bias remains undetected. For a 5% baseline conversion rate, detecting a 1% relative bias (0.05% absolute) at 80% power and α=0.05 requires about 3 million users per arm. Detecting a 10% relative bias requires about 31,000 per arm. So the design must specify the minimum detectable bias and the sample size. (2) Multiple testing. Running many A/A tests inflates false positives. Use Bonferroni or FDR. (3) Non-stationarity. User behavior changes during the test. Run A/A for at least one full business cycle, typically 1-2 weeks, and check for trends. (4) SRM. Detected by chi-square on counts; a p-value below 0.001 is a red flag.

The design should also specify how often to run A/A tests. Continuously, not just once, to catch regressions. And it should include a plan for what to do if A/A fails: investigate assignment, instrumentation, and metric computation.

So I'd evaluate the design by checking that it includes: a power analysis for the A/A test itself, SRM checks, uniformity tests on p-values, and a plan for what to do when A/A fails. If it only says 'run A/A tests,' it's incomplete.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-24

What would you ask a candidate who recites the decision rule but cannot apply it?

Answer

The short answer: stop asking about the rule and hand them an experiment. Recitation survives "what's the decision rule?"; it dies the moment the rule has to produce a number. So every follow-up has the same shape: here is a concrete change, here are the metrics. Write the rule now, then tell me what you'd do with this result.

1. Instantiate it. "We're changing the checkout button. Primary metric is purchase conversion; guardrails are p95 checkout latency and refund rate. Write the ship/revert rule, with numbers, before I show you any data." A candidate who has only memorised the rule says "significant positive and no guardrail breach → ship": that's the recitation again. An applier picks a minimum effect worth shipping for, say 0.5 percentage points absolute on a 12% baseline, and computes the sample size: n ≈ 16·p(1−p)/δ² = 16·0.1056 / 0.005² ≈ 68,000 per arm at 80% power and α = 0.05 two-sided.

2. Apply it to a result. "Nine days in, 68,000 per arm. Conversion 12.1% control, 12.6% treatment, p = 0.04. Guardrail latency 180 ms → 240 ms, p = 0.03." The primary is significant and the guardrail is breached. Which wins? A reciter freezes. An applier answers from the rule they just wrote: if they made the guardrail a hard gate, revert. A 33% latency regression on checkout costs more than a +0.5 pp lift is worth, and write up that the primary was positive but gated. If they didn't decide precedence before launch, that's the gap the question exposes.

3. Break the rule's assumptions. "You planned 68,000 per arm. You're at 20,000 per arm and p = 0.01. Ship?" This is the peeking test. A reciter treats p < 0.05 as the rule. An applier refuses: the rule was a fixed-horizon test, and stopping early on a p-value inflates the false-positive rate. At 20k you've taken several looks and the effective α is well above 0.05. Either run to the pre-registered n or switch to a sequential design with an alpha-spending boundary, decided before launch.

4. Resolve the ambiguity. "The guardrail threshold was 5% and you're at 3%. Ship?" The rule doesn't cover it, so the real question is who decides. An applier names the owner and the tie-break before the data lands.

Follow-upWhat it testsReciterApplier
Write the rule with numbersCan they instantiate"significant → ship"δ = 0.5 pp, n = 68k/arm
Apply to a resultCan they executefreezes on the conflictguardrail gates, revert
Early stop at p = 0.01Do they know the rule's assumptionsshipsrefuses, cites peeking
Ambiguous guardrailDo they know who decides"it depends"names the owner

The failure to watch for: the candidate redefines "significant" after seeing the result. "well, 0.5 pp is close enough." That is exactly what a pre-registered rule exists to prevent, and you can detect it in the interview by making them state the threshold before you show the data. If they can't, they've memorised the rule, not learned it.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-16

How do you detect and handle extreme outliers in continuous metrics like revenue per user, and how does capping affect bias versus variance?

Answer

Continuous metrics such as revenue per user or latency are typically heavy-tailed, zero-inflated, and highly skewed. A single enterprise transaction or web scraper can dominate sample variance, artificially ballooning the standard error of a treatment effect or causing false positives/negatives in an A/B test.

Detection Methods

  1. Tail Kurtosis and Skewness Inspection: Track sample kurtosis and skewness. If kurtosis is orders of magnitude above normal distributions ($> 3$), standard asymptotic assumptions ($t$-test via Central Limit Theorem) require massive sample sizes to hold.
  2. Quantile and Max-to-Sum Ratios: Calculate ratios like $X_{(n)} / \sum_{i=1}^n X_i$. If the single largest observation represents $>1%$ of the treatment group's total revenue, inference is unstable.
  3. Distribution-Free Checks (IQR vs. Percentile Cutoffs): Evaluate empirical percentiles ($99\text{th}$, $99.9\text{th}$) and Tukey's fences ($Q_3 + 1.5 \times \text{IQR}$). Tukey's IQR rule often fails on zero-inflated continuous data because the IQR collapses near zero, making fixed high percentiles (e.g., $99.9\text{th}$) or domain-driven limits more reliable.

Handling Techniques

  • Winsorization (Capping): Values exceeding a threshold $c$ are set to $c$: $Y_i^* = \min(Y_i, c)$. Thresholds are determined using pre-experiment historical data or pooled treatment/control data.
  • Log Transformation: $Y_i^* = \log(Y_i + 1)$. Stabilizes variance but shifts the hypothesis from the difference in arithmetic means to geometric means, which can mask massive top-line financial loss.
  • Bootstrap / Non-parametric Tests: Mann-Whitney-Wilcoxon tests median ranks rather than top-line revenue, which is rarely aligned with revenue objectives. Trimmed means drop values entirely, altering sample size and sample definition.

Bias vs. Variance Trade-Off

Capping exchanges an unbiased estimator with high variance for a biased estimator with dramatically lower variance:

$$\text{MSE}(\hat{\tau}) = \text{Bias}(\hat{\tau})^2 + \text{Var}(\hat{\tau})$$

  • Variance Reduction: Extreme outliers drive $\text{Var}(\bar{Y}) = \frac{\sigma^2}{n}$. By truncating the tail at $c$, $\sigma^2$ is bounded, substantially reducing the standard error of $\hat{\tau} = \bar{Y}_T - \bar{Y}_C$ and increasing statistical power.
  • Bias Introduction: If a feature genuinely drives high-value conversions, capping at $c$ structurally understates the true effect (downward bias on $\hat{\tau}$). Conversely, if treatment increases fraud attempts, capping suppresses the penalty.
Python
import numpy as np

def winsorize_pooled(y_ctrl: np.ndarray, y_trt: np.ndarray, percentile: float = 99.9):
    # Threshold must be computed pooled or strictly from pre-experiment baseline
    # to prevent introducing asymmetric treatment-dependent bias.
    pooled = np.concatenate([y_ctrl, y_trt])
    cap = np.percentile(pooled, percentile)
    return np.minimum(y_ctrl, cap), np.minimum(y_trt, cap), cap

# Example: 100,000 users per arm, heavy Pareto tail
ctrl = np.random.pareto(a=1.5, size=100_000) * 10
trt = np.random.pareto(a=1.5, size=100_000) * 10.5

c_ctrl, c_trt, cap_val = winsorize_pooled(ctrl, trt, 99.9)
print(f"Cap: {cap_val:.2f} | Ctrl Var: {ctrl.var():.2f} -> {c_ctrl.var():.2f}")

Failure Mode

Computing separate capping thresholds for Control and Treatment (e.g., $99.9\text{th}$ percentile of Control applied to Control, and $99.9\text{th}$ of Treatment applied to Treatment) introduces systematic artificial bias. Always compute a single threshold using pooled or historical data.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-12

How do you balance statistical power, sample size, and Minimum Detectable Effect (MDE) when planning an experiment with low traffic?

Answer

In low traffic you don't get to choose all three. Alpha and power are policy: 0.05 two-sided and 0.80 are conventions you can move, but moving them trades one error rate for another rather than buying information. Traffic fixes n. MDE is the dependent variable: compute what your traffic can detect, then ask whether an effect that size would change the decision. If it wouldn't, don't run the test.

The arithmetic is one line. For a two-sided test at α=0.05 and 80% power, n per arm ≈ 16σ²/Δ², where σ² is the per-arm variance and Δ the absolute effect. For a proportion, σ² ≈ p(1−p). At a 5% baseline conversion:

| Relative MDE | Δ (abs) | n per arm | Days at 1,000/arm/day | | 5% | 0.0025 | ~122,000 | 122 | | 10% | 0.0050 | ~31,200 | 32 | | 20% | 0.0100 | ~8,200 | 9 | | 30% | 0.0150 | ~3,800 | 4 |

Note the shape: MDE falls as 1/√n, so quadrupling the sample only halves the MDE. That is the whole reason low traffic hurts: sensitivity costs quadratically.

python

Python 3.12, statsmodels 0.14

import numpy as np from statsmodels.stats.power import NormalIndPower

p0, delta = 0.05, 0.005 # 5% baseline, 10% relative lift p1 = p0 + delta sigma = np.sqrt(p0*(1-p0) + p1*(1-p1)) # per-arm variance sum n = NormalIndPower().solve_power( effect_size=delta/sigma, power=0.8, alpha=0.05, ratio=1)

31232.0 per arm -> 32 days at 1,000 users/arm/day

When the required n exceeds what you have, four honest moves, in order of preference. First, buy variance reduction rather than traffic: CUPED uses a pre-period covariate, and if it correlates ρ=0.6 with the metric, variance drops by ρ²=36%, turning 31,200 into roughly 20,000 per arm. Stratification on a pre-exposure variable does the same thing more crudely. Second, pick a lower-variance metric that answers the same decision: revenue per user is dominated by a few whales, while conversion-to-first-action is often the same question with a tenth of the variance. Third, extend the horizon, but only to a pre-planned date and only if novelty and primacy won't contaminate the tail. Fourth, change the design: a switchback, or a long-term holdout read monthly, if user-level randomisation is what's expensive.

What you must not do is run it anyway at 80% power for an MDE you cannot reach, then read p=0.31 as "no effect". That is the trap this question tests. A non-significant result from an underpowered test is entirely consistent with a real effect of the size you were hoping for; the ASA statement makes the same point about p-values generally. The confidence interval is the honest artefact: report it and say what it rules out.

Two more failure modes worth naming. Choosing the MDE after seeing the observed effect is just describing the data. And powering guardrails at the same MDE as the primary metric wastes sample: guardrails only need to catch large regressions, so a 50% MDE at 80% power is usually enough and costs a fraction of the traffic. If you must monitor continuously, use a group-sequential boundary such as O'Brien-Fleming, roughly 5-10% sample inflation, rather than peeking at a fixed-horizon test, which inflates alpha without bound.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-13

How do you calculate variance and analyze confidence intervals for ratio metrics when the randomization unit differs from the analysis unit?

Answer

When randomizing at the user level but analyzing a ratio of session-level or page-level events (such as click-through rate = clicks / page views), observations within a user are correlated. Applying a standard two-sample t-test treats each page view as independent, underestimating metric variance by 20% to 50% and producing artificially narrow confidence intervals that inflate false-positive rates.

To compute the true variance, cluster-aggregate the metric per randomization unit or apply the multivariate delta method over user-level sums. Let each user $i$ in a variant have $X_i$ total clicks and $Y_i$ total page views. The sample ratio estimator is:

$$\hat{R} = \frac{\sum_{i=1}^n X_i}{\sum_{i=1}^n Y_i} = \frac{\bar{X}}{\bar{Y}}$$

Using a first-order Taylor expansion around $(\mu_X, \mu_Y)$:

$$\text{Var}(\hat{R}) \approx \frac{1}{n \bar{Y}^2} \left( S_X^2 - 2\hat{R} S_{XY} + \hat{R}^2 S_Y^2 \right)$$

where $S_X^2$ is the sample variance of user click sums, $S_Y^2$ is the sample variance of user view sums, and $S_{XY}$ is their sample covariance.

Python
import numpy as np
from scipy import stats

def ratio_ci_delta_method(clicks_per_user, views_per_user, alpha=0.05):
    n = len(clicks_per_user)
    x_bar = np.mean(clicks_per_user)
    y_bar = np.mean(views_per_user)
    r = x_bar / y_bar

    s_xx = np.var(clicks_per_user, ddof=1)
    s_yy = np.var(views_per_user, ddof=1)
    s_xy = np.cov(clicks_per_user, views_per_user, ddof=1)[0, 1]

    var_r = (1.0 / (n * (y_bar ** 2))) * (s_xx - 2 * r * s_xy + (r ** 2) * s_yy)
    se_r = np.sqrt(var_r)
    z = stats.norm.ppf(1 - alpha / 2)
    return r, (r - z * se_r, r + z * se_r)
MethodComputational CostSmall-Sample ValidityNotes
Delta Method$O(N)$ single passAsymptotic ($N \ge 10^4$ users)Scales well in distributed SQL (e.g., Presto/Spark).
Cluster Bootstrap$O(B \cdot N)$, $B \ge 1000$Robust to heavy tails / small $N$High compute overhead in daily production pipelines.
Naive t-test (Flat)$O(N_{events})$InvalidAssumes i.i.d. events; anticonservative p-values.

For two variants (Treatment and Control), calculate $\widehat{\text{Var}}(\hat{R}_T - \hat{R}_C) = \widehat{\text{Var}}(\hat{R}_T) + \widehat{\text{Var}}(\hat{R}_C)$ assuming independent randomization groups, and construct the Wald confidence interval around $\hat{R}_T - \hat{R}_C$.

The delta method relies on the central limit theorem operating on user aggregates; if user session counts have extreme power-law skews, winsorize top outliers (e.g., 99.9th percentile) before taking sums, or use cluster bootstrapping.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-3

Walk through trigger-based analysis, including where engineers most often get it wrong.

Answer

What I'd say first

Trigger-based analysis restricts the metric to the subpopulation the change can actually affect: users who reach the code path, see the feature, or satisfy a pre-treatment eligibility rule. The reason is dilution. If only 8% of assigned users ever hit the flow, a real +1.0 pp effect on those users shows up as +0.08 pp when you average over everyone, and at fixed power you need about 3.5x the sample to detect it (1/sqrt(0.08) = 3.54).

The invariant that makes it valid: the trigger is a pre-treatment predicate, evaluated by the same code in both arms, and logged for every assigned user. Break any of those three and you are comparing two populations, not two treatments.

Mechanism

Python
arm = assign(user_id)              # logged for every user, before any branching
eligible = user_qualifies(ctx)     # pre-treatment predicate, identical in both arms
log(user_id, arm, eligible)
if eligible:
    record_metric(run_flow(arm, ctx))

Trace a control user who qualifies: arm="control", eligible=True, the log line is written, the metric is recorded from the old flow. Trace a treatment user who does not qualify: eligible=False, no metric. Both arms execute the same two lines before the branch, so the trigger rate is a property of the population, not of the treatment.

Checking it before reading any metric

ArmAssignedTriggeredRate
Control500,00041,2008.24%
Treatment500,00040,9008.18%

With ~41,000 triggered users per arm, the standard error of the difference in proportions is sqrt(0.082 x 0.918 x 2 / 41000) = 0.19 pp. The observed 0.06 pp gap is 0.3 SE: noise. A gap of 0.5 pp (2.6 SE) would mean the trigger is not pre-treatment or not identical, and the analysis is dead until that is explained.

Where engineers get it wrong

  • Trigger implemented only in the treatment arm, because the control has no equivalent code path. The control population is then everyone, the treatment population is the eligible subset, and the comparison is meaningless. It survives casual testing because the happy path hides it.
  • Trigger evaluated after assignment and moved by the treatment: "users who completed onboarding", "sessions where the feature was opened". Conditioning on a post-treatment variable selects on a mediator and can flip the sign of the estimate.
  • Trigger that is a proxy for the metric. If the metric is engagement and the trigger is "opened the feature", you have selected on the outcome.
  • Forgetting what question you answered. Triggered analysis estimates the effect on the eligible subpopulation, not the effect of shipping to everyone. Those differ by the trigger rate whenever the treatment also moves non-triggered users.

Alternatives and when to use them

All-units (intention-to-treat) analysis answers the shipping question and is diluted; use it when the decision is "do we launch". Triggered analysis answers "does it work for the people who use it"; use it when the decision is "do we keep building this". CUPED (Deng et al., WSDM 2013) applies to either: it regresses out a pre-experiment covariate and multiplies variance by (1 - rho^2), where rho is the correlation between that covariate and the metric. Triggered plus CUPED is the usual combination. Multiplying the triggered effect by the trigger rate approximates the all-units effect only if the treatment does nothing to non-triggered users: check that assumption, do not assume it.

What would change my answer

If the trigger rate is under ~1-2% and the decision is a launch decision, triggered analysis cannot carry it: the all-units estimate is too diluted and you need a different design. If the trigger turns out to be post-treatment, I would not use it at all; I would go back to all-units and add a pre-period covariate instead. Kohavi, Tang and Xu, Trustworthy Online Controlled Experiments (2020), covers triggered analysis and the dilution arithmetic in detail.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-2

How would you reason about intention to treat in a system you own?

Answer

First 90 seconds. The assumption that decides everything: the randomisation unit is the user, assignment is written to a server-side log before any treatment-dependent behaviour, and the primary metric is conversion. Given that, the primary analysis is by assigned arm: everyone randomised, whether or not they ever saw the feature. Exposure is a covariate I look at, never a filter.

Why. Randomisation buys exchangeability between arms. Exposure is a post-treatment variable: whether a user reaches the code path that evaluates the flag is itself affected by the treatment. Filtering on it conditions on a descendant of the treatment, so the arms stop being comparable: treatment users who engaged get compared against control users who by construction could not. That is the mechanism, not a convention.

What it computes. ITT estimates the effect of offering the feature, diluted by the fraction who never reach it. If the true effect on users who actually see it is +2.0pp and only 60% of the treatment arm exposes, ITT lands near 0.6 × 2.0 = 1.2pp.

Python
assign = pd.read_parquet("exp_assignments/exp_1421.parquet")  # user_id, arm, ts
events = pd.read_parquet("exp_events/exp_1421.parquet")       # user_id, exposed, converted
df = assign.merge(events, on="user_id", how="left")
df["exposed"] = df["exposed"].fillna(False)

itt = df.groupby("arm")["converted"].mean()
print(itt["treatment"] - itt["control"])          # 0.062 - 0.050 = 0.012

first_stage = df.groupby("arm")["exposed"].mean() # treatment 0.60, control 0.02
cace = (itt["treatment"] - itt["control"]) / (first_stage["treatment"] - first_stage["control"])
print(cace)                                        # 0.012 / 0.58 = 0.0207

The second block is the trigger/encouragement design: assignment is the instrument, exposure the endogenous variable, and the Wald ratio recovers the effect on compliers. Users who expose when assigned to treatment and would not otherwise. It is valid only if assignment moves exposure and affects the outcome only through exposure; a flag that also changes page load time breaks that exclusion.

The trade. ITT is unbiased for the offer and needs no extra assumption. CACE is unbiased for compliers but leans on exclusion and is noisier, because you divide by a first-stage difference well below 1. With baseline conversion 5%, detecting 1.2pp at 80% power and α=0.05 takes about 16 × 0.05 × 0.95 / 0.012² ≈ 5,300 users per arm; detecting the 2.0pp complier effect directly would take ~1,900, but that estimate is the biased one. The honest cost of ITT is roughly 2.8× the sample.

Failure modes I watch for. Exposure filtering usually enters through a dashboard, not a notebook: someone builds "conversion among users who saw the feature" and it becomes the number leadership quotes. Detection: assert the analysed row count equals the assignment table count, and alert when the analysed-to-assigned ratio differs between arms by more than a point. That divergence is the signature of conditioning on a post-treatment variable. Second: client-side exposure logging drops users who never load the page, and if the treatment changes load behaviour the missingness is arm-correlated. Detection: compare exposure-log coverage per arm; a gap between arms means the exposure metric is itself an outcome.

What changes the decision. If the question is "should we ship this to everyone": ITT. If it is "should we ship it to the users who will actually use it": CACE, with the instrument and the exclusion argument pre-registered in experiment review before launch.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-20

What trade-off does segment analysis force that a junior answer usually skips?

Answer

The trade-off is resolution against valid inference at a fixed sample size. Cutting a result into k segments buys the ability to say something about each subgroup, and charges for it twice: the false-positive rate compounds across the k tests, and the sample per segment shrinks, so the smallest effect you can detect grows. A junior answer stops at "segment analysis finds insights for different users" and never prices either charge.

Mechanism. Two things happen at once when you split.

Error rate. With k independent tests at α = 0.05, the probability of at least one false positive is 1 − (1 − α)^k. Twelve segments gives 46%: you will "find" an effect in a segment that has none roughly half the time.

Power. A fixed total n split into k equal groups leaves n/k per group. Minimum detectable effect scales as 1/√n, so MDE grows by √k. Twelve segments means an effect has to be about 3.5× larger to be detectable inside a segment than in the pooled data.

Python
import math

alpha = 0.05
for k in (2, 5, 12, 20):
    fwer = 1 - (1 - alpha) ** k      # P(at least one false positive)
    mde_mult = math.sqrt(k)          # equal split, fixed total n
    print(f"k={k:2d}  FWER={fwer:.2f}  MDE x{mde_mult:.2f}  Bonferroni alpha={alpha/k:.4f}")

Traced output:

k= 2  FWER=0.10  MDE x1.41  Bonferroni alpha=0.0250
k= 5  FWER=0.23  MDE x2.24  Bonferroni alpha=0.0100
k=12  FWER=0.46  MDE x3.46  Bonferroni alpha=0.0042
k=20  FWER=0.64  MDE x4.47  Bonferroni alpha=0.0025

So the trade-off is not "segments are good or bad". It is that you cannot have per-segment precision and family-wise error control at the same n. You pay in sample size, in effect size, or in credibility.

The two ways out, and what each costs.

  • Pre-register the segments and test an interaction (treatment × segment). One test, one degree of freedom, no multiplication of hypotheses. Cost: you must name the segments before you see the data, so you trade discovery for credibility, and you still need enough n per cell to power the interaction.
  • Explore freely and label everything exploratory. Cost: no p-values you can defend; the output is a hypothesis for the next experiment, not a finding.

Failure modes. The classic one: report the single segment where p < 0.05 as the insight. That is a multiple-comparison error wearing a result's clothes. It survives review because the pooled effect is real and the segment is plausible. Detect it by asking whether the segment list existed before unblinding, and whether the reported segment is the maximum of k tests.

The mirror failure is over-correction: pre-registering so many segments that Bonferroni leaves nothing detectable, then concluding "no heterogeneity" when the design never had the power to see it. Detect it by checking the per-cell MDE against the effect size you cared about. A third is HARKing: choosing segments after seeing results and presenting them as pre-registered; detect it by comparing the analysis plan's timestamp and segment list against the final report.

What a senior answer says: fix the segment list and the test before the data, use one interaction test rather than k per-segment tests, and report per-segment estimates as exploratory with intervals that reflect the multiplicity.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-17

How does weekly seasonality affect the sample size you need, how long the experiment must run, and whether a fixed-horizon analysis is still valid, and what design or analysis choices address it?

Answer

Start by splitting seasonality into two things that behave completely differently: a common additive day effect, and a week-level random component. Conflating them is where most answers go wrong.

With user-level randomisation and a horizon that is a whole number of weeks, the additive part cancels exactly in the difference. Both arms see the same Monday and the same Saturday, so the day effect is a constant added to both means and drops out. It does not bias the estimate and it does not inflate the variance of the difference. What it does break:

  • Non-whole-week horizons change the estimand. Under user randomisation a 10-day test still has identical day mixes in both arms, so there is no bias, but the estimate is a day-mix-weighted average, and a 10-day estimate and a 14-day estimate answer different questions. Unequal day mixes across arms only appear when the arms do not share a calendar: switchback, staggered rollout, pre/post comparisons.
  • Day × treatment interaction. A feature that only fires on weekends makes the whole-week average a weighted average of day-specific effects, with weights set by the calendar window you happened to pick.
  • Week-level shocks (holidays, promos, a competitor outage) are a random effect whose effective sample size is the number of weeks, not the number of users.

That last point is the sample-size one people miss. Illustrative figures: revenue per user, mean 10.0, user-level SD 20.0, week-level random-effect SD 1.0. With 50,000 users per arm over 2 weeks, the user-level SE of the difference is sqrt(2)·20/sqrt(50000) ≈ 0.13. The week-level SE is sqrt(2·1.0²/2) = 1.0: roughly eight times larger. Adding users does nothing to it; you would need on the order of 125 weeks per arm to push it down to 0.13. In practice you accept the wider interval and buy weeks, not users.

HorizonDay mix balancedWeek-level drawsVerdict
7 daysyes1unbiased, but one holiday can move the result
10 daysyes (shared calendar)1.4estimand is window-specific
14 daysyes2minimum defensible
28 daysyes4week-level SE halves vs 14 days

Design and analysis choices:

  1. Run whole-week multiples and pre-register the horizon. 14 or 28 days, aligned to the same weekday start.
  2. If you must peek, use group-sequential alpha spending (O'Brien-Fleming or Pocock) so the Type I error stays at 5%. A fixed-horizon p-value computed at an unplanned stop is not valid: this is the ASA statement's point about p-values being a function of the sampling plan, not just the data.
  3. Model the day structure rather than pretending it is absent. Day-of-week fixed effects plus week-clustered standard errors:

python import statsmodels.formula.api as smf # statsmodels 0.14

one row per user: y, t (0/1), dow, iso_week

m = smf.ols("y ~ t + C(dow)", data=df).fit( cov_type="cluster", cov_kwds={"groups": df["iso_week"]}) print(m.params["t"], m.bse["t"])

With only 2–4 week clusters, cluster-robust SEs are themselves unreliable; use a wild cluster bootstrap or a t-distribution with W−1 degrees of freedom, and say so out loud.

Failure modes to name: a 7-day test that lands on a holiday week and reports a 3% lift that never replicates; a switchback whose arms get different weekend counts; a pilot sized on Tuesday–Thursday data that understates the variance you will actually face. Detect the first by re-running the same change on a different week and comparing, if the two intervals barely overlap, the week-level component is real and your horizon is too short.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-14

When would you refuse a design because of variance reduction?

Answer

Core answer

Variance reduction is a precision tool, not a correctness tool. I refuse a design that uses it when the power it buys comes out of one of three budgets: unbiasedness, the estimand, or the cost of running it. The deciding question is never "does this lower variance?": it's "does it lower variance while leaving the estimate and the target quantity intact, and is the gain worth the operational cost?"

Assumptions I state before answering: the experiment is randomized, the metric is the one the decision turns on, and pre-period data exists for the units in the experiment.

Refuse when the covariate can move with treatment

CUPED's guarantee is that the covariate is strictly pre-treatment. If it is measured after assignment, or can be affected by the treatment, refuse: the adjustment absorbs part of the effect and biases the estimate toward zero.

Python
import numpy as np
x_pre = np.array([1., 2., 3., 4.])   # strictly pre-treatment
 y     = np.array([3., 6., 4., 7.])   # outcome
theta = np.cov(y, x_pre, ddof=1)[0, 1] / np.var(x_pre, ddof=1)
y_adj = y - theta * (x_pre - x_pre.mean())

Trace: mean(x)=2.5, mean(y)=5.0. cov = 5/3 = 1.667, var(x) = 5/3 = 1.667, so theta = 1.0. y_adj = [4.5, 6.5, 3.5, 5.5]. Var(y) = 10/3 = 3.33, Var(y_adj) = 5/3 = 1.67: a 50% cut, the realistic band for engagement metrics. Swap x_pre for an in-experiment covariate and the same code silently removes treatment signal instead of noise.

Refuse when the estimand changes

Trimming, winsorizing, or moving to a ratio metric lowers variance by redefining what you estimate. If the decision depends on the tail (refunds, fraud, p99 latency) refuse; you've made the number precise by making it a different number.

Refuse when the cost exceeds the gain

If the experiment already has power, or the metric is a quantile where CUPED gives little, refuse. A 30% variance cut is a 30% sample cut; if you're already at 95% power, you're paying engineering time for nothing.

Alternatives and when they win

TechniqueUse whenRefuse when
CUPED / regression adjustmentstrong pre-period predictor, ATE is the targetcovariate post-treatment, nonlinear interaction
Stratification / blockingknown discrete confounder, small nmany strata, sparse cells
Paired / within-subjectsame unit measurable twice, no carryovercarryover or ordering effects
More traffic / longer runno valid covariateseasonality makes longer runs biased

Failure modes and how I'd catch them

  • Post-treatment covariate: run an A/A test; the adjusted difference should be centered on zero. If it drifts, the covariate is contaminated.
  • Estimand drift: pre-register the metric and the tail definition before launch.
  • Covariate imbalance: check the pre-period covariate is balanced across arms; imbalance means the randomization or the covariate is broken.

The senior move is to refuse on the mechanism, not the magnitude: a design that biases the estimate is refused at any variance reduction, and one that only costs money is refused when the power is already there.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-18

What belongs in a runbook section on interference between units, and what does not?

Answer

A runbook section on interference between units holds only what an on-call engineer can act on without re-deriving the statistics. Four items belong:

  1. A detection signal with a threshold. The metric that moves when interference is live, and the value that pages someone.
  2. The containment unit, named, and the switch to reach it. Not "consider clustering": the actual unit (DMA, country, warehouse) and the config that selects it.
  3. The blast radius. Which metrics are contaminated and which survive.
  4. The decision rule. Kill, re-run clustered, or ship with a caveat.

Everything explanatory does not belong: why interference exists, the derivation of the bias, the menu of randomisation levels, the textbook definition. Those live in the design doc the runbook links to.

Why the detection signal is the load-bearing part. Interference means the control group's outcome is a function of treatment. In a marketplace experiment that randomises buyers individually and bids more aggressively in treatment, treatment consumes shared supply, so control buyers see fewer listings. Control has moved, and the measured lift is inflated, or, in a congestion setting where treatment adds load, flipped in sign. You cannot see this in the treatment arm; you see it in control's own supply metric.

Worked trace, hypothetical numbers:

WindowControl listings/buyervs pre-period
Days 0–6 (pre)42.0—
Day 7 (treatment live)39.5−6.0%
Day 838.9−7.4%

The runbook threshold is the −5% line: crossing it means control is contaminated and the lift estimate is not trustworthy. That is a signal an on-call engineer can check in one dashboard, which is the test for whether it belongs.

What does not belong, and why it fails. "Consider randomising at market level" is a design decision, not a runbook step: it gives the reader nothing to do at 3am. A claim that interference "biases results" without a direction is worse than useless: in a marketplace where treatment drains shared supply, control is depressed and lift is inflated; in a shared-congestion system, treatment adds load and the sign can flip. The runbook states the direction for this system or says "direction unknown, treat the estimate as invalid."

Failure mode. A runbook that carries the theory but not the threshold gets read once and never used; the experiment ships with an inflated lift, and the error surfaces only when the feature underperforms in production: the classic case where the control moved and nobody checked. Detection is a dashboard query on control's own metric, not a post-hoc statistics review.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-19

How would you review a pull request whose risk is switchback experiments?

Answer

What I say first: the diff is usually small, a scheduler and an analysis script, and the risk lives in the analysis, so I read that first. I'd block the PR if it treats each period as an independent observation, and I'd ask for the carryover measurement before approving the period length.

1. Randomisation unit and schedule. Confirm the unit is a time window applied to the whole system (or the whole cluster), not per user. Then check the schedule is balanced: equal treatment and control periods per hour-of-day and per day-of-week. A schedule that always runs treatment 09:00–12:00 confounds arm with morning traffic, and no amount of analysis fixes it.

2. Assignment is logged per request. The arm should be a deterministic function of the period timestamp, and every request should record the arm it was served. If the arm only exists in a config file, you cannot reconstruct the assignment after the fact and the experiment is unauditable.

3. Period length justified by carryover. Ask for the measurement: how long does the effect persist after the arm flips? Period length should exceed it. "30 minutes" with no evidence is a review comment, not a fact.

4. The estimator: this is the approve/block line.

Python
# 14 days x 48 half-hour periods = 672 periods -> 336 adjacent pairs
# means: per-period metric mean, in time order; arm: per-period label

# WRONG: 672 periods counted as independent draws
stats.ttest_ind(means[arm == "control"], means[arm == "treatment"])

# RIGHT: difference within each matched pair, test the 336 differences
pairs = means.reshape(-1, 2)           # (336, 2), [control, treatment]
pair_diff = pairs[:, 1] - pairs[:, 0]  # 336 differences
stats.ttest_1samp(pair_diff, 0)

Adjacent periods share the same traffic mix, the same day, the same deploy state. Differencing inside the pair removes that common component; the test then runs on 336 differences instead of 672 means. The naive version understates variance because it counts correlated periods as independent.

5. Residual autocorrelation. Even after pairing, consecutive pairs are correlated: a slow trend, a cache warming. Check the PR reports a variance estimate robust to that: Newey–West/HAC standard errors with a stated lag, or a block bootstrap over days. A plain t-test p-value with no correction is a request for changes.

6. Guardrails and stopping. The primary metric and the stopping rule should be pre-specified in the PR. A switchback peeked at daily and stopped when significant is p-hacked.

Alternatives I'd raise in comments, and when each wins:

DesignUse whenCost
Clustered randomisation (city, household, school)interference is contained inside a cluster and you have enough clusters: roughly 40+ for the CLT to behavecluster-level variance, fewer effective units
User-level with interference-aware handlingleak is weak or you can isolate itneeds a model of the leak
Switchbackinterference is system-wide (shared inventory, shared cache, marketplace) and carryover decays faster than the periodtime-confounding, low effective sample

The deciding question is how far one user's treatment leaks into another user's outcome, and how long it persists. Contained leak plus enough clusters → cluster-randomise. Global leak with fast decay → switchback.

Failure modes to name in the review: carryover contamination. Detect by comparing the first minutes of a period against the rest; time-of-day confound, detect with an arm × hour interaction; understated variance, compute naive and HAC standard errors side by side, and if they differ by more than about 20%, the naive one is the wrong number to ship.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-9

How do you construct and validate surrogate metrics to measure long-term effects in short-duration experiments?

Answer

What I'd say first. A surrogate metric is only worth using if you can defend it as a causal proxy, not a correlate. So I'd state three assumptions up front: (1) there's a corpus of past experiments that ran long enough to observe the real outcome Y; (2) per-experiment treatment effects on the short-term metrics S and on Y are estimable; (3) the treatment's effect on Y is mediated by S, with no unmeasured direct path. If (3) fails, no amount of fitting saves you.

The construction is a two-stage regression, and the key move is that you fit it at the experiment level, not the user level. For each past experiment k you have a vector of short-term effects ΔS_k and a scalar long-term effect ΔY_k. Fit ΔY_k ≈ α·ΔS_k by weighted least squares, weighting each experiment by 1/Var(ΔY_k) so noisy long-term estimates don't dominate. The surrogate index is then S·α evaluated on the current experiment's users. You need dozens of experiments, not millions of users, because the unit of fit is the experiment.

Validation, ordered by how much it should change your mind:

StageWhat you doWhat you require
Mediation (Prentice)Regress Y on treatment W and S in historical unit-level dataDirect effect on W shrinks toward zero once S is in the model
Leave-one-experiment-outFit α without experiment k, predict ΔY_kOut-of-sample R² high enough to rank decisions, and no sign flips on experiments that were significant
Placebo controlsFeed in interventions with no plausible long-term pathPredicted effect ≈ 0

Sign flips are the failure that matters most: an R² of 0.7 with two sign flips on significant experiments is worse than useless, because it inverts a ship/no-ship call. I'd take a lower R² and zero flips over the reverse.

Hypothetical worked check: 40 past experiments, LOEO gives 40 out-of-sample predictions. If 12 were significant at p<0.05 and the surrogate gets all 12 directions right with R²=0.7, I'd use it to triage, not to make the final call. If it flips 2 of the 12, I'd go back to the corpus before trusting it.

Alternatives, and when not to build this.

  • Just run the long experiment. If you have the traffic and the calendar, a 90-day holdout is ground truth and beats any surrogate. Surrogates exist for when you can't wait.
  • A single correlated proxy. Much cheaper: pick the one short-term metric most correlated with Y historically. But correlation isn't surrogacy; a proxy that tracked Y in the past can be moved by an intervention that never touches the causal path.
  • Post-period holdout cohort. Ship to 99% and keep a 1% long-window holdout measuring Y. This doesn't block the experiment and gives a live calibration signal, at the cost of a slow, low-power read.
  • Don't build it if you run fewer than ~20 long experiments a year. The regression is underdetermined, you'll overfit α to a handful of points, and LOEO can look fine by luck. Also skip it when the decision is cheap and reversible: ship, measure, revert.

Failure modes.

  • Goodhart bypass: the intervention moves S without the causal path to Y. Push notifications raise 7-day opens and lower 90-day retention. Detected by placebo controls and by watching the direct effect over time.
  • Drift: α shifts with platform changes and seasonality. Recalibrate on rolling holdouts.
  • Underpowered corpus: with few experiments, LOEO R² is unstable and you can't tell a real surrogate from a lucky fit.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-10

How would you test a claim that the system depends on long-term holdouts?

Answer

The 90-second answer

The claim "we depend on long-term holdouts" is falsifiable, and you test it by asking what actually breaks when the holdout goes away. Two tests. First, does the holdout trajectory diverge from the sum of shipped experiment lifts? Second, does any decision change when you shrink or release it? If the reconciliation gap sits inside noise and no decision flips when you cut the holdout, the dependency is asserted, not demonstrated.

Test 1: reconciliation. Sum the claimed lifts of every experiment shipped in the window and compare against the holdout's measured change. A holdout that reads zero against a stack of positive claims is an instrument that costs money and returns nothing. The gap itself is the signal: interaction between features, novelty decay, and regression to the mean all show up here and nowhere else.

Test 2: staged release. Shrink the holdout 5% → 1% → 0% across quarters and watch whether any decision changes. Detection power scales with the holdout arm, so the cost of shrinking is a wider minimum detectable effect. Hypothetical numbers, 1M weekly users, 10% baseline conversion, α=0.05, 80% power:

HoldoutWeekly MDEQuarterly MDECost at +6% cumulative lift
5%0.39 pp0.11 pp0.30% relative conversion
1%0.85 pp0.23 pp0.06% relative conversion
0%——0

SE of the difference is sqrt(p(1-p)(1/n_h + 1/n_t)); at 5% the holdout arm dominates, so cutting it to 1% multiplies SE by √5. At 0% you fall back to pre/post comparison, which cannot separate a real cumulative effect from seasonality: that is the dependency, stated as a number.

Failure modes, and how you catch them.

  • Novelty decay. The gap is large in week one and decays. Plot the reconciliation gap by week since launch; if it trends to zero, the holdout's value was transient and the dependency claim is weaker than it looks.
  • Contamination. Holdout users get the feature through another surface: mobile app, API, partner integration. Join holdout assignment to feature-exposure events; a contamination rate above ~1% invalidates the arm.
  • Holdout as treatment. Users notice missing features and churn. Compare holdout churn and support-ticket rate against treatment; if they diverge, the control is no longer a control.
  • Seasonality confound on release. Once you drop to 0%, a Q4 spike looks like a cumulative win. Keep a permanent 1% floor as a seasonality control even after you "release" the rest.

Deciding criteria. Size the holdout from the smallest cumulative effect you must detect and the horizon you need it over: 0.1 pp quarterly needs ~5%; 1 pp quarterly is fine at 1%. Set duration from how long compounding takes to show, if the effect is supposed to accumulate over two quarters, a one-quarter holdout cannot test the claim. Weigh the withheld-lift cost against the value of the decisions the holdout changes; if it changes none, release it and say so.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-11

What would you measure before treating novelty and primacy effects as settled?

Answer

Assume the decision is ship/no-ship, the metric is a per-user rate you can read daily, and "settled" means the lift you'd ship on is the durable treatment effect rather than the transient response to change itself. Novelty inflates early lift; primacy suppresses it. Both decay over days to weeks, so no single pooled number separates them from the real effect. What you measure is the effect as a function of exposure history, not calendar time pooled.

In order:

  1. Lift indexed by time since first exposure, with a confidence interval per bucket (day 1, day 3, day 7, day 14) not one aggregate.
  2. The same curve split by prior exposure. Users seeing the change for the first time carry novelty; users who used the old version carry primacy. Pooling them averages a positive transient against a negative one and can land near zero while both are large.
  3. The slope, not just the level. If day-14 lift is within noise of day-7, the transient has washed out. If it is still falling, you have not measured steady state and the sign could still flip.
  4. Guardrails on the same axis. A novelty bump in the primary metric often hides a primacy dip in retention or task success; measure both per bucket.
  5. A pre-period trend or A/A run to bound how much day-to-day movement is noise before you attribute any of it to the treatment.
Python
# per-day lift, split by whether the user had used the product before
curve = (df.groupby(["day", "prior_exposure"])["metric"]
           .agg(["mean", "count"]))

Hypothetical output, to show the shape you are looking for:

daynew usersreturning users
1+14%-3%
3+9%+1%
7+4%+2%
14+1%+2%

The pooled day-1-to-3 number is +12%; steady state is +2%. A three-day test overstates the durable effect roughly sixfold, and the returning cohort's dip would have been invisible in the pool.

Trade-offs. A longer run costs traffic, delays the ship, and widens the window for unrelated changes to contaminate the comparison. A shorter window is defensible when the metric is one-shot with no repeat exposure (a single signup conversion, a one-time migration) or when every user is new by construction, so there is no primacy cohort to measure. Sequential or always-valid inference lets you stop early without the peeking bias, at the cost of wider intervals and a larger minimum detectable effect.

Failure modes. Peeking at significance during the novelty peak is the classic one: the test crosses threshold on day 2 and you ship the transient. Dilution is the quiet one, if most users never re-expose, the returning cohort is too small to detect primacy, and the curve looks clean because the effect you were worried about was never sampled. Survivorship biases the other way: users who churn after the change drop out of later days, pulling the curve upward. Detect all three by plotting the per-bucket counts next to the per-bucket lift; a shrinking denominator explains a rising mean.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-21

How would you brief product on why ramping and staged rollout delays a ship date?

Answer

What I'd actually say (first 90 seconds)

"The code is merged and could go to 100% today. I'm asking for five more days, and here's the trade: if this change breaks 0.5% of requests, we find it while it's hitting 1% of traffic instead of 100%. That's the difference between 600 failed requests and 60,000. Here's the ladder, here's what auto-aborts it, and here's the decision I need from you."

Then hand them three things: the ramp schedule with dates, the guardrail thresholds that trigger automatic rollback, and the lever. Accept the date, cut scope, or ship dark behind a flag.

Why it takes calendar days, not hours

The ladder isn't there to gather statistics: error rates resolve fast. To distinguish a 0.1% absolute increase over a 0.5% baseline at 95% confidence you need roughly 20,000 requests per arm, which at 1% of 20k rps (200 rps) is about 100 seconds. Two other constraints bind:

  1. Diurnal coverage. Traffic mix, key distribution and load shape change by hour. A stage shorter than 24h never sees the peak. Ramping at 02:00 and calling it green tests the trough.
  2. Slow failure modes. Memory leaks, connection-pool exhaustion, cache eviction under the real key distribution, and retry storms only appear after hours of real traffic. Extra traffic doesn't compress them.

The ladder I'd put in the brief

StageExposureDurationWhat it's for
11% (internal + canary)24hone full diurnal cycle; crashes, 5xx spikes
25%24hp99 latency to ±5 ms resolution
325%48ha weekday peak and a weekend trough
450%24h
5100%—

Five days. Code ready Tuesday → ship Monday.

Guardrails, stated as numbers so product knows it isn't open-ended: error rate >0.5% absolute over baseline for 5 min → auto-rollback; p99 >300 ms for 10 min → auto-rollback; connection-pool saturation >80% for 5 min → page.

The blast-radius arithmetic

At 20k rps, a bug hitting 0.5% of requests produces 100 failed requests/sec. Ten minutes from detection to rollback is 60,000 failures. The same bug at 1% exposure is 1 failed request/sec: 600 failures over the same window. That 100× is the number to put on the slide; it's the one product will repeat.

Alternatives, and when to skip the ramp

  • Ship dark behind a flag. Deploy to 100% with the flag off, then ramp the flag. Removes deploy risk entirely; the ramp still takes days.
  • Shadow traffic. Mirror production requests to the new path without serving responses. Gets sample size without user exposure; costs roughly double the backend load and needs request mirroring.
  • Progressive delivery tooling (Argo Rollouts, Flagger) automates the analysis and shortens human latency, not statistical or diurnal latency.
  • Skip it when blast radius is genuinely zero: internal-only tooling, a config change with instant rollback, or a flag that defaults off.

Failure modes to name in the brief

  • Stage shorter than 24h → you ship a peak-only regression. Detection: any stage duration under a day.
  • Guardrails that never fire → thresholds set so loose they can't trip. Detection: inject a fault in a game day and confirm the rollback actually fires.
  • The ramp that never ends → "temporarily at 25%" for six weeks. Detection: no end date on the ladder.
  • Analysis after the fact → you ramp, then read dashboards next week; the ramp completing already made the decision.

What product needs from the brief

Not the mechanism: the decision. Give them the date, the abort criteria, and the lever: accept the date, cut scope to ship Tuesday, or ship dark and ramp the flag. A brief that ends with "so we need five days" and no lever gets overruled; one that ends with a choice gets a decision.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-23

How does instrumentation as the dominant risk interact with rollback, and where do people ignore that?

Answer

What a strong candidate says first

Rollback reverts code. Instrumentation failure contaminates data. Those are different layers, and the interaction is that rollback is the wrong tool for the dominant risk: it stops the bleeding but leaves the wound. Three couplings matter:

  • Rollback doesn't un-write events. Wrong variant tags, cancelled analytics calls, mis-schema'd rows are already in the warehouse. Flipping the flag stops new contamination; it does nothing to the window already collected. You need a separate invalidation step that names the date range and the reason.
  • The rollback trigger is often computed from the broken pipeline. If the guardrail is a client-side error rate and the client-side stream is what failed, the guardrail goes quiet, not loud. A logging outage reads as "no harm."
  • Rollback can re-bucket users. If assignment depends on a config version, a bucketing salt, or a cached flag evaluation that the rollback deploy changes, users move buckets at the flip. That step is a pipeline artefact that looks like a treatment effect.

Worked trace (hypothetical figures)

Checkout experiment, 200k sessions/day, baseline purchase rate 8% → 16,000 purchases/day. Treatment shows 5.6% → 11,200/day, a 4,800/day deficit. The cause: the new payment page redirects to the provider, and the purchase_complete event fires after the redirect, so the call is cancelled. Nothing to do with the feature.

Guardrail is client-side error rate: 1.2% → 0.9%. Fewer events, fewer errors. It reads as improvement.

Detection took 3 days → 14,400 missing events. At T+3d the flag is flipped off. But client-side flag SDKs cache the evaluated value locally, so sessions that already resolved the flag keep treatment: say 25% of the next day's 200k sessions, 50k still on the broken path.

If the analysis window spans the flip, the metric steps at the deploy timestamp. That step is the pipeline, not the treatment.

Correct handling: cut the analysis at the flip, invalidate days 1–3, and confirm with a server-side source of truth. Order-database or payment-provider counts, flat at 16,000/day. Flat server-side orders against a 30% client-side drop is the signature of instrumentation, not a real conversion loss.

The trade-off

Three options, and the deciding question is where the bug lives:

OptionWhen it's rightCost
Roll back the treatmentBug is in treatment-only codeLeaves the contaminated window; doesn't fix shared logging
Fix forwardBug is in shared code (event schema, assignment service): rollback won't remove itPre-fix window unusable; needs a clean boundary
Invalidate and re-runGuardrail was blind, so you have no trustworthy readoutCalendar time

Where people ignore it

  • Treating rollback as a data-cleanliness tool. It isn't; invalidation is a separate step.
  • Assuming the guardrail is independent of the experiment's instrumentation. If it's computed from the same stream, an outage looks like safety.
  • Rolling back the treatment but not the logging change, because they shipped in separate deploys.
  • Not recording the rollback timestamp as an analysis boundary, so the window spans the discontinuity.
  • Forgetting cached assignment: the flip is partial, and the contamination window extends past it.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-22

What is the smallest experiment that would change your mind about when not to experiment?

Answer

The belief under test is "this change can't be decided by an experiment." The smallest experiment that would change my mind is a holdback: ship the change to everyone except a slice, keep measuring the metric I claimed was undetectable, and size the slice to the smallest effect I'd act on. If the holdback resolves that effect, the exemption was wrong.

Exemptions usually come from comparing the minimum detectable effect against the expected effect. That's the wrong comparison. The right one is MDE against the smallest effect worth acting on: the point where the rollout decision flips. Those differ by an order of magnitude. A copy change you expect to move conversion 0.05 pp is still worth shipping if it costs nothing and the smallest effect you'd act on is 0.2 pp.

Here is the sizing. Checkout conversion, baseline 4.0%, 250,000 sessions/week, two-sided α=0.05, 80% power. For a holdback fraction f over two weeks:

MDE = 2.80 × sqrt(p(1−p) × (1/n_holdback + 1/n_treat)), with p(1−p) = 0.0384.

  • f = 0.10 → 50,000 vs 450,000 → MDE 0.26 pp. Too coarse for a 0.2 pp decision.
  • f = 0.20 → 100,000 vs 400,000 → MDE 0.19 pp. Resolves it.

So the smallest experiment is a 20% holdback for two weeks. The change ships to 80% on day one; nothing is delayed, and the holdback is the only cost.

When a holdback is not allowed (a security patch, a legal obligation) the smallest experiment changes shape:

ApproachWhat it costsWhat it resolvesWhen it wins
Holdbackno delay; change ships to the restthe user-facing metricleaving a slice on old behaviour is safe
Proxy test (shadow traffic, synthetic canary)engineering to build the harnessa system metric, not a user metricexposing users is impermissible
Qualitative / monitoringnear zerodirection, not magnitudeeffect sits below any achievable MDE

Failure modes, and how each shows up:

  • Holdback too small. You get a non-result, not a null. Detect it before launch: pre-register the MDE; if the final CI spans the action threshold, the experiment decided nothing.
  • Spillover. Holdback users share inventory, a marketplace, or a social graph with treated users. Detect it by checking whether the holdback's own metric moves as the treated fraction grows.
  • Novelty. A two-week window overstates a durable effect. Detect it by plotting the effect by day; if it decays toward zero, you measured surprise, not value.

The decision rule: compute the MDE for the smallest effect you'd act on, not the effect you expect. If the MDE is below that threshold, run the holdback. If it is above, no experiment will decide it and you fall back to monitoring, but say that out loud, because "we can't test this" is usually a claim about the expected effect, and it is usually wrong.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-25

How would you document reporting an experiment so the next owner can operate it?

Answer

The doc has one reader: whoever inherits the experiment after you've moved on. Its job is to let them re-derive your decision and re-run or extend the test without asking you anything. I'd write it as a repo doc next to the analysis code, not a wiki page, and fill a fixed set of fields.

Core fields: the hypothesis and the decision it was meant to inform; the unit of randomization and the arms with their intended traffic split; the power calculation (baseline rate, MDE, alpha, power, resulting n per arm); dates as whole weeks; the SRM check; the primary metric with point estimate and CI; guardrails, each with a pre-declared threshold and the observed value; every deviation from the plan; and the decision, its owner, and the date.

Assumptions I'd state up front: the test is closed, the next owner has read access to the analysis tooling, and metric definitions live in the repo rather than in the doc.

Why each field earns its place. The SRM check is the gate: if the observed split doesn't match the intended one, the readout is uninterpretable and nothing downstream matters. Detect it with a chi-square test on the observed counts; the common convention is to alarm at p < 0.001. Without the MDE, a null result is ambiguous: the next owner can't separate "no effect" from "underpowered." They can recompute power from n and the observed variance, but only if you recorded the baseline. Guardrail thresholds have to be pre-declared, or a 2% latency regression reads as post-hoc.

Alternatives, and when a lighter record suffices. A dashboard annotation is enough when the decision is reversible and cheap: a copy tweak you can revert in a day. A wiki page works when the audience is non-technical and the method is standard. A repo doc is required when the result changes a default, a pricing rule, or anything another team builds on, because it's versioned and reviewable alongside the code.

Failure modes and how to catch them. An SRM that was never checked: run the chi-square yourself, one query. A report that says "variant won by 3%" with no interval: ask whether the CI crosses zero. A missing deviation log: diff the recorded dates and n against the original design doc.

Template:

Hypothesis / decision:
Unit of randomization:
Arms + intended split:
Power: baseline, MDE, alpha, power, n per arm
Dates (whole weeks):
SRM: observed split, chi-square p
Primary metric: point estimate, 95% CI
Guardrails: threshold -> observed
Deviations:
Decision + owner + date:

Worked arithmetic for the power row (hypothetical): baseline conversion 12%, MDE 10% relative (1.2pp absolute), alpha 0.05, power 0.80. n per arm = 2(z_{α/2}+z_β)² · p(1−p) / d² = 2 · (1.96+0.84)² · 0.12·0.88 / 0.012². Step by step: 1.96+0.84 = 2.80; 2.80² = 7.84; 2 · 7.84 = 15.68; 0.12·0.88 = 0.1056; 0.012² = 0.000144. So n per arm = 15.68 · 0.1056 / 0.000144 = 1.6558 / 0.000144 ≈ 11,500 per arm, ~23,000 total. Recording that number is what lets the next owner see a flat result and know it was powered to catch the effect they care about.

Curated: · Written: · Reviewed:

Difficulty: Medium