sd

Standard Deviation

Calculates the sample standard deviation of a numeric vector. With weights, uses the weighted population denominator (sum(weights)).

Parameters

Returns

The standard deviation.

Examples

sd([1, 2, 3, 4, 5])
-- Returns = 1.5811...

See Also

var, mean