All about Mean, Median, and Mode

All about Mean, Median, and Mode

·

2 min read

We all have heard these words many times but, in Data science it is like a root of a tree. That is why we should know about this topic. It is too simple but important for exploratory data analysis. Now let's understand this one by one with example

Mean:

The "mean" is the "average". where you add up all the numbers and then divide by the number of observations. Example:

data=14, 12, 12, 8, 12, 10, 12, 11, 11 (14+ 12+12+8+12+10+12+ 11+11) ÷ 9 = 11.3333

it is not necessary that your mean will always be from your data set it could be different also.

Median:

The "median" is the "middle" value in the list of numbers. To find the median, your numbers have to be listed in ascending order from smallest to largest. Example: data=14, 12, 12, 8, 12, 10, 12, 11, 11

The median is the middle value, so first I'll have to rewrite the list in ascending order:

data=8,10,11,11,12,12,12,12,14

There are nine numbers in the list, so the middle one will be the (9 + 1) ÷ 2 = 10 ÷ 2 = 5th number:

So the median is 12.

Mode:

The "mode" is the value that occurs most often. It means the number which has a higher frequency. If there is not a number with a higher frequency then no mode will be there. Example:

data=14, 12, 12, 8, 12, 10, 12, 11, 11

The mode is the number that is repeated more often than any other, so 12 is the mode.

Mean and Average both are the same thing but, in statistics, we use the term mean. It is a short form of the Arithmetic mean. There are many other types of mean also we will look into it in our future post. I hope you like this post if you have any questions add them in the comment below.