Skip to main content
Module

x/simplestatistics/index.js>standardDeviation

simple statistics for node & browser javascript
Go to Latest
function standardDeviation
import { standardDeviation } from "https://deno.land/x/simplestatistics@v7.7.5/index.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