Home   >   User Resources   >   Online Help   >   apaNIGarg
 

 

Function index Version 3.0.0

apaNIGarg(m, v, S, k)

Excel=apaNIGarg(m, v, S, k)

Result

Returns the parameters alpha, beta, mu and delta (4 x 1, in this order) of the normal inverse Gaussian (NIG) distribution with the given mean, variance, skewness and kurtosis.

Syntax

m: mean

v: variance; must be positive

S: skewness

k: kurtosis (not excess kurtosis); must exceed 3 + (5/3)·S²

Remarks

Note that the NIG distribution is only defined when the kurtosis (not excess kurtosis) exceeds 3 + (5/3)·S², where S is the skewness.

The moments are the population moments of the distribution. To use estimates from data, pass e.g. the sample variance and 3 + the sample excess kurtosis; apaNIGest does this directly.

An excess kurtosis must be converted by adding 3; e.g. k = 0 is not feasible. A non-positive variance or a kurtosis at or below the bound returns an error message.