When researchers collect data – whether from a community survey, a census, or a classroom test – they need a reliable way to identify the center of that data. One of the most dependable tools for this is the median: the value that sits exactly in the middle of an ordered dataset, dividing it into two equal halves. Unlike the mean (arithmetic average), the median is not thrown off by extreme values, making it especially valuable in social research where outliers are common. Understanding how to calculate it – and when to use it – is a foundational skill in data analysis.
Table of Contents
- What is the median?
- Median for ungrouped data
- Steps to find the median of ungrouped data
- Worked example: odd number of observations
- Worked example: even number of observations
- Median for grouped data
- Steps to find the median of grouped data
- Worked example: grouped data
- Why the median matters in social research
- Median vs. mean: choosing the right measure
- Limitations of the median
What is the median?
The median is a measure of central tendency that identifies the middle value in a dataset arranged in ascending or descending order. As Laerd Statistics explains, the median is the middle score for a set of data that has been arranged in order of magnitude, and it is notably less affected by outliers and skewed data than the mean. Exactly half the observations fall below it, and half fall above it – which is why it is described as a positional average rather than a calculated one.
According to EBSCO’s Research Starters on descriptive statistics, measures of central tendency – including the mean, median, and mode – aim to identify the average value within a dataset, with each having its own strengths depending on the data’s distribution. The median’s particular strength lies in its resistance to extreme values. When a few unusually high or low numbers are present, the mean gets pulled toward them. The median does not.
Median for ungrouped data
Ungrouped data refers to raw, unorganized numbers – a simple list of observations that have not been sorted into categories or intervals. Think of a list of ages of survey respondents, or the number of hours students reported studying per week. Finding the median here is straightforward.
Steps to find the median of ungrouped data
As outlined by ALLEN, the process involves the following steps:
- Arrange the data in ascending order – from the smallest value to the largest.
- Count the total number of observations, denoted as n.
- Determine the middle position:
- If n is odd, the median is the value at position (n + 1) / 2.
- If n is even, the median is the average of the values at positions n / 2 and (n / 2) + 1.
Worked example: odd number of observations
Consider the ages of 7 respondents in a small survey: {25, 19, 31, 22, 27, 18, 30}.
Step 1: Arrange in order: {18, 19, 22, 25, 27, 30, 31}
Step 2: n = 7 (odd)
Step 3: Median position = (7 + 1) / 2 = 4th value
Median = 25
Worked example: even number of observations
Now consider 8 values: {40, 55, 62, 71, 75, 80, 88, 94}.
Step 1: Already in order.
Step 2: n = 8 (even)
Step 3: Middle positions = 4th and 5th values = 71 and 75
Median = (71 + 75) / 2 = 73
As BYJU’S notes, the median is described as the most middle value in any given dataset – and the approach above provides a clear, reproducible method for locating it.
Median for grouped data
In many research contexts, data is collected and organized into class intervals – ranges that group observations together. This is called grouped data. A frequency distribution table showing the number of respondents who fall into each income bracket, for example, is grouped data. Because individual values are not visible within each interval, a different approach is needed to find the median.
ALLEN’s guide to the median describes grouped data as data which has been categorized into class intervals along with respective frequencies, noting that since precise values for each class interval are unknown, a formula is applied to estimate the median.
Steps to find the median of grouped data
The process, as described by GeeksforGeeks, involves these key steps:
- Find the total number of observations (n) by summing all frequencies.
- Build a cumulative frequency column – add each class’s frequency progressively.
- Calculate n / 2 to identify the halfway point.
- Identify the median class – the class interval where the cumulative frequency first equals or exceeds n / 2.
- Apply the median formula:
Median = L + [ (n/2 − cf) / f ] × h
Where:
- L = lower boundary of the median class
- n = total number of observations
- cf = cumulative frequency of the class before the median class
- f = frequency of the median class
- h = class width (size of the interval)
Worked example: grouped data
Suppose a researcher surveys 50 households about their monthly expenditure and records the following:
| Expenditure (₹) | Frequency | Cumulative Frequency |
|---|---|---|
| 1000 – 2000 | 8 | 8 |
| 2000 – 3000 | 12 | 20 |
| 3000 – 4000 | 15 | 35 |
| 4000 – 5000 | 10 | 45 |
| 5000 – 6000 | 5 | 50 |
Step 1: n = 50, so n/2 = 25
Step 2: The cumulative frequency first reaches or exceeds 25 in the class 3000-4000, so this is the median class.
Step 3: L = 3000, cf = 20, f = 15, h = 1000
Step 4: Median = 3000 + [(25 − 20) / 15] × 1000 = 3000 + (5/15) × 1000 = 3000 + 333.3 = ₹3333.3
Why the median matters in social research
The median is not just a mathematical exercise – it has real-world significance, especially when studying social phenomena involving income, education, health, and inequality.
Consider how income data works. A neighborhood with ten households earning around $40,000-$55,000 annually would have a very different mean if one household earned $1,000,000. The mean would surge upward, suggesting a “typical” income that nobody in the group actually earns. The median, by contrast, stays grounded in the middle of where people actually are. Datawrapper’s analysis of income inequality shows this clearly: in all countries examined, mean income is higher than median income, because increased wealth at the top affects the mean but not the median – the person in the middle stays in place.
This is why major institutions rely on median figures. Pew Research Center’s study on U.S. income inequality tracks median household income across income tiers to map how wealth has shifted over time – precisely because median figures are not distorted by billionaires at the top of the distribution. Similarly, researchers at the Center for Global Development argue that median income is a better measure of development progress because, unlike per capita averages, it is “distribution-aware” and provides a clearer picture of how ordinary people are actually faring.
The Federal Reserve Bank of St. Louis has similarly noted that to avoid the upward bias contributed by outliers at the top of the income distribution, median income is the preferred measure in inequality analysis – because households in the top 10% have earnings so large they pull the mean well above what the typical household earns.
Median vs. mean: choosing the right measure
Knowing when to use the median over the mean is essential for producing accurate, meaningful analysis. Laerd Statistics offers a clear principle: the more skewed a distribution, the more the median should be preferred over the mean. In a skewed distribution – where data clusters toward one end – the mean follows the tail, while the median stays closer to where most observations actually fall.
The median is particularly well-suited when:
- Data contains outliers (extreme high or low values)
- The distribution is skewed rather than symmetrical
- You are working with ordinal data (ranked categories)
- You want to represent the typical individual rather than the mathematical average
In a perfectly symmetrical, normal distribution, the mean and median coincide. But social data rarely follows this ideal pattern. Survey responses, incomes, test scores, and community health indicators frequently contain irregularities that make the median the more honest representation of the center.
Course Hero’s overview of statistical analysis in sociology confirms that statistical analysis – including the calculation of measures like the median – is essential for summarizing information, supporting or refuting hypotheses, and drawing meaningful conclusions about social groups and behaviors.
Limitations of the median
The median is a robust and reliable measure, but it does have constraints. It does not use all the values in a dataset in its calculation – only the middle position matters. This means it cannot be easily used as the basis for more advanced inferential statistics, which typically require the mean. For datasets that are roughly symmetrical with no major outliers, the mean may actually be more informative. Additionally, in grouped data, the median is always an estimate, since the exact values within each class interval are unknown – the formula provides a close approximation by assuming values are evenly distributed within the median class.
Still, for exploratory analysis, descriptive reports, and any research involving skewed distributions or social inequality, the median remains one of the most trustworthy tools available. As the University of Derby’s sociology research guide advises students, familiarity with descriptive statistics including the median is fundamental to interpreting data responsibly and drawing valid conclusions from research.
What do you think? When news outlets report “average income” for a country or city, do you think they should be required to also report the median – and how might that change public understanding of economic inequality? In what kinds of sociological research projects do you think the median would give a more accurate picture than the mean?
References
- https://statistics.laerd.com/statistical-guides/measures-central-tendency-mean-mode-median.php
- https://www.ebsco.com/research-starters/sociology/descriptive-statistics-sociology
- https://allen.in/maths/how-to-find-the-median
- https://byjus.com/jee/how-to-find-median-for-grouped-and-ungrouped-data/
- https://www.geeksforgeeks.org/maths/median-of-grouped-data/
- https://blog.datawrapper.de/weekly-chart-income/
- https://www.pewresearch.org/social-trends/2020/01/09/trends-in-income-and-wealth-inequality/
- https://www.cgdev.org/blog/median-income-better-measure-development-progress-nancy-birdsall-and-christian-meyer
- https://www.stlouisfed.org/publications/regional-economist/july-2014/us-income-inequality-may-be-high-but-it-is-lower-than-world-income-inequality
- https://www.coursehero.com/sg/introduction-to-sociology/probability-and-statistical-analysis-in-sociology/
- https://libguides.derby.ac.uk/c.php?g=720211&p=5225770
Leave a Reply