Difference between Median and Average

Difference between Median and Average

4 mins read3.2K Views Comment
Vikram
Vikram Singh
Assistant Manager - Content
Updated on Aug 16, 2024 12:18 IST

Average and median are two basic terms frequently used in statistics. The median is the middle value in a set, whereas the average is the arithmetic mean of a set of numbers.

difference between average and median

Median and Average are two essential terms in statistics, and they are used frequently. In this article, we will discuss Median vs. Average. The fundamental difference between Median and Average is that the Median is the middle value, whereas the Average is the arithmetic mean of values.

Read Also: Statistics Interview Questions

Must Check: Top Data Science Online Course and Certifications

Table of Content

Recommended online courses

Best-suited Statistics for Data Science courses for you

Learn Statistics for Data Science with these high-rated online courses

Free
12 weeks
– / –
12 weeks
– / –
10 days
Free
12 weeks
– / –
8 weeks
– / –
10 days
– / –
12 weeks
– / –
10 days

Median vs. Average: Difference Between Average and median

Parameter Median Average
Definition The median is the middle value in the number set.  It is an arithmetic mean of set of a number.
Uses Find the central tendency of a skewed distribution. Find the central tendency of a normal distribution.
Extreme Values Preferred Not Preferred
Formula n is oddMedian = ((n + 1)/2) th termn is even
Median =( (n/2) th term + (n/2 + 1)th term) / 2
where n is the number of elements in set
the sum of data values / number of data values
Example 1, 2, 3, 4, 5, 6, 7, 8, 9Median = 5 1, 2, 3, 4, 5, 6, 7, 8, 9
Mean = (1 + 2 + 3 +  4 + 5 + 6 + 7 +  8 + 9) / 9 = 5

Please check the top online maths for data science courses 

Explore the best online statistics courses for data science

What is the Median?

Definition

In any given set, the median is the middle value when the datasets are sorted (either ascending or descending).

  • It separates the set into two equal halves.
  • The median is not very sensitive to outliers.

Formula

Let there are n elements in any set, then

  • When n is odd:

Median = ((n + 1)/2) th term

  • When n is even:

Median = ( (n/2) th term + (n/2 + 1) th term) / 2

Now, let’s take some example to know how these formula can be used:

Example

  1. Find the median of {3, 6, 5, 11, 8, 5, 7, 3, 9}

The given set has 9 elements, and the elements are not sorted, so let’s arrange them in ascending order.

{3, 3, 5, 5, 6, 7, 8, 9, 11}

Since, number of element is 9

Hence, Median = ((9 + 1)/2)th element = 5th element = 6

therefore, the Median value of the given set is 6.

  1. Find the median of {2, 2, 5, 8, 11, 150}

Elements of the given set are already sorted, and the number of elements = 6

Hence, Median =( (6/2)th term + ((6/2) + 1)th term )/2 = (3rd term + 4th term)/2 = (5 + 8)/2 = 6.5

therefore, the Median value of the given set is 6.5.

Read Also: Skewness in Statistics

Read Also: Difference between Variance and Standard Deviation

What is an Average?

Definition

Average is defined as the mean value equals to 

sum of all observation / number of observation

  • Average is also known as Arithmetic Mean
  • It is highly sensitive to the outliers
  • Mainly, used to find the central tendency of a normal distribution
    • For a Normal Distribution
      • Mean = Median = Mode

Formula

Let there are n elements in any set, then:

Average =sum of data values / number of data values =  (x1 + x2 + x3 + x4 + ……. + xn) / n

Example

  1. Find the average of {3, 6, 5, 11, 8, 5, 7, 3, 9}.

Average = (3 + 6 +  5 + 11 + 8 + 5 + 7 + 3 + 9) / 9 = 57 / 9 = 6.34

Therefore, Average = 6.34

  1. Find the median of {2, 2, 5, 8, 11, 150}.

Average = (2 + 2 + 5 + 8 + 11 + 150) / 6 = 178 /6 = 29.67

