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

2 visualizaciones (últimos 30 días)
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!

Respuesta aceptada

Zijin Xu
Zijin Xu el 7 de Abr. de 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.

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by