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

2 次查看(过去 30 天)
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!

采纳的回答

Zijin Xu
Zijin Xu 2019-4-7
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.

更多回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by