Skew(Values: Array): Double;
Values. Array of arguments skewness of which is calculated.
The Skew method returns the skewness of distribution.
Skew is a measure of distribution unsymmetry relative to the distribution mean. Positive skew indicates distribution deviation towards positive values. Negative skew indicates distribution deviation towards negative values.
Sub Main;
Var
st: Statistics;
d0: Double;
y: Array Of Double;
Begin
y := New Double[10];
y[00] := 1.6;
y[01] := 1.7;
y[02] := 1.8;
y[03] := 1.9;
y[04] := 2;
y[05] := 2.1;
y[06] := 2.2;
y[07] := 2.3;
y[08] := 2.4;
y[09] := 2.8;
st := New Statistics.Create;
d0 := st.Skew(y);
Debug.WriteLine("Skew: " + d0.ToString);
End Sub Main;
Executing this example shows skew in the console window:
Module execution started
Skew: 0.66055255321613804
Module execution finished
See also: