Machine learning / Standard Deviation Calculation Using Numpy

It is the square root of the variance in the data set.

Standard Deviation = Square root of the variance

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
Standard Deviation value =square root of the variance = 11.186411

Statistical Calculation Python Program Output
Standard Deviation import numpy
ds = [40,10,20,25,24,40,40,14,16]
stdcal = numpy.std(ds)
print(stdcal)
125.135802


Home     Back