Skew

Overview


Skew is the third moment of a statistical distribution. Skew is defined as
{% skew = E[(X_i - \mu)^3] %}
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 skew = mt.skew(numbers);
					
Try it!