Median

Technical Analysis
beginner
6 min read
Updated Mar 6, 2026

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 fundamental measure of central tendency used in statistics and data science to describe the exact center of a quantitative data set. It represents the specific middle point of a distribution where precisely half of the data points are numerically greater than the median, and the other half are numerically smaller. In the world of finance, economics, and technical trading, the median serves as a critical alternative to the "arithmetic mean" (the simple average), providing a more realistic anchor for decision-making when dealing with volatile or unevenly distributed data. The primary advantage of the median is its "robustness." In many financial datasets, a few extreme data points—known as outliers—can drastically distort the mean, making it a poor representation of the "typical" case. For example, if you are analyzing the wealth of ten people in a room and one of them happens to be a multi-billionaire, the *mean* wealth will suggest that everyone in the room is a multi-millionaire, which is factually misleading. However, the *median* wealth will remain the income of the person in the middle of the sorted list, accurately reflecting the financial reality of the group. This resistance to extreme deviations makes the median an indispensable tool for analyzing real-world economic conditions, such as housing prices, household incomes, and stock market volume. Whenever a distribution is "skewed"—meaning it has a long tail of very high or very low values—the median is almost always the preferred metric for identifying the true center of gravity of the data. It allows analysts and traders to filter out the noise of anomalous events and focus on the core behavior of the market.

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 the Median Is Calculated: A Rigorous Approach

Calculating the median is a straightforward process that relies entirely on the sequential organization of data points rather than their aggregate sum. Unlike the arithmetic mean, which is calculated by adding all numbers and dividing by the total, the median requires data to be meticulously sorted first. This focus on position over magnitude gives the median its unique properties. Here is the mechanical approach used by statisticians: Step 1: Sort the Data Set The most critical step is arranging all numbers in an ordered sequence, typically from smallest to largest (ascending). Without this sorting process, the "middle" number has no statistical meaning. In massive datasets, this sorting phase is the essential foundation for revealing the distribution's true structure. Step 2: Identify the Central Observation The method for identifying the median depends on whether the total number of observations (n) is odd or even: * Odd number of data points: The median is the single number sitting exactly in the middle of the sorted list. In a set of 7 numbers, the median is the 4th number. The position is found using the formula (n + 1) / 2. This perfectly divides the population into two equal halves. * Even number of data points: There is no single middle number. Instead, the median is calculated by identifying the two numbers occupying the middle positions, adding them together, and dividing by 2. This result represents the precise midpoint between the two central observations. The "Interpolated" Logic: In advanced applications dealing with grouped data or large-scale surveys, the median can be "interpolated" using a linear formula to provide an even more precise estimate of the 50th percentile. This involves adjusting the result based on the cumulative frequency of preceding classes. While the simple (a+b)/2 method is standard for most financial tasks, interpolation ensures the median remains a high-resolution tool for complex data. This procedural approach ensures the resulting median value is a robust representation of the center of the dataset. By focusing on position rather than absolute magnitude, the median remains a reliable indicator of the "typical" case, regardless of how extreme or "skewed" the values at the far ends of the list might be.

Median vs. Mean vs. Mode

Understanding the difference between these three measures of central tendency is crucial for data analysis.

MeasureDefinitionBest ForSensitivity to Outliers
MeanArithmetic average (Sum / Count)Symmetric distributions, mathematical operationsHigh (Very sensitive)
MedianMiddle valueSkewed distributions (Income, Home Prices)Low (Robust)
ModeMost frequent valueCategorical data, identifying peaksNone

The Impact of Skewness on Financial Data

In financial markets, data is rarely "normal" or perfectly symmetrical. Instead, it often exhibits "positive skewness," where a few stocks or a few days of trading account for the vast majority of gains or volume. When a distribution is positively skewed, the mean will be significantly higher than the median. This is a common trap for beginner investors who look at the "average" return of a sector and assume they will achieve that same result. In reality, the median return is often much lower, because a few "super-winner" stocks are pulling the average up. By focusing on the median, a trader gets a more sober and realistic view of what the "typical" trade or investment in that category actually looks like.

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.

1Sale Prices: $200k, $210k, $220k, $230k, $5,000k (a luxury mansion).
2Step 1 (Sort): $200k, $210k, $220k, $230k, $5,000k.
3Step 2 (Calculate Mean): ($200+210+220+230+5000) / 5 = $1,172k.
4Step 3 (Calculate Median): The middle value is $220k.
Result: The Mean ($1.17M) is misleading; it suggests a typical house costs over a million dollars. The Median ($220k) accurately represents what a buyer can expect to pay.

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.

At a Glance

Difficultybeginner
Reading Time6 min

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.

Congressional Trades Beat the Market

Members of Congress outperformed the S&P 500 by up to 6x in 2024. See their trades before the market reacts.

2024 Performance Snapshot

23.3%
S&P 500
2024 Return
31.1%
Democratic
Avg Return
26.1%
Republican
Avg Return
149%
Top Performer
2024 Return
42.5%
Beat S&P 500
Winning Rate
+47%
Leadership
Annual Alpha

Top 2024 Performers

D. RouzerR-NC
149.0%
R. WydenD-OR
123.8%
R. WilliamsR-TX
111.2%
M. McGarveyD-KY
105.8%
N. PelosiD-CA
70.9%
BerkshireBenchmark
27.1%
S&P 500Benchmark
23.3%

Cumulative Returns (YTD 2024)

0%50%100%150%2024

Closed signals from the last 30 days that members have profited from. Updated daily with real performance.

Top Closed Signals · Last 30 Days

NVDA+10.72%

BB RSI ATR Strategy

$118.50$131.20 · Held: 2 days

AAPL+7.88%

BB RSI ATR Strategy

$232.80$251.15 · Held: 3 days

TSLA+6.86%

BB RSI ATR Strategy

$265.20$283.40 · Held: 2 days

META+6.00%

BB RSI ATR Strategy

$590.10$625.50 · Held: 1 day

AMZN+5.14%

BB RSI ATR Strategy

$198.30$208.50 · Held: 4 days

GOOG+4.76%

BB RSI ATR Strategy

$172.40$180.60 · Held: 3 days

Hold time is how long the position was open before closing in profit.

See What Wall Street Is Buying

Track what 6,000+ institutional filers are buying and selling across $65T+ in holdings.

Where Smart Money Is Flowing

Top stocks by net capital inflow · Q3 2025

APP$39.8BCVX$16.9BSNPS$15.9BCRWV$15.9BIBIT$13.3BGLD$13.0B

Institutional Capital Flows

Net accumulation vs distribution · Q3 2025

DISTRIBUTIONACCUMULATIONNVDA$257.9BAPP$39.8BMETA$104.8BCVX$16.9BAAPL$102.0BSNPS$15.9BWFC$80.7BCRWV$15.9BMSFT$79.9BIBIT$13.3BTSLA$72.4BGLD$13.0B