Winsorization AB testing caps extreme metric values, usually at a high percentile, before you compare variants. For an ecommerce store, each visitor’s revenue above the cap is replaced by the cap. Use it when a few huge orders make revenue per visitor too noisy to trust, and skip it when the test is aimed at your biggest buyers.
This post is for ecommerce teams who use revenue per visitor in AB testing as a primary metric and have seen one large jewelry or furniture order swing the result. It shows when a cap helps, when it hides a real effect, and how to apply it.
- In one no-effect jewelry rerun, raw revenue per visitor showed a 46.77% win (p=0.0195). After a 99th percentile cap, the lift was 13.18% and not significant (p=0.1474).
- Across 5,000 no-effect tests, 35% of the raw wins disappeared once we capped the top 1% of buyers. The false positive rate stayed near 5%.
- That cap cut the standard error by 36%, which is worth about 2.4 times the traffic.
- When only bridal orders rose 40%, the cap kept just 16% of the effect. Do not cap a test aimed at your biggest buyers.
What Is Winsorization AB Testing?
Definition: To winsorize a revenue metric, pick a cap in advance, often the 99th percentile of buyers from recent history. Any visitor whose spend in the test is above that cap is counted at the cap, not at the raw amount. The visitor stays in the test, and values below the cap are unchanged.
The method is named after the biostatistician Charles P. Winsor. Dixon’s 1960 paper Simplified Estimation from Censored Normal Samples set out a practical way to use censored tail values in estimates (checked Dec 2026). Online experiments usually call the same idea capping.
Capping is not the same as trimming. Trimming removes the extreme visitors. Winsorizing keeps them and rewrites their value. A fixed dollar cap, such as $500 per visitor, is a third option that does not move from week to week.
Why Do AOV Outliers Distort a Revenue Test?
AOV outliers are the handful of orders that sit far above a store’s usual basket: engagement rings on a jewelry site, or a custom sofa on a furniture site. They are real sales, not tracking errors, and they can still ruin a test.
Revenue per visitor is total revenue divided by visitors, including people who buy nothing. One $9,199 order on 20,000 visitors adds $0.46 to the arm it lands in, so a few of those orders can look like a 30% or 40% lift. That is why AB test ideas that raise average order value should be read next to the order-value distribution, not just the average.
The average hides the shape. In our jewelry model the median order is about $182, but the mean is $257 because of the bridal tail, and the top 1% of buyers account for 16.6% of revenue. A test that reports only the average lets that tail speak for everyone else.
This is a measured problem, not a hunch. In their 2014 KDD paper Seven Rules of Thumb for Web Site Experimenters, Kohavi, Deng, Longbotham and Xu capped revenue per user at $10 per user per week at Bing (checked Dec 2026). Skewness fell from 18.2 to 5.3, and their sample-size rule of thumb dropped from 114,000 users to 9,700. For the same sample size, the capped metric could detect a change 30% smaller.
How Should You Cap Outliers in an AB Test?
To cap outliers in an AB test, set the cap before launch, apply the same cap to both arms, and cap the unit you analyze, usually revenue per visitor. Report the raw metric beside the capped one, plus conversion rate and average order value. The percentile must be taken among buyers. At a 2% conversion rate, the 99th percentile of all visitors is still $0, because 98% of people buy nothing.
A clean way to winsorize a revenue metric is:
- 1. Pull 8 to 12 recent weeks of pre-test data, excluding the test window.
- 2. Compute each visitor’s revenue, then the 99th percentile among visitors who bought.
- 3. Freeze that dollar cap in the metric definition before anyone is assigned.
- 4. Apply the same cap to every arm. Do not compute a fresh percentile inside each arm.
- 5. Keep raw revenue per visitor, conversion rate and average order value as companion metrics.
A historical cap is more stable than a cap estimated on the test itself. If you do use the test data, pool the arms and ignore the labels. Quentin Andre showed in 2021, in the Journal of Experimental Psychology: General, that excluding outliers within each arm can raise the false positive rate from 5% to as high as 20% in simulations, and up to 43% in a reanalysis of published data (checked Dec 2026). The paper is Outlier Exclusion Procedures Must be Blind to the Researcher’s Hypothesis. The same warning applies to a per-arm cap.

