Overview
Kurtosis is the fourth moment of a statistical distribution.
Kurtosis
Kurtosis is defined as
{% kurtosis = E[(X_i - \mu)^4] %}
where {% \mu %} is the mean of the distribution.
The following demonstrates how to calculate the skew of a population using the moments library.
let mt = await import('/lib/statistics/moments/v1.0.0/moments.mjs');
let numbers = [1,2,3,4,5];
let kurtosis = mt.kurtosis(numbers);
Try it!