How to Find Mean, Median and Mode Using Python

Before calculating mean, median and mode, let us look at types of data and characteristics of the data. At a very high level data can be classified as categorical and quantitative data. Both can be further classified as below

Difference Order Similar Interval Meaningful Zero
Categorical Nominal (Cities) Yes
Categorical Ordinal (Temp.) Yes Yes
Quantitative Interval Yes Yes Yes
Quantitative Ration Yes Yes Yes Yes

Now all of these types of data do not have all characteritics

Mode Median Mean
Nominal Yes
Ordinal Yes
interval Yes Yes Yes
ratio Yes Yes Yes


Mean is nothing but average. It can be calculated in python or by using numpy


Middle value of observation when ordered from low to high


Mots commonly occurring observation



Leave a Reply

Your email address will not be published. Required fields are marked *