Weighted Median

Calculate the weighted median by entering values and their corresponding weights.

Value Weight

Result

-.---

Formula - The weighted median considers the weight of each value. Values are sorted by value, then the cumulative weight is calculated until it exceeds half the total weight.

Batch Import - You can paste multiple values or weights separated by spaces. They will be automatically distributed across the input fields.

When to use weighted median - Use weighted median when different data points have different importance or frequency. Common in statistics, economics, and data analysis.

Formula

Weighted Median Formula

To calculate the weighted median:

Weighted Median = Value where Σ(Weight) ≥ 50% of total weight
Calculation example

Values: 2 (weight 1), 4 (weight 2), 6 (weight 3). Total weight = 6. Weighted median = 6.

The values are sorted by value, then the cumulative weight is calculated.

What is the weighted median

What is the Weighted Median?

The weighted median is a measure of central tendency that considers the importance (weight) of each value.

Unlike the simple median, where each value is equally important, the weighted median assigns different significance to each data point.

The weighted median is frequently used in statistics, economics, image processing, and data analysis.

Examples

Applications of the Weighted Median

The weighted median is essential in many scenarios:

  • Survey analysis: When analyzing survey responses weighted by demographic factors.
  • Image processing: In digital image processing, the weighted median filter is used for noise reduction.
  • Financial data: When calculating typical transaction values, weighted by volume or importance.
Common questions

Frequently asked questions about the weighted median

What is the difference between median and weighted median?
The simple median gives all values the same importance. The weighted median considers the importance (weight) of each value - values with higher weight have more influence.
When should I use the weighted median?
The weighted median is suitable when individual values represent different sized groups or have different importance, e.g., for surveys with different demographic group sizes.
How does the weighted median differ from the weighted average?
Both consider weights, but the weighted median is more robust against extreme values. While the weighted average calculates with exact values, the weighted median finds the middle value.
Is there an Excel function for the weighted median?
Excel has no direct function for the weighted median. You can calculate it with sorting and cumulative sum of weights, or use this online calculator.
More tools

More calculators

Discover our other calculators for different types of calculations.