Machine learning / Mean Calculation Using Numpy

It is the average value of any data set.

Mean = Sum of all data / Number of Items Count in Data Set.

Example: Let us take a data set of some numbers
Ds= [40,10,20,25,24,40,40,14,16]
Number of points in the data set = 9
Mean = (40+10+20+25+24+40+40+14+16) / 9= 229/9= 25.4

Statistical Calculation Python Program Output
Mean import numpy
ds = [40,10,20,25,24,40,40,14,16]
meancal= numpy.mean(ds)
print(meancal)
25.44444


Home     Back