Standard Deviation
The standard deviation is a metric which is used to measure the amount of variation in a set of data values.
The standard deviation has the same units as the data.
Equation
where:
is the mean (average) of the samples
is the number of samples
For example,
4, 8, 7, 3, 12Software
You can calculated the standard deviation of an array in Numpy with np.std():
np.std(my_array)By default, the array is flattened. However, you can specify an axis on which to calculate the standard deviation.