Standard Deviation & Variance
Standard Deviation and Variance
In [1]:
%matplotlib inline
import numpy as np
import matplotlib.pyplot as plt
dataMean = 100.0
stdDev = 50.0
numberOfDataPoints = 10000
incomes = np.random.normal(dataMean, stdDev, numberOfDataPoints)
plt.hist(incomes, 50)
plt.show()
In [2]:
incomes.std()
Out [2]:
In [3]:
incomes.var()
Out [3]:
Page Tags:
python
data-science
jupyter
learning
numpy