Introduction

Median is one of the most important measures of central tendency in statistics. It represents the middle value of a dataset when the data is arranged in ascending or descending order. Unlike the mean, the median is less affected by extremely high or low values (outliers).

Median is widely used in statistics, finance, economics, healthcare, and data analysis to determine the central value of a dataset, especially when the data is skewed.

Why is Median Important?

Median helps:

  • Find the middle value of a dataset
  • Reduce the effect of outliers
  • Analyze skewed data
  • Compare data distributions
  • Support statistical analysis
  • Improve decision-making

How Median is Calculated

Whiteboard
Whiteboard diagram

Major Components of Median

1. Dataset

A dataset is a collection of numerical values used for analysis.

Examples

  • Student marks
  • Monthly income
  • Product prices

2. Arrange the Data

Sort all values in ascending or descending order before finding the median.

Example

Original: 18, 10, 25, 12, 20

Sorted: 10, 12, 18, 20, 25

3. Odd Number of Observations

If the dataset contains an odd number of values, the median is the middle value.

Example

5, 10, 15, 20, 25

Median = 15

4. Even Number of Observations

If the dataset contains an even number of values, calculate the average of the two middle values.

Example

5, 10, 15, 20, 25, 30

Median = (15 + 20) ÷ 2 = 17.5

5. Interpretation

The median divides the dataset into two equal halves, with half the values below it and half above it.

Example

If the median salary is ₹40,000, half the employees earn below ₹40,000 and half earn above it.

Types of Median

TypeDescription
Odd MedianMiddle value of an odd-sized dataset
Even MedianAverage of the two middle values
Grouped MedianMedian calculated for grouped data

Applications of Median

IndustryApplication
EducationStudent performance analysis
FinanceIncome analysis
HealthcarePatient age analysis
BusinessSales analysis
EconomicsHousehold income studies
Data ScienceData preprocessing

Advantages of Median

  • Easy to calculate
  • Not affected by outliers
  • Suitable for skewed data
  • Represents the central value
  • Useful for ordinal data
  • Widely used in statistics

Limitations of Median

  • Ignores most data values
  • Cannot be used in all statistical calculations
  • Requires sorted data
  • Less suitable for mathematical analysis
  • Does not reflect the overall average

Real-World Examples

ScenarioMedian Example
Student MarksMiddle exam score
House PricesMedian property price
Employee SalaryMedian salary
Family IncomeMedian household income
Hospital DataMedian patient age
RetailMedian product price

Best Practices

  • Arrange data before calculating the median.
  • Use the median for skewed datasets.
  • Check for outliers.
  • Compare the median with the mean.
  • Use numerical data for accurate analysis.
  • Verify the dataset before calculation.

Interview Tip

A common interview question is:

"What is the median in statistics?"

A strong answer is:

Median is the middle value of a dataset after arranging the values in ascending or descending order. If the dataset has an even number of observations, the median is the average of the two middle values. It is commonly used because it is less affected by outliers than the mean.

Mentioning sorted dataodd and even cases, and outlier resistance makes your answer stronger.

Conclusion

Median is an important measure of central tendency that identifies the middle value of a dataset. It is especially useful for analyzing skewed data and datasets containing outliers. Understanding the median helps in summarizing data accurately and provides a strong foundation for statistical analysis and data science.