Winsorized Mean Calculator workspace
- Input observations
- 5
- Used in result
- 5 / 5
- Method
- 1 replaced at each tail (20% per tail; 2 total)
Step-by-step calculation
- 1
Sort the 5 observations from smallest to largest: 1, 2, 3, 4, 100.
- 2
Use k = floor(n × p / 100) = floor(5 × 20 / 100) = 1 observations at each tail.
- 3
Replace the 1 lowest values with the next retained value 2, and the 1 highest values with 4.
- 4
Add the winsorized values to get 15, then divide by all 5 observations: x̄ᵥ = 15 / 5 = 3.
Inspect sorted observations5 rows
| # | Original | Used value / group size | Contribution / status |
|---|---|---|---|
| 1 | 1 | 2 | Set to 2 |
| 2 | 2 | 2 | Unchanged |
| 3 | 3 | 3 | Unchanged |
| 4 | 4 | 4 | Unchanged |
| 5 | 100 | 4 | Set to 4 |
A clearer way to calculate a robust mean
Retains every row
Unlike trimming, winsorizing keeps the original sample size.
Boundary replacement
Tail observations are capped at the nearest retained values.
See each change
Compare sorted original values with their winsorized values.
What is a winsorized mean calculator?
A Winsorized mean is an arithmetic average of data after selected lower- and upper-tail observations have been replaced by the nearest retained boundary values. Unlike a trimmed mean, it keeps the original number of observations in the calculation.
Important terms
- Winsorization
- A transformation that caps selected tail values at interior order statistics.
- Winsor count k
- The number of values replaced in each tail, calculated from the per-tail percentage.
- Lower boundary
- The smallest value not selected for replacement.
- Upper boundary
- The largest value not selected for replacement.
When this method is useful
- Limit the leverage of extreme observations while retaining the full sample count.
- Compare a robust mean with a trimmed mean on the same data.
- Prepare data for a summary when a stated capping rule is appropriate.
- Inspect how boundary replacement changes a sample average.
Formula and variables
- xᵢ⁽ᵂ⁾
- ith value after Winsorization
- n
- original number of observations, unchanged
- p
- percentage Winsorized in each tail
- k
- number replaced at each end
After sorting, replace the k smallest observations by x₍k+1₎ and the k largest by x₍n−k₎. Average all n transformed values. For tied boundary values, the displayed original positions remain visible even when replacement leaves a value numerically unchanged.
Domain note: Enter 1–50 finite values and a per-tail percentage from 0 through 50. The count is k = floor(n × p / 100); the calculator rejects settings that leave no interior boundary values.
How to use this calculator
- 1
Sort the input observations from smallest to largest.
- 2
Calculate k = floor(n × p / 100) replacements per tail.
- 3
Replace lower-tail values with the lowest retained value and upper-tail values with the highest retained value.
- 4
Add all n Winsorized values and divide by the unchanged sample size.
Step-by-step examples
Example 1
Problem: Find the 20% Winsorized mean of 1, 2, 3, 4, and 100.
Substitution: Replace 1 by 2 and 100 by 4; (2 + 2 + 3 + 4 + 4) / 5
Result: 3
Both extremes are capped at the nearest retained values, and all five observations remain in the average.
Example 2
Problem: Winsorize 10% per tail for 1 through 10.
Substitution: k = floor(10 × 10 / 100) = 1; replace 1 by 2 and 10 by 9; 55 / 10
Result: 5.5
In this symmetric sequence, Winsorization leaves the mean unchanged.
Example 3
Problem: Apply 0% Winsorization to 2, 4, and 9.
Substitution: (2 + 4 + 9) / 3
Result: 5
With k = 0, no values are changed and the result equals the ordinary mean.
Rules, edge cases, and related ideas
Replace, do not remove
The original sample size stays constant while selected tail values are set to boundary values.
Boundaries come from the data
The replacements are the nearest retained order statistics, not arbitrary cutoffs.
State the tail convention
This calculator applies p to each tail and floors n × p / 100 to an integer count.
Edge cases and limitations
- At 0%, the result is the ordinary arithmetic mean.
- At least one interior observation must remain to define both boundaries.
- Tied values can make a replacement numerically identical to the original observation.
- Winsorized and trimmed means can differ because one retains replaced rows and the other removes them.
How this differs from a related concept
Trimming excludes tail observations and averages fewer values. Winsorization caps tail observations and averages all original rows. Both methods reduce the direct influence of extremes but implement different estimators.
Understand the result
Winsorization reduces how strongly extreme tail values affect the mean by moving them to interior boundary values. It retains all rows, but it changes their values; the result should be reported with the chosen tail percentage and rule. Winsorization is not evidence that an extreme observation is invalid, and its suitability depends on the analysis.
Common mistakes
- Treating Winsorization as deletion of outliers.
- Using a total percentage when the calculator asks for a per-tail percentage.
- Assuming replacement means clipping to a fixed external threshold.
- Forgetting to report the Winsorization percentage and sample convention.
Frequently asked questions
What is a Winsorized mean?
It is the mean of data where selected low and high tail values have been replaced by their nearest retained boundary values.
Does Winsorization remove data?
No. It changes selected tail values but retains all observations in the sample size and average.
How are values replaced here?
After sorting, k = floor(n × p / 100) low values are set to the lowest retained value, and k high values to the highest retained value.
How does it differ from a trimmed mean?
A trimmed mean discards selected tail observations; a Winsorized mean replaces them and continues averaging all n values.
Can the Winsorized mean equal the regular mean?
Yes. This can occur when no observations are replaced, or when the tail changes balance symmetrically.