Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

bvhar (version 2.1.2)

sim_gig: Generate Generalized Inverse Gaussian Distribution

Description

This function samples GIG(λ,ψ,χ) random variates.

Usage

sim_gig(num_sim, lambda, psi, chi)

Arguments

num_sim

Number to generate

lambda

Index of modified Bessel function of third kind.

psi

Second parameter of GIG. Should be positive.

chi

Third parameter of GIG. Should be positive.

Details

The density of GIG(λ,ψ,χ) considered here is as follows. f(x)=(ψ/χ)(λ/2)2Kλ(ψχ)xλ1exp(12(χx+ψx)) where x>0.

References

Hörmann, W., Leydold, J. Generating generalized inverse Gaussian random variates. Stat Comput 24, 547-557 (2014).

Leydold, J, Hörmann, W.. GIGrvg: Random Variate Generator for the GIG Distribution. R package version 0.8 (2023).