# Mean vs Median  ## Difference Between Mean and Median

Mean and Median are two commonly used terms in mathematics, mean is like average of a given numbers and it sums up the numbers and divide them with the count of numbers which gives us the mean while median on other hand returns the middle number from the whole data set and if the data set is even then median adds the two middle numbers and divides it by 2 giving us the median.

They are the measure of central tendency and are often used in the measurement of large data sets where analysis needs to be drawn, and results are interpreted. Mean, median, and mode are three measures of averages that show the disperse the data is from the mean or the average. These methods are used in widely, whereas the mean value of the data is the most widely used method among the three.

### What is Mean?

Mean is a simple sum of the numbers of observations in an array, which is divided by the numbers of observations. For example, if we talk about the average height or the mean height of a group consisting of 5 people. The mean height would be calculated by summing the height of 5 people divided by the number of people, i.e., 5.

#### Formula

Mean Formula = (Sum of all the observations/number of observations)

For eg:
Source: Mean vs Median (wallstreetmojo.com)

### What is the Median?

Median, on the other hand, is the middle number in the set of the data array, which separates the higher set of the data from the lower. The data needs to be arranged in ascending order first to calculate the median of the data. When the data set have cardinality, the mean of the middle two numbers in the data set needs to be taken. However, these two methods are often used interchangeably.

#### Formula

Median Formula = (n+1)/2

when n is an odd number

Median = [(n/2) + {(n/2)+1}] / 2

when n is an even number

### Mean vs Median Infographics

Let’s see the top differences between mean vs median.

For eg:
Source: Mean vs Median (wallstreetmojo.com)

### Mean vs Median Key Differences

• Mean is simple to use and apply and can be applied to any data array set, whether even or odd. Median, on the other hand, is slightly complex to use, and the data set needs to be arranged in the ascending or the descending order first before calculation.
• The mean is normally used for s, whereas the median is used for the skewed distributions data set.
• The mean is simple, but it is not robust become it can contain outliers in the distributions and can sometimes not give the user the correct results for interpretation. On the other hand, the median method is robust and is better suited to use for as it used for skewed distributions to derive the of the date set and will give the user many accurate results when compared to mean
• There is only one formula of mean that is the sum of all the observations divided by the numbers of observations. Whereas, the median has two formulas, one of the odd where just the middle numbers from the dataset become the median. But when we have even data set, the middle of the two values are picked and are divided by 2, which then gives us the median of the even data set.

### Conclusion

Apart from the mean and median, there is one more method that is often used for measuring central tendency that is the mode. A mode is a value which is most frequently occurred in the data set; the mode has an advantage over the mean and median that it can be found for both numerical and categorized data sets.

Despite the existence of mode and median the superiority of better results and analysis over the mean, the mean is still the most appropriate measure of central tendency, especially if the data set is a normal distribution, and the data is normally skewed.

As a good analyst, the central tendency should be measured with all three data methods, and the variance in the analysis should be pondered and carefully analyzed to produce better and more accurate results in the data set.

### Recommended Articles

This has been a guide to Mean vs Median. Here we discuss the top differences between them along with infographics and a comparison table. You may also have a look at the following articles –

• 35+ Courses
• 120+ Hours