How Does Winsorization AB Testing Change Your Lift?
Winsorization AB testing cuts noise from the tail, and it also changes the number you estimate. The cap removes whatever part of the effect sits above the threshold. If typical buyers drive the change, you mostly gain precision. If the biggest buyers drive it, you can erase the signal.
We built a jewelry store model to make that trade visible. Each arm has 20,000 visitors and a 2% purchase rate. Among buyers, 98.5% place everyday orders (lognormal, median $180) and 1.5% place event orders (lognormal, median $2,800). In a 200,000-buyer draw the median order was $182, the mean was $257, the 99th percentile was $2,216, and the top 1% of buyers held 16.6% of revenue.
Here is one no-effect rerun from the 5,000-test set (index 1,473 in our notes) where the tail faked a win. Control had 393 orders and $81,230.79 in revenue: revenue per visitor $4.0615, average order value $206.69, largest order $1,124.54. Treatment had 412 orders and $119,219.70: revenue per visitor $5.9610, average order value $289.37, and four orders above $4,000, at $9,198.91, $7,874.00, $5,184.42 and $4,695.75.
The raw lift was $1.8994 per visitor, or 46.77% (SE $0.8131, z=2.336, p=0.0195). On a dashboard, that looks like a clear win. The 99th percentile of the 805 pooled buyers was $1,116.53. After both arms were capped there, treatment revenue per visitor fell to $4.5963 and control stayed at $4.0611. The capped lift was $0.5352, or 13.18%, with p=0.1474. It was no longer a win. Those four orders above $4,000 had added $1.1243 of the $1.8994 raw lift, which is 59%.

We then ran 5,000 tests for each of five effects, always capping at the 99th percentile of pooled buyers.
| Effect | Raw mean lift | Capped mean lift | Raw wins | Capped wins | SE drop |
| No real effect | $0.003 | $0.005 | 4.62% | 5.10% | 36.1% |
| Every buyer spends $15 more | $0.317 | $0.309 | 7.24% | 10.16% | 35.6% |
| Every buyer spends 10% more | $0.500 | $0.419 | 9.56% | 13.78% | 36.0% |
| Purchase rate 2.00% to 2.20% | $0.514 | $0.472 | 10.40% | 15.98% | 36.6% |
| Only bridal orders rise 40% | $0.385 | $0.062 | 6.06% | 5.92% | 40.8% |
A result was called a winner when the absolute Welch z exceeded 1.96. With no real effect, both methods stayed near a 5% false positive rate. Of the 231 raw wins in that set, 81 were no longer significant after the cap, which is 35%.
When every buyer spent $15 more, the cap kept 97.5% of the lift and found the effect more often (10.16% against 7.24%). Extra everyday orders were similar, with power rising from 10.40% to 15.98%. A 10% lift in every basket was a middle case: the cap kept 83.9% of the lift, close to the 16.6% of revenue in the top 1% of buyers, and power still rose. The 36% drop in standard error is worth about 2.4 times the sample.
The last row is the warning. When only bridal orders grew by 40%, the cap kept $0.062 of a $0.385 effect, which is 16%, and power did not improve. If you are testing a VIP offer, a bridal flow, or a furniture design consultation, raw revenue per visitor is the metric that still sees the change. Use conversion rate and a high-spender segment as companions, and read how to analyze AB test results before you ship on a capped number alone.
Read more: Confidence Interval AB Testing: Read the Range
Set Your Revenue Cap Before Launch
Freeze the cap, the primary metric and the guardrails before any shopper sees the variant. Use every CustomFit.ai feature free for 14 days.
When Should You Not Trim Outliers in an Experiment?
You should not trim outliers in an experiment, and you should not cap them either, when the change is meant to move your biggest buyers or when you need the uncapped dollar figure for a forecast. Trimming is harsher, because it drops visitors and can tilt the sample. In our worked example, trimming shrank the lift to 3.64% and removed eight treatment visitors and one control visitor. If you only need less noise, winsorize. If a value is a tracking bug, fix it with a rule that does not depend on the variant.
Skip or loosen the cap when:
- The hypothesis is about high-consideration buyers, such as a bridal offer, a trade discount or a custom furniture quote.
- Finance will use the lift to forecast revenue, not only to decide a ship or no-ship call.
- Raw and capped results disagree, and a look at the largest orders shows a real change in the tail, not one random whale.
- The tail is thin. If the top 1% of buyers hold only a few percent of revenue, a cap buys almost no precision.
Capping also does not replace other variance tools. CUPED variance reduction uses pre-test spend to cut noise without rewriting large orders. The two methods stack: cap first if the tail is heavy, then apply CUPED on the capped metric if you have stable pre-period data. Keep a raw revenue view and a count of orders above the cap in each arm. If the variant adds high-value orders the hypothesis predicted, the cap is hiding the thing you came to measure.

