Abstract

Positive, continuous, and right-skewed data are fit by a mixture of gamma and inverse gamma distributions. For 16 hierarchical models of gamma and inverse gamma distributions, there are only 8 of them that have conjugate priors. We first discuss some common typical problems for the eight hierarchical models that do not have conjugate priors. Then, we calculate the Bayesian posterior densities and marginal densities of the eight hierarchical models that have conjugate priors. After that, we discuss the relations among the eight analytical marginal densities. Furthermore, we find some relations among the random variables of the marginal densities and the beta densities. Moreover, we discuss random variable generations for the gamma and inverse gamma distributions by using the R software. In addition, some numerical simulations are performed to illustrate four aspects: the plots of marginal densities, the generations of random variables from the marginal density, the transformations of the moment estimators of the hyperparameters of a hierarchical model, and the conclusions about the properties of the eight marginal densities that do not have a closed form. Finally, we illustrate our method by a real data example, in which the original and transformed data are fit by the marginal density with different hyperparameters.

Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call