How to generate inverse gamma distributions with given mean and variance?

2 visualizzazioni (ultimi 30 giorni)
Hi, how do I take G draws from a univariate Inverse Gamma distribution with mean = 0.25, std = 0.4? I would like to use these draws to generate a plot of the corresponding pdf. Thanks!

Risposta accettata

Zijin Xu
Zijin Xu il 7 Apr 2019
Never mind, I think I found the answer.
With mean and variance, the two parameters can be numerically solved. The rest of the work is then straightforward.

Più risposte (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by