FA-74578 / Experiment statistics / Member archive
Revenue outlier capping: Percentile rank is rounded to nearest · case 03
Small experiments cap at a lower order statistic than the nearest-rank rule allows.
Case contract
The cap is the nearest-rank pct-th percentile of the pooled values of both arms: sorted pooled value at 1-based rank ceil(pct/100 * N), clamped to [1, N]. Every value is capped (not dropped) at that threshold and each arm mean is taken over all its users. Empty arm -> None. Return [cap, capped control mean, capped treatment mean].
Why this case matters
Capping whales keeps revenue metrics sensitive; a per-arm cap biases the comparison itself.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| revenue sample 11 | [20, 12.0, 12.5] | [40, 12.0, 22.5] | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