Skip to main content
Module

x/simplestatistics/src/standard_deviation.js>default

simple statistics for node & browser javascript
Go to Latest
function default
import { default } from "https://deno.land/x/simplestatistics@v7.7.5/src/standard_deviation.js";

The standard deviation is the square root of the variance. This is also known as the population standard deviation. It's useful for measuring the amount of variation or dispersion in a set of values.

Standard deviation is only appropriate for full-population knowledge: for samples of a population, sampleStandardDeviation is more appropriate.

Examples

variance([2, 4, 4, 4, 5, 5, 7, 9]); // => 4 standardDeviation([2, 4, 4, 4, 5, 5, 7, 9]); // => 2

Parameters

x

input