STATISTICS
Standard Deviation
Date Published: | |
Last Modified: |
Overview
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:
\( \bar{x} \) is the mean (average) of the samples
\( n \) is the number of samples
For example,
4, 8, 7, 3, 12
Software
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.
