How to use this calculator
The weighted percentile sorts values and returns the first value whose cumulative positive weight reaches the requested fraction of total weight.
- Enter Values in order, Matching weights, Percentile (0–100). Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
How Weighted percentile calculator works
The weighted percentile sorts values and returns the first value whose cumulative positive weight reaches the requested fraction of total weight.
Inputs and units
- Values in order: Values are finite observations or ordered scores.
- Matching weights: Weights must match the values, be nonnegative, and have a positive total; zero-weight values do not affect the percentile.
- Percentile (0–100): Percentile is a percentage from 0 to 100.
Formula and method
Sort (xᵢ,wᵢ) by xᵢ; choose the first xᵢ with cumulative weight ≥(p/100)Σwᵢ.
Worked example
Values 10,20,30,40 with weights 1,1,5,1 have total weight 8. At the 50th percentile, target weight 4; cumulative weight reaches 7 at 30, so the result is 30.
Interpreting the result
This is a discrete cumulative-weight rule, not interpolated quantile. At p=0 it returns the smallest value with positive weight; at p=100 it returns the largest positive-weight value.
Assumptions and limits
Weights must be finite and nonnegative with positive total. Different weighted-quantile definitions can interpolate differently; use this stated cumulative rule for reproducibility.
Frequently asked questions
Does a zero-weight value affect the result?
No. It is skipped in the cumulative-weight selection.
Is this the same as an unweighted percentile?
Only when all observations have equal weights and the selected convention aligns; interpolation conventions can differ.
How do I use the Weighted percentile calculator?
Enter Values in order, Matching weights, Percentile (0–100). Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of Weighted percentile?
Values 10,20,30,40 with weights 1,1,5,1 have total weight 8. At the 50th percentile, target weight 4; cumulative weight reaches 7 at 30, so the result is 30.
What does the Weighted percentile calculator calculate?
The weighted percentile sorts values and returns the first value whose cumulative positive weight reaches the requested fraction of total weight.