Difference between Median and Average
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.
Read Also: Statistics Interview Questions
Must Check: Top Data Science Online Course and Certifications
Table of Content
Best-suited Statistics for Data Science courses for you
Learn Statistics for Data Science with these high-rated online courses
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
- 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.
- 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
- For a Normal Distribution
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
- 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
- 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
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