Median
What Is the Median?
The median is the middle value in a sorted list of numbers, separating the higher half from the lower half of a dataset.
The median is a measure of central tendency used in statistics to describe the center of a data set. It represents the exact middle point: half of the data points are greater than the median, and half are smaller. In finance and economics, the median is often preferred over the mean (arithmetic average) when the data contains outliers or is skewed. For example, consider a room with nine factory workers and one billionaire. If you calculate the *mean* income, the billionaire's wealth will pull the average up astronomically, suggesting everyone in the room is rich. However, the *median* income will be the income of the 5th worker, which accurately reflects the typical financial status of the group. This property makes the median a robust statistic, meaning it resists the influence of extreme deviations. It provides a more "representative" value for distributions that are not perfectly symmetrical.
Key Takeaways
- The median is the middle number in a sorted dataset (ascending or descending).
- Unlike the mean (average), the median is not skewed by extremely high or low values (outliers).
- If there is an even number of observations, the median is the average of the two middle numbers.
- It is widely used in real estate (median home price) and income statistics (median household income) to provide a more accurate representation of the "typical" case.
- In trading, median price indicators can help identify the true trend direction by filtering out extreme price spikes.
- The median represents the 50th percentile of a distribution.
How to Calculate the Median
Calculating the median is a straightforward process, but it requires the data to be organized first. 1. **Sort the Data:** Arrange all the numbers in the set from smallest to largest (or largest to smallest). 2. **Find the Middle:** * **Odd number of data points:** The median is the number exactly in the middle. If there are 5 numbers, it is the 3rd one. Formula: $(n + 1) / 2$. * **Even number of data points:** There is no single middle number. Instead, take the two numbers in the middle, add them together, and divide by 2. **Example (Odd Set):** {3, 1, 9, 5, 7} Sorted: {1, 3, **5**, 7, 9} Median: 5 **Example (Even Set):** {10, 20, 30, 40} Middle numbers: 20 and 30. Average: (20 + 30) / 2 = 25. Median: 25.
Median vs. Mean vs. Mode
Understanding the difference between these three measures of central tendency is crucial for data analysis.
| Measure | Definition | Best For | Sensitivity to Outliers |
|---|---|---|---|
| Mean | Arithmetic average (Sum / Count) | Symmetric distributions, mathematical operations | High (Very sensitive) |
| Median | Middle value | Skewed distributions (Income, Home Prices) | Low (Robust) |
| Mode | Most frequent value | Categorical data, identifying peaks | None |
Real-World Example: Home Prices
Real estate reports almost always cite the "median home price" rather than the average. Let's see why. Imagine a small neighborhood with 5 houses sold recently.
Use in Trading: Median Price Indicator
In technical analysis, traders use the median price to filter out "noise." A standard bar chart uses the Close price or a simple average. However, the Median Price indicator is calculated as: $$ \text{Median Price} = \frac{\text{High} + \text{Low}}{2} $$ This is technically the midpoint of the daily range, not the statistical median of all trades, but it serves a similar purpose. It focuses on the center of the trading activity for that period. **Applications:** * **Trend Identification:** Moving averages calculated on the Median Price often produce smoother lines than those based on the Close price, as they are less affected by a sudden last-minute spike or drop at the closing bell. * **Alligator Indicator:** Bill Williams' Alligator indicator uses smoothed moving averages of the Median Price to identify trend formation. * **Support/Resistance:** The midpoint of a large candle often acts as an intraday support or resistance level.
Advantages and Disadvantages
**Advantages:** * **Robustness:** Highly resistant to outliers and anomalies. * **Representativeness:** Gives a better idea of the "typical" value in skewed datasets (like wealth distribution). * **Clarity:** Easy to understand and interpret. **Disadvantages:** * **Mathematical Limitations:** Harder to use in complex algebraic formulas compared to the mean. * **Data Loss:** Ignores the actual values of the outliers, which in some contexts (like risk management or insurance) might be the most important part of the data.
FAQs
The average (mean) is the sum of all numbers divided by the count. The median is the middle number. The average changes significantly if you add one extremely large or small number, while the median usually stays the same.
Use the median when your data has outliers (extreme values) or is skewed. Common examples include house prices, salaries, and household income. Use the mean for symmetric distributions like height or test scores.
Yes. In a perfectly symmetrical distribution (like a normal distribution or bell curve), the mean, median, and mode are all located at the exact same point in the center.
In trading, the "Median Price" usually refers to the midpoint of the day's range: (High + Low) / 2. It is used to smooth out indicators and identifying trends without the noise of the closing price, which can be manipulated or volatile.
If you have an even number of data points, you take the two middle numbers, add them together, and divide by two. For example, the median of 2, 4, 6, 8 is (4 + 6) / 2 = 5.
The Bottom Line
The median is a powerful statistical tool that provides a realistic view of the "middle" of a dataset, stripping away the distorting effects of outliers. While the arithmetic mean is useful for mathematical modeling, the median is often the superior metric for understanding real-world economic conditions, such as housing affordability and income equality. For traders and investors, using median-based indicators can help filter out market noise and volatile price spikes, offering a clearer picture of the underlying trend. Whether you are analyzing economic reports or configuring technical indicators, knowing when to trust the median over the average is a key skill in data literacy.
Related Terms
More in Technical Analysis
At a Glance
Key Takeaways
- The median is the middle number in a sorted dataset (ascending or descending).
- Unlike the mean (average), the median is not skewed by extremely high or low values (outliers).
- If there is an even number of observations, the median is the average of the two middle numbers.
- It is widely used in real estate (median home price) and income statistics (median household income) to provide a more accurate representation of the "typical" case.