What Are 5 Proven Rules for Winsorization AB Testing?
Write these five rules into the test brief before launch, the same way you would lock a sample size or a guardrail.
| Rule | What to do |
| 1. Name the estimand | If the job is a ship decision on typical buyers, cap. If the job is a dollar forecast or a VIP bet, keep raw revenue per visitor. |
| 2. Freeze the cap in advance | Set a dollar cap from 8 to 12 weeks of history, or a 99th percentile among buyers, before assignment starts. |
| 3. Use one cap for every arm | Apply the same threshold to both sides. A per-arm percentile can inflate false winners. |
| 4. Cap the analysis unit | Winsorize revenue per visitor (or per user), not each line item, unless the unit of the test is the order. |
| 5. Report a set, not a single number | Show capped and raw revenue per visitor, conversion rate, average order value, and the count of orders above the cap. |
If the capped result and the raw result agree on the decision, you can ship with more confidence. If they disagree, do not average them. Look at the largest orders, check assignment and refunds, and decide whether the tail is the product working or a whale landing in one arm by chance. For a plain-language refresher on when a gap is large enough to trust, see CustomFit.ai’s guide to statistical significance in AB testing. To put the same revenue metric into an offer test, they also walk through revenue per visitor for D2C stores.
Pick One Rule and Start Testing
Begin with a frozen 99th percentile cap on revenue per visitor, and keep the raw metric next to it. Try CustomFit.ai free for 14 days, cancel anytime.
Summary
Winsorization AB testing is a simple cap on extreme revenue values, and for most store tests it is worth using. In our jewelry model it cut the standard error by 36% and removed 35% of the raw no-effect wins that were really tail noise, including one 46.77% dashboard win that fell to 13.18%. Use one pre-set cap on both arms, and keep raw revenue per visitor when the change is aimed at your biggest buyers or when you need the uncapped dollars.
FAQs
What is the difference between winsorizing and trimming outliers?
Winsorizing replaces values above a cap with the cap and keeps every visitor in the test. Trimming drops those visitors, so each arm can lose a different number of people. For ecommerce revenue, winsorizing is usually the better default, because a large order is still a real customer. Use trimming only when a record is a clear tracking error.
Should I cap each order or each visitor’s revenue?
Cap each visitor’s total revenue in the test, because that is the unit you assign and analyze. Capping each order can still leave one shopper with several large purchases that add up above the threshold. If your test assigns orders instead of visitors, cap the order. Write the unit into the metric definition before launch.
What percentile should I use to cap revenue?
Start with the 99th percentile among buyers in recent historical data, then freeze that dollar value. A 95th percentile cap is more aggressive and removes more of a real proportional effect. A 99.9th percentile cap does little on a short test. Do not retune the cap after you have seen the lift.
Does CUPED replace winsorization?
No. CUPED reduces variance by adjusting for pre-test spend, and a few huge orders in the test window can still dominate the result. The two methods work together. Cap first when the tail is heavy, then apply CUPED to the capped metric if you have a stable pre-period. Always keep the unadjusted raw metric in the report as well.
Can I change the cap after the test starts?
No. Changing the cap after you have seen results is another way to hunt for a significant number. Set the cap from historical data, write it in the brief, and leave it alone. If raw and capped already disagree, investigate the largest orders. You can plan a follow-up test with a looser cap, but do not edit the original analysis.
Does winsorization work on conversion rate?
No, not in any useful way. Conversion is already 0 or 1 for each visitor, so there is no extreme value to cap. Use winsorization on skewed continuous metrics such as revenue per visitor, items per order or session time. For conversion tests, focus on sample size, a fixed horizon or an always valid rule, and a clean assignment check.



