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

2 views (last 30 days)
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!

Accepted Answer

Zijin Xu
Zijin Xu on 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.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!