Probabilities.BetaStat Method

procedure BetaStat(a: Double; b: Double; out AMean: Double; out AVariance: Double; out ASkewness: Double; out AKurtosis: Double);

Beta distribution moments (mean, variance, skewness, excess kurtosis).

#NameDescription
1AMeanReturns the mean, = a/(a+b).
2AVarianceReturns the variance, = a b / ((a+b)^2 (a+b+1)).
3ASkewnessReturns the skewness, = 2(b-a) sqrt(a+b+1) / ((a+b+2) sqrt(a b)).
4AKurtosisReturns the EXCESS kurtosis.
5aFirst shape parameter, real value > 0.
6bSecond shape parameter, real value > 0.

Result: stored in self (calling object)

Remarks:

Returns the moments of the beta distribution. If a <= 0 or b <= 0 all four outputs are NAN.