/math/standardDeviation
stdCalculates the standard deviation of the given array of numbers.
Type signature
(xs: number[], origin?: number) => number
Examples
standardDeviation([
96,
81,
68,
79,
23,
13,
13,
59,
44,
86,
]);
// ⇒ (2 * Math.sqrt(10922 / 5)) / 3
Try in REPL
Questions
- How to compute a standard deviation of an array?