Skip to main content
Module

x/simplestatistics/index.js>sampleKurtosis

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

Kurtosis is a measure of the heaviness of a distribution's tails relative to its variance. The kurtosis value can be positive or negative, or even undefined.

Implementation is based on Fisher's excess kurtosis definition and uses unbiased moment estimators. This is the version found in Excel and available in several statistical packages, including SAS and SciPy.

Examples

sampleKurtosis([1, 2, 2, 3, 5]); // => 1.4555765595463122

Parameters

x

a sample of 4 or more data points