Sample Sizing and Multi-Region Experiment Design
Medium · Analytics & Experimentation · Data Scientist · Technical Screen
Problem Statement
An audio platform, PulseAudio, plans to evaluate a new playlist-ranking parameter across three markets—Canada, Germany, and Brazil—using Daily Listening Minutes per User as its primary metric.
Implement required_sample_size_per_variant to size each regional arm of the A/B test, while accounting for the broader experimental design considerations below:
def required_sample_size_per_variant(
baseline_mean: float,
std_dev: float,
mde: float,
power: float,
alpha: float,
) -> int:
...
- Sample Sizing (graded by code): Given historical mean
baseline_mean, user-level standard deviationstd_dev, an absolute minimum detectable effectmde(measured in the same units asbaseline_mean, not as a percentage), desired statistical powerpower, and two-sided significance thresholdalpha, compute the minimum whole number of users needed in each variant (Control and Treatment) for one market under a 50/50 split using standard normal quantiles. Always round up to the next integer so actual power is at leastpower. RaiseValueErrorifstd_dev <= 0,mde == 0, or eitheralphaorpowerfalls outside(0, 1). - Variance Reduction: Because per-user daily listening durations are skewed and heavy-tailed, identify a statistical adjustment that lowers estimator variance without introducing bias.
- Interim Peeking: Stakeholders want to check significance every 24 hours and stop as soon as a winner appears; explain why naive early stopping inflates Type I error and how to monitor safely.
- Cross-Market Decisions: Outline how to analyze and decide between a global launch and regional holdbacks when Canada exhibits a statistically significant gain while Brazil looks flat.
Examples
Example 1
Input: baseline_mean = 80, std_dev = 25, mde = 2, power = 0.8, alpha = 0.05
Output: 2453
Walk-through:
- A two-sided alpha = 0.05 test has normal cutoff z_alpha ≈ 1.9600, and power = 0.8 gives z_power ≈ 0.8416.
- Continuous per-arm size is 2 * (1.9600 + 0.8416)^2 * (25^2 / 2^2) ≈ 2452.77, which rounds up to 2453 users per variant.
Example 2
Input: baseline_mean = 80, std_dev = 25, mde = 4, power = 0.8, alpha = 0.05
Output: 614
Walk-through:
- Doubling mde from 2 to 4 minutes divides the continuous requirement by 4 to ≈ 613.19, which still rounds up to 614 (never down to 613).
Example 3
Input: baseline_mean = 80, std_dev = 25, mde = 2, power = 0.9, alpha = 0.05
Output: 3284
Walk-through:
- Raising power from 0.80 to 0.90 lifts z_power to ≈ 1.2816, increasing the continuous sample size to ≈ 3283.57 and returning 3284.
Example 4
Input: baseline_mean = 80, std_dev = 25, mde = 2, power = 0.8, alpha = 0.01
Output: 3650
Walk-through:
- Tightening alpha to 0.01 (0.005 in each tail, z_alpha ≈ 2.5758) yields ≈ 3649.68, rounding up to 3650.
Constraints
- Traffic is divided
50%Control /50%Treatment with independent user assignment. - Each market has enough active listeners that finite-population adjustments are ignored.
- Use exact standard normal quantiles (
N(0, 1)) for a two-sided difference-in-means z-test rather than rounded rules of thumb. mdeis an absolute shift in metric units;std_dev <= 0,mde == 0, oralpha,poweroutside(0, 1)must raiseValueError.
Step-by-step walkthrough
Understand the scenario and the four objectives
PulseAudio wants to evaluate a new playlist-ranking parameter across three markets (Canada, Germany, and Brazil) using Daily Listening Minutes per User (baseline average
80minutes/day, user-to-user standard deviation25minutes/day).The problem connects four experimentation objectives: 1. Sample sizing (graded by code): Implement
required_sample_size_per_variant(baseline_mean, std_dev, mde, power, alpha)to return the integer number of users needed in each variant (Control and Treatment) in a single market under a 50/50 traffic split. 2. Variance reduction (design): Propose a statistical adjustment to shrink estimator noise on skewed, heavy-tailed listening-duration data. 3. Interim peeking (design): Explain why checking p-values every 24 hours inflates false positives and how to monitor safely. 4. Cross-market decisions (decision): Decide how to act when Canada shows a statistically significant gain while Brazil looks flat.Notice from Example 1 (
(80, 25, 2, 0.8, 0.05) -> 2453) thatmde = 2is already given as an absolute difference in minutes (+2minutes/day), not a percentage lift. Because we test the difference between two group averages (mean_treatment - mean_control), shifting every user's baseline up or down by80minutes cancels out in subtraction—sobaseline_meandoes not appear in the formula.Derive the two-sample size formula from zero
Suppose we put
nusers in Control andnusers in Treatment, and individual users have standard deviationσ(std_dev). - The average ofnindependent users has varianceσ^2 / n. - Because Control and Treatment contain different users, the variance of their difference (mean_T - mean_C) is the sum of both variances:σ^2 / n + σ^2 / n = 2 * σ^2 / n. - Taking the square root gives the standard error (SE), which is the typical random wiggle ofmean_T - mean_C:SE = σ * sqrt(2 / n).Now picture two bell curves for the observed difference
mean_T - mean_C: 1. If the parameter change has zero effect: differences center at0. In a two-sided test with significance levelα(false-positive rate, such as0.05), we splitαequally between the upper and lower tails (α / 2 = 0.025each). We declare a win only if the observed difference lands beyond the cutoffz_alpha * SE, wherez_alphais the(1 - α / 2)normal cutoff (1.96forα = 0.05). 2. If the true effect equals the MDE (δ): differences center atδ. To achieve statistical powerpower(such as0.80, an 80% chance of crossing the cutoff when the true effect isδ), the centerδmust sitz_powerstandard errors (0.84for0.80power) above the rejection cutoff.Observed difference (mean_T - mean_C): No-effect curve (center 0) True-effect curve (center = MDE) .---. .---. .' '. .' '. .' '. | Cutoff .' '. .' '. | .' '. ------'-----------------'-----|----------------'-----------------'------> 0 |<-- z_power*SE ->| MDE |<-- z_alpha*SE | |<-------- (z_alpha + z_power) * SE ---->|Reading the total distance from
0toMDEright off the diagram gives:mde = (z_alpha + z_power) * std_dev * sqrt(2 / n) Square both sides: mde^2 = (z_alpha + z_power)^2 * std_dev^2 * (2 / n) Multiply by n and divide by mde^2: n = 2 * (z_alpha + z_power)^2 * std_dev^2 / mde^2Notice the
std_dev^2 / mde^2ratio: cutting the target MDE in half divides the denominator by4, so detecting half as big an effect requires 4 times as many users.Exact normal quantiles vs. the rule of thumb, and why we round up
Interviewers sometimes quote the mental shortcut
n = 16 * σ^2 / mde^2. Where does16come from? Atα = 0.05andpower = 0.80,2 * (1.9600 + 0.8416)^2 = 15.698, which rounds to16for rough mental arithmetic. However, on Example 1 (σ = 25, mde = 2), the shortcut gives16 * 625 / 4 = 2500, whereas the exact formula gives2452.77 -> 2453. Moreover, Examples 3 and 4 varypowerandalpha, so we must compute exact normal cutoffs rather than hardcoding16.Python's built-in
statistics.NormalDist(mu=0.0, sigma=1.0).inv_cdf(p)computes the inverse cumulative distribution function (quantile): given a probabilityp, it returns the cutoffzsuch that a fractionpof a standard normal curve lies to the left ofz. - Pass1.0 - alpha / 2.0to getz_alpha(two-sided cutoff). - Passpowerto getz_power(power cutoff).Finally,
raw_users_per_variantis almost always a decimal like613.19. We must round up withmath.ceil(...), neverround(...): you cannot assign0.19of a listener to a variant, and rounding down to613would dip slightly below the target power.Implement the sample size function
We first validate the parameters so zero MDE, non-positive standard deviation, or invalid probabilities fail with a clear
ValueError, then compute the quantiles, apply the formula step by step, and takemath.ceil.import math from statistics import NormalDist def required_sample_size_per_variant(baseline_mean: float, std_dev: float, mde: float, power: float, alpha: float) -> int: # Phase 1: Validate statistical parameters. # Note: baseline_mean is unused because mde is already an absolute difference (e.g. 2 minutes), not a % lift. if std_dev <= 0 or mde == 0: raise ValueError("std_dev must be positive and mde must be non-zero") if not (0 < alpha < 1 and 0 < power < 1): raise ValueError("alpha and power must be strictly between 0 and 1") # Phase 2: Look up cutoffs on a standard normal curve N(0, 1). standard_normal = NormalDist(mu=0.0, sigma=1.0) # A two-sided test splits the false-positive budget alpha equally across both tails (alpha / 2 each). z_alpha = standard_normal.inv_cdf(1.0 - alpha / 2.0) # z_power is how many standard errors past the rejection cutoff the true effect must sit to achieve target power. z_power = standard_normal.inv_cdf(power) # Phase 3: Compute continuous sample size per variant for a 50/50 split. # Comparing two independent group averages doubles the variance (sigma^2 / n + sigma^2 / n = 2 * sigma^2 / n). combined_z_squared = (z_alpha + z_power) ** 2 noise_to_signal_squared = (std_dev ** 2) / (mde ** 2) raw_users_per_variant = 2.0 * combined_z_squared * noise_to_signal_squared # Phase 4: Always round UP to the next whole user; rounding down would fall slightly short of target power. return math.ceil(raw_users_per_variant)Trace Example 1 and size the three-market experiment
Let's plug Example 1 (
baseline_mean = 80, std_dev = 25, mde = 2, power = 0.80, alpha = 0.05) into each variable:z_alpha = inv_cdf(1 - 0.05 / 2) = inv_cdf(0.975) = 1.95996 z_power = inv_cdf(0.80) = 0.84162 combined_z_squared = (1.95996 + 0.84162)^2 = 7.84888 noise_to_signal_squared = 25^2 / 2^2 = 625 / 4 = 156.25 raw_users_per_variant = 2 * 7.84888 * 156.25 = 2452.77 math.ceil(2452.77) = 2453 users per variantChecking the other examples: - Larger MDE (
mde = 4):raw = 613.19 -> 614. - Higher power (power = 0.90,z_power = 1.28155):raw = 3283.57 -> 3284. - Stricter alpha (alpha = 0.01,z_alpha = 2.57583):raw = 3649.68 -> 3650.To obtain an independently powered readout in all three markets (Canada, Germany, Brazil), we need
2,453per variant per market =4,906users per market (14,718total). If the team plans to claim success whenever any one of the three markets passesp < 0.05, testing three markets creates three chances for a false alarm; applying a Bonferroni correction (alpha = 0.05 / 3 = 0.0167per market) raises the requirement to3,272users per variant per market.Objective 2: Variance reduction with CUPED and outlier capping
Most of the
25-minute standard deviation comes from persistent listener habits (all-day background listeners vs. light commuters) rather than the ranking parameter itself. CUPED (Controlled-experiment Using Pre-Experiment Data) strips out that pre-existing habit noise using each user's average daily listening minutesXfrom the 2–4 weeks before randomization:Adjusted metric: Y_cuped = Y - theta * (X - mean(X)) Optimal weight: theta = cov(X, Y) / var(X) (estimated on pooled data) New variance: Var(Y_cuped) = Var(Y) * (1 - rho^2), where rho = corr(X, Y)Why is
Y_cupedunbiased? BecauseXwas logged before users were split into Control or Treatment, both groups share the exact same expected pre-experiment averageE[X], so subtractingtheta * (X - mean(X))cancels out in expectation while removing baseline habit differences. If pre- and in-experiment listening have correlationrho = 0.7, variance drops to1 - 0.49 = 51%of its original value, shrinking the required sample size from2,453to1,251users per variant! (Newly registered listeners without history getXimputed asmean(X), contributing zero adjustment.)Because audio durations are also heavy-tailed (a few devices leave streams playing overnight, inflating
std_dev), combine CUPED with winsorizing—capping per-user daily minutes at a threshold fixed ahead of the test, such as the historical 99.5th percentile—so extreme outliers cannot dominate variance.Objective 3: Daily monitoring every 24 hours without false-positive inflation
In a fixed-horizon test,
alpha = 0.05permits only one decision look at the end. If stakeholders checkp < 0.05every 24 hours and stop as soon as|z| > 1.96, random day-to-day swings get repeated chances to cross the threshold:Look schedule (nominal alpha = 0.05 at every peek): 1 look (end only) -> ~5.0% false-positive rate 2 looks -> ~8.5% false-positive rate 7 looks (1 week) -> ~16% false-positive rate 14 looks (2 weeks) -> ~22% false-positive rate (more than 4x too high!)How to monitor safely: - Group sequential testing with alpha spending: Pre-specify the 24-hour check schedule and apply an O'Brien–Fleming alpha-spending boundary (via Lan–DeMets). It spends tiny slivers of the 5% error budget on early checks (requiring massive z-scores early on) and preserves nearly all of the budget for the final look, holding total false-positive risk across all checks at 5%. - Always-valid sequential inference (mSPRT): If teams need continuous monitoring at arbitrary timestamps without a fixed look count, use mixture Sequential Probability Ratio Test confidence sequences, which stay statistically valid at every moment at the cost of wider intervals. - Separate operational health checks from winner-picking: Checking every 24 hours for broken telemetry, app crashes, or Sample Ratio Mismatch (when a 50/50 split unexpectedly logs 52/48 due to a bucketing defect) does not inflate primary-metric false positives, provided early stopping is strictly one-way (halting broken or harmful variants, never declaring an early win at raw
p < 0.05). Always run full 7-day multiples so weekday and weekend listening patterns balance out.Objective 4: Canada significant vs. Brazil flat — how to decide
When Canada is statistically significant (
p < 0.05) and Brazil looks flat (p > 0.05), avoid jumping immediately to "the parameter failed in Brazil": 1. Test whether the two markets actually differ: One region landing abovez = 1.96and another landing below1.96does not prove their true lifts differ. Run an interaction test directly oneffect_CA - effect_BR. Atn = 2,453per arm, one market's standard error is25 * sqrt(2 / 2453) = 0.71minutes, so the difference between two markets has standard errorsqrt(0.71^2 + 0.71^2) = 1.01minutes—meaning a true cross-market gap needs to be roughly2.8minutes to be detected reliably. 2. Inspect Brazil's confidence interval, not just its p-value: Atn = 2,453, Brazil's 95% confidence interval has half-width1.96 * 0.71 = ±1.40minutes. An estimate like+0.9 [-0.5, +2.3]is "non-significant," yet it remains completely compatible with a+2.0-minute gain! Remember too that 80% power means even a genuine 2-minute lift in Brazil will missp < 0.0520% of the time by chance. 3. Use stratified pooling for the overall estimate: Computemean_T - mean_Cwithin each market first, then combine them using market traffic weights (or inverse-variance weights). Pooling raw users across countries without stratifying injects between-country baseline noise and risks Simpson's paradox if bucketing proportions ever differ across regions. 4. Weigh global engineering simplicity against local listener experience: - Ship globally if Brazil's confidence interval rules out meaningful harm (e.g., lower bound above-0.3minutes) and local satisfaction/churn guardrails are healthy. Maintaining one unified ranking configuration avoids maintaining regional code forks. - Ship in Canada/Germany and hold Brazil back if Brazil trends negative, local guardrails (like track-skip rate or quick session exits) worsen, or catalog evidence explains the gap (such as regional genre metadata coverage in Brazil), then tune localized features before re-testing.Complete solution
from typing import Any, Dict, List, Optional, Set, Tuple import math from statistics import NormalDist def required_sample_size_per_variant(baseline_mean: float, std_dev: float, mde: float, power: float, alpha: float) -> int: # Phase 1: Validate statistical parameters. # Note: baseline_mean is unused because mde is already an absolute difference (e.g. 2 minutes), not a % lift. if std_dev <= 0 or mde == 0: raise ValueError("std_dev must be positive and mde must be non-zero") if not (0 < alpha < 1 and 0 < power < 1): raise ValueError("alpha and power must be strictly between 0 and 1") # Phase 2: Look up cutoffs on a standard normal curve N(0, 1). standard_normal = NormalDist(mu=0.0, sigma=1.0) # A two-sided test splits the false-positive budget alpha equally across both tails (alpha / 2 each). z_alpha = standard_normal.inv_cdf(1.0 - alpha / 2.0) # z_power is how many standard errors past the rejection cutoff the true effect must sit to achieve target power. z_power = standard_normal.inv_cdf(power) # Phase 3: Compute continuous sample size per variant for a 50/50 split. # Comparing two independent group averages doubles the variance (sigma^2 / n + sigma^2 / n = 2 * sigma^2 / n). combined_z_squared = (z_alpha + z_power) ** 2 noise_to_signal_squared = (std_dev ** 2) / (mde ** 2) raw_users_per_variant = 2.0 * combined_z_squared * noise_to_signal_squared # Phase 4: Always round UP to the next whole user; rounding down would fall slightly short of target power. return math.ceil(raw_users_per_variant)✅ Submit now — all tests should pass.
Intuition & how it works
Imagine trying to tell whether a new plant fertilizer adds 2 cm of height when individual plants naturally vary by 25 cm. Measuring a handful of plants tells you nothing because natural plant-to-plant variation easily swamps a 2 cm shift; averaging thousands of plants per group shrinks the random wobble of the group average (std_dev / sqrt(n)) until a 2 cm gap stands out clearly from luck. Power analysis works backward from that signal-to-noise ratio: given how noisy individual users are (std_dev), the smallest gain worth catching (minimum detectable effect, or MDE), our allowed false-alarm rate (significance level, alpha), and our desired catch rate when the gain is real (statistical power), we solve for the exact group size n that makes the random wobble small enough.
Guessing a sample size without this calculation either wastes weeks of user traffic or leaves the experiment too small to separate a real 2-minute lift from random luck. Relying on the memorized whiteboard shortcut 16 * std_dev^2 / mde^2 is also too coarse for an automated check: it rounds the normal-curve multiplier from 15.70 up to 16, returning 2,500 instead of 2,453, and breaks whenever power or alpha changes. Likewise, naively checking p < 0.05 every 24 hours multiplies false alarms, and misreading a non-significant p-value in one market as "zero effect" ignores how wide each market's confidence interval still is.
Let's walk through Example 1 (baseline_mean = 80, std_dev = 25, mde = 2, power = 0.80, alpha = 0.05):
1. Find the two normal-curve cutoffs using the quantile function (inv_cdf, which turns a probability into a standard-normal z-score): a two-sided alpha = 0.05 test puts 0.025 in each tail, giving z_alpha = inv_cdf(0.975) = 1.9600, while power = 0.80 gives z_power = inv_cdf(0.80) = 0.8416.
2. Combine cutoffs and variance: Comparing two equal-sized independent arms doubles the variance (2), so raw_n = 2 * (1.9600 + 0.8416)^2 * (25^2 / 2^2) = 2 * 7.8489 * 156.25 = 2452.77.
3. Round up: Because we cannot enroll 0.77 of a listener and 2,452 users would dip slightly below 80% power, math.ceil(2452.77) returns 2453 users per variant.
Complexity
- Time: O(1). Evaluating
NormalDist().inv_cdfuses a fixed-degree rational polynomial approximation with no loops over users, followed by a constant number of arithmetic operations andmath.ceil. - Space: O(1). Only a few scalar floating-point numbers (
z_alpha,z_power, intermediate ratios) are stored regardless of how large the resulting user count is.
Edge cases
baseline_meandoes not affect the answer: Becausemdeis already expressed as an absolute number of minutes (2),baseline_mean = 0andbaseline_mean = 80both require2,453users per variant;baseline_meanwould only enter ifmdewere specified as a percentage lift (whereabsolute_mde = pct_mde * baseline_mean).- Always rounding up (
ceil, neverround): Atstd_dev = 25, mde = 4(Example 2), the continuous formula yields613.19, which must round up to614(not613) to meet the 80% power guarantee. - Quadratic explosion for tiny effects: Because
mdeis squared in the denominator, shrinkingmdeto0.01 * std_devrequires156,978users per variant. - Scale invariance (
std_dev / mde): Only the noise-to-signal ratio matters, so(std_dev = 1, mde = 1)and(std_dev = 25, mde = 25)both return16. - Invalid statistical inputs:
std_dev <= 0,mde == 0, oralpha/poweroutside(0, 1)have no valid experimental meaning and raiseValueError. (A negativemde, representing a drop we want to detect, squares to the same positivemde^2.)
Common mistakes
- Using the
16 * sigma^2 / mde^2rule of thumb in code: That approximation assumesalpha = 0.05andpower = 0.80and still overshoots Example 1 (2,500vs.2,453). - Using a one-sided cutoff (
1 - alphainstead of1 - alpha / 2): Passing0.95(z = 1.645) instead of0.975(z = 1.960) under-sizes Example 1 at1,933users per variant. - Forgetting the factor of
2: Dropping2treats the control mean as a known constant with zero variance instead of an estimated sample average, returning1,227(half the true requirement). - Reporting total users instead of per-variant users:
2,453is the requirement for one arm in one market (4,906across both arms in one market,14,718across three markets). - Stopping early on raw 24-hour peeks or reading
p > 0.05as proof of zero effect: Unadjusted daily peeks push a 5% false-positive rate past 20% within two weeks, and a flat-looking market atn = 2,453still has a±1.40-minute 95% confidence interval.
Alternative approaches
- Exact noncentral t-distribution solver: Libraries like
statsmodels(TTestIndPower().solve_power) use the Student t-distribution instead of the normal curve to account for estimatingstd_devfrom the sample. At thousands of users per variant, the normal and t-cutoffs agree to four decimal places (1.9600vs.1.9605), differing by at most 1–2 users; the t-distribution matters mainly whenn < 30. - Bootstrap power simulation on historical logs: When daily listening minutes are heavily skewed or when CUPED (pre-experiment covariate adjustment) and outlier capping will be applied, resampling real historical users and injecting a synthetic
+2-minute treatment shift estimates empirical power directly without relying on parametric assumptions.
Follow-up questions
- How could you identify and prevent cross-market spillover when treatment exposure in one region alters control behavior in another? Direct user-to-user sharing across countries is typically small on an audio platform, so the main cross-market spillover channel is shared backend feedback loops—for instance, a global recommendation model retraining on treatment engagement and shifting popularity features seen by control listeners everywhere. You can detect this by checking whether the control group drifts away from pre-experiment trends or from an isolated holdout slice, and prevent it by isolating feature-logging and model-retraining pipelines per experimental arm. When social or geographic sharing inside local communities is strong, randomize by cluster (such as metropolitan area or social graph cluster) or by time-based switchbacks rather than whole countries, since having only 3 countries provides too few clusters to estimate cluster-level variance.
- Which short-term and long-term guardrail metrics should accompany engagement time so the team catches hidden retention damage? Pair direct retention outcomes—subscription cancellation rate, tier downgrades, auto-renew opt-outs, and 7-day / 28-day listener return rates—with fast-reacting listener satisfaction proxies that move weeks before billing churn surfaces, such as early track-skip rate (skipping within 15 seconds), empty-search or zero-play sessions, and artist/genre diversity. Include system guardrails like ranking p99 latency and playback start failures as well. Because subscription churn unfolds slowly across monthly billing cycles, keep a small long-term holdout group (e.g., 1–2% of traffic on the prior parameter setting) for 2–3 billing cycles after rollout to verify multi-month retention.
- Suppose serving the candidate ranker is GPU-heavy; how can you cut treatment traffic while preserving statistical power? First, reduce metric variance without adding treatment users: apply CUPED with pre-experiment listening history (
rho = 0.7cuts required sample size nearly in half, from2,453to1,251), cap extreme outliers, and use triggered analysis (evaluating only sessions that actually reached a surface where rankings differed, instead of diluting averages with unexposed listeners). Second, switch to an unequal traffic split (such as 20% treatment / 80% control): since estimator variance scales with1/n_T + 1/n_C, adding cheap control listeners lets you shrink the GPU-heavy treatment arm (for example,~1,800treatment users paired with~3,850control users matches the2,453 / 2,453standard error). Third, for early parameter screening, interleaving—blending tracks from the baseline and candidate rankers into a single playlist per listener and comparing within-user play credit—removes between-user variance and typically needs 10–50x fewer listeners before running a final A/B confirmation test.
Follow-up questions
- How could you identify and prevent cross-market spillover when treatment exposure in one region alters control behavior in another?
- Which short-term and long-term guardrail metrics should accompany engagement time so the team catches hidden retention damage?
- Suppose serving the candidate ranker is GPU-heavy; how can you cut treatment traffic while preserving statistical power?
Similar questions
- Causal Pitfalls in Observational Retention Regression
- Independent vs. Stratified Ad Placement in a 100-Item Feed
- Customer Support Costing, Metric Drops, and Order Defects
- Causal Evaluation of a Regional Feature Rollout
- Evaluating a Paid-Plan Trial Experiment
- Experiment Analysis Under Margin and Capacity Trade-Offs