Winsorized Metric A/B Test (Capped Welch t and Relative Lift)
Revenue and similar metrics have a few extreme users who make A/B test results noisy. Winsorization caps values above a high percentile, and optionally below a low one, before comparing the variants, which reduces variance at the cost of measuring the difference in capped rather than raw means.
매출 같은 지표에는 극단적인 소수 사용자가 있어 A/B 시험 결과가 흔들립니다. 윈저화는 높은 백분위수 위의 값(필요하면 낮은 백분위수 아래 값도)을 그 경계값으로 바꾼 뒤 비교해 분산을 줄이며, 대신 원래 평균이 아니라 상한을 둔 평균의 차이를 추정합니다.
Does the treatment change a heavy-tailed metric once a handful of extreme values are kept from dominating the comparison?
극단값 몇 개가 비교를 좌우하지 않게 막았을 때, 꼬리가 두꺼운 지표에서 처치가 효과를 냈을까요?
The caps are computed from the pooled data or from the control group, values beyond them are set to the cap, and Welch's t test compares the capped means. The difference and the relative lift are reported with confidence intervals, together with the share of users capped in each variant, the uncapped result and how much capping reduced the variance.
When to use Winsorized Metric A/B Test (Capped Welch t and Relative Lift)
- The metric is skewed, such as revenue, time spent or order value
- A few extreme users make the raw comparison unstable
- The treatment is not expected to act mainly through the extreme tail
When to use something else
- You want a robust comparison of trimmed rather than capped means: use Yuen's Trimmed Means t Test
- The metric is a ratio of sums such as revenue per session: use Ratio-Metric A/B Test (Delta Method)
- You have a pre-period covariate to reduce variance: use CUPAC (Machine-Learning Predicted Covariate Adjustment)
Assumptions and requirements
- Users are independent and randomly assigned
- Caps estimated from the data are treated as fixed
- The treatment does not change who is capped much; check the capped shares
What the analysis reports
- Capping thresholds and share capped per variant
- Capped means, difference with confidence interval and Welch t test
- Relative lift with delta-method interval
- Uncapped comparison and variance reduction
How to report it
After capping at the 99th percentile, the treatment mean was [value] versus [value] for control, a difference of [value] (95% CI [value] to [value]), Welch t([value]) = [value], p = [value]; relative lift [value]%.
Related methods
- Welch's t-test
- Yuen's Trimmed Means t Test
- Ratio-Metric A/B Test (Delta Method)
- CUPAC (Machine-Learning Predicted Covariate Adjustment)
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with SciPy at a stated tolerance of 1e-9.
독립 계산. SciPy 대조 참조 시험 1건 통과(허용오차 1e-9).
Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.
허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.
Run Winsorized Metric A/B Test (Capped Welch t and Relative Lift) on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable and a grouping variable
- Price
- 250 credits for one analysis up to 10,000 rows (complexity level 2); larger or wider data costs more. Optional methodologist review: 1200 credits.
- Checking
- Compared with independent computations
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.