Therefore, Average = 29.67

Read Also: Gradient Descent in Machine Learning

Read Also: Introduction to Sampling and Resampling

Key differences and similarities between Median and Average

  • Average and Median both are “Measures of Central Tendency”.
  • The average is calculated by adding up all the individuals and dividing by the total number of observations, whereas the median is calculated by choosing the “middle value” after arranging all the numbers in ascending or descending order.
  • The median finds the central tendency of skewed data, whereas the Average is used to find the central tendency of a normal distribution.
  • The median is not very sensitive to the outlier, whereas the Average is highly sensitive to the outliers.

Read Also: Conditional Probability

Read Also: Central Limit Theorem

Conclusion

In this article, we have briefly discussed median vs average with examples.

Hope, you will like the article.

Keep Learning!!

Keep Sharing!!

 

Please Explore Our Other Blogs on Mathematics and Statistics for Data Science

Sum of GP Formula
Sum of GP Formula
In our previous article, we provided a brief introduction to Geometric Progression (i.e., GP) and the GP formula. In this article, we will focus on how to calculate the sum...read more

Ultimate Guide to the GP Formula: Understanding its Impact and Utility
Ultimate Guide to the GP Formula: Understanding its Impact and Utility
Geometric Progression (G.P.) is a fundamental concept in mathematics, particularly in the field of sequences and series. It is a type of sequence where each succeeding term is produced by...read more

How to Find the Inverse of a Matrix?
How to Find the Inverse of a Matrix?
Finding the inverse of a matrix is as simple as finding the additive or multiplicative inverse of any number. The inverse of a matrix can be found using different techniques...read more

Lower Triangular Matrix: Definition, Example, and Properties
Lower Triangular Matrix: Definition, Example, and Properties
Discover the essentials of lower triangular matrices in linear algebra. Explore their unique properties, practical applications in solving linear systems, and their significance in mathematical computations. Perfect for students and...read more

Upper Triangular Matrix: Definition, Example, and Properties
Upper Triangular Matrix: Definition, Example, and Properties
Explore the world of upper triangular matrices in our comprehensive guide. Understand their definition, properties, and practical applications in solving linear equations and beyond. Dive into the role of these...read more

How to Calculate the Determinant of a Matrix?
How to Calculate the Determinant of a Matrix?
The determinant of a matrix is a scalar value that is calculated from the elements of the Square matrix. It is used to determine whether a given matrix is invertible...read more

Diagonal Matrix: Definition, Example, and Properties
Diagonal Matrix: Definition, Example, and Properties
A diagonal matrix is a special type of square matrix in which all non-diagonal entries are equal to zero, but all diagonal entries can either be zero or non-zero. This...read more

Identity Matrix: Definition, Examples, and Properties
Identity Matrix: Definition, Examples, and Properties
A square matrix of order n x n with ones on the main diagonal and zeros elsewhere is known as an Identity Matrix. From solving a system of linear equations...read more

Square Matrix Fundamentals: A Quick Guide
Square Matrix Fundamentals: A Quick Guide
Discover the world of square matrices, the backbone of linear algebra. From transforming graphics to solving complex equations, square matrices are pivotal in shaping how we calculate and comprehend data....read more

All About Logarithmic Functions
All About Logarithmic Functions
Logarithm functions are fundamental concepts in mathematics that were introduced by the Scottish mathematician John Napier in the 17th century. These functions act as a translator, converting the exponential equations...read more

The Chain Rule: Formula and Examples
The Chain Rule: Formula and Examples
In this article, we will learn what the chain rule is, the chain rule for different functions (like trigonometry, Logs, exponential, etc.) generalized chain rule for higher derivative partial derivative,...read more
About the Author
author-image
Vikram Singh
Assistant Manager - Content

Vikram has a Postgraduate degree in Applied Mathematics, with a keen interest in Data Science and Machine Learning. He has experience of 2+ years in content creation in Mathematics, Statistics, Data Science, and Mac... Read Full Bio