Overview
Purpose
Return the standard deviation as the square root of the variance computed by variance.
Parameters
x: numeric data.w: optional weights.ddof: degrees-of-freedom correction passed directly tovariance.
Returns
A float with the standard deviation.
Errors and exceptions
It inherits the same errors as variance, because the function is a simple wrapper around that computation.
Example
from mespy import standard_deviation
x = [2.0, 4.0, 4.0, 4.0, 5.0, 5.0, 7.0, 9.0]
print(standard_deviation(x)) # 2.0
Notes
If you want to understand the weight and denominator checks in detail, the relevant page is variance.