Wednesday, March 25, 2020

mean,median,mode in datascience using python

Mean:

avg is called as mean
mean=sum of the numbers/total numbers
example:
numbers=1,2,3,4,5,6
sum of numbers=21
total numbers=6
mean=21/6
mean=3.5

Median:

set of numbers:0,1,2,2,0,0,3,2,0
after sorting:0,0,0,0,1,2,2,2,3

"1" is the median of the given set


Mode:

mode is most common number in the given series or set

given series :0,1,2,0,3,1,2,0,6,0

mode is "0"

most common number is zero in the given series





python class topic video