import { default } from "https://deno.land/x/simplestatistics@v7.8.3/src/sample_skewness.js";
Skewness is a measure of the extent to which a probability distribution of a real-valued random variable "leans" to one side of the mean. The skewness value can be positive or negative, or even undefined.
Implementation is based on the adjusted Fisher-Pearson standardized moment coefficient, which is the version found in Excel and several statistical packages including Minitab, SAS and SPSS.
Examples
sampleSkewness([2, 4, 6, 3, 1]); // => 0.590128656384365
sampleSkewness([2, 4, 6, 3, 1]); // => 0.590128656384365