![]() | ||
In statistics, a weighted median of a sample is the 50% weighted percentile. It was first proposed by F. Y. Edgeworth in 1888. Like the median, it is useful as an estimator of central tendency, robust against outliers. It allows for non-uniform statistical weights related to, e.g., varying precision measurements in the sample.
Contents
Definition
For
Properties
Weighted median of a set partitions that set in two halves such that sum of weights in each partition is as equal as possible.
If weights of all numbers in the set are equal then median is same as weighted median.
When set has even number of elements, we will have lower weighted median and upper weighted median instead of a single element as median.
Example
Consider the set of numbers
Algorithm
Weighted median can be computed by sorting the set of numbers and finding the smallest numbers which sums to half the weight of total weight. This algorithm takes