In this blog we will learn about Mean, Median, Mode.

we will understand these three topics through this data.

Pizza Prices Data

Image for post

Mean — Mean means average.you can find above dataset’s average prices for both(New delhi and lucknow) then the formula is —

mean=sum of the whole prices /number of prices

So here mean of new delhi is — 10.63

(1+2+3+3+4+5+6+7+9+11+66)/11=10.63

and mean of lucknow prices is — 5.5

(1+2+3+4+5+6+7+8+9+10)/10=5.5

there is a problem with the mean, let’s see the mean which we got for new delhi is so high because of only last 66$ value.whole dataset for new delhi is not too high but due to last one our mean become higher so this is not good.

For this problem there is Median —

The median is the number at position of (n+1)/2 in ordered dataset.where n is the number of data number.

#mean #median #python #data-analysis #data-science

Mean,Median and Mode — Data Science
1.30 GEEK