Home   >   User Resources   >   Online Help   >   apaNIGarg.randomized
 

 

Function index Version 3.0.0

apaNIGarg.randomized(m_lb, m_ub, v_lb, v_ub, s_lb, s_ub, k_lb, k_ub)

Excel=apaNIGarg.randomized(m_lb, m_ub, v_lb, v_ub, s_lb, s_ub, k_lb, k_ub)

Result

Returns a set of random NIG parameters implied by moments drawn randomly between lower and upper bounds.

Syntax

m_lb: lower bound of the mean

m_ub: upper bound of the mean

v_lb: lower bound of the variance; must be positive

v_ub: upper bound of the variance; must be positive

s_lb: lower bound of the skewness

s_ub: upper bound of the skewness

k_lb: lower bound of the kurtosis (not excess kurtosis)

k_ub: upper bound of the kurtosis (not excess kurtosis)

Remarks

The NIG distribution is only defined when the kurtosis (not excess kurtosis) exceeds 3 + (5/3)·S², where S is the skewness. If the random kurtosis value is too small, it is increased until the set of NIG parameters is valid.

A non-positive variance bound or a non-finite bound returns an error message.