19
Bayesian Analysis of the Two Parameter Gamma Distribution By C. Yeshwanth and Mohit Gupta

By C. Yeshwanth and Mohit Gupta. An inference method that uses Bayes’ rule to update prior beliefs based on data Allows a-priori information about

Embed Size (px)

Citation preview

Page 1: By C. Yeshwanth and Mohit Gupta.  An inference method that uses Bayes’ rule to update prior beliefs based on data  Allows a-priori information about

Bayesian Analysis of the Two Parameter Gamma

DistributionBy C. Yeshwanth and Mohit Gupta

Page 2: By C. Yeshwanth and Mohit Gupta.  An inference method that uses Bayes’ rule to update prior beliefs based on data  Allows a-priori information about

The Gamma distribution is characterized by the following probability density function

θ is the scale parameter of the distribution and

α is the shape parameter

The Gamma Distribution

Page 3: By C. Yeshwanth and Mohit Gupta.  An inference method that uses Bayes’ rule to update prior beliefs based on data  Allows a-priori information about

An inference method that uses Bayes’ rule to update prior beliefs based on data

Allows a-priori information about the parameters to be used in the analysis method

A posterior distribution over the hypothesis space is obtained using the Bayesian update rule

Conjugate priors are priors which result in a posterior distribution belonging to the same family after the Bayesian update

The Bayesian Analysis Method

Page 4: By C. Yeshwanth and Mohit Gupta.  An inference method that uses Bayes’ rule to update prior beliefs based on data  Allows a-priori information about

A conjugate prior for the Gamma Distribution

and are the shape and scale parameters of the Gamma Distribution

n’, v’, s’ and p’ can be interpreted as encoding prior information about the parameters

Conjugate Priors

Page 5: By C. Yeshwanth and Mohit Gupta.  An inference method that uses Bayes’ rule to update prior beliefs based on data  Allows a-priori information about

The posterior distribution after the Bayesian update is proportional to

Where v’’ = v’ + n, p’’ = p’p, s’’ =s’ + s, and n’’ = n’+n with p = and s =

The posterior thus belongs to the same family as the prior

Conjugate Priors

Page 6: By C. Yeshwanth and Mohit Gupta.  An inference method that uses Bayes’ rule to update prior beliefs based on data  Allows a-priori information about

The marginal distribution over is proportional to

Where = =

The Method

Page 7: By C. Yeshwanth and Mohit Gupta.  An inference method that uses Bayes’ rule to update prior beliefs based on data  Allows a-priori information about

The first 4 moments of are computed numerically using the distribution provided above as a closed form solution is not known

The marginal distribution of given is observed to be a Gamma distribution

The moments of are computed from the moments of alpha already computed

The distributions are then fitted with curves from the Pearson Distribution and confidence intervals are extracted

The Method

Page 8: By C. Yeshwanth and Mohit Gupta.  An inference method that uses Bayes’ rule to update prior beliefs based on data  Allows a-priori information about

The Pearson distribution is a family of continuous probability distributions

These are used to fit a distribution given the mean, the variance, the skewness and the kurtosis of the distribution.

There are many families included in Pearson curves like Beta distribution, gamma distribution and Inverse gamma distribution

Pearson Distribution

Page 9: By C. Yeshwanth and Mohit Gupta.  An inference method that uses Bayes’ rule to update prior beliefs based on data  Allows a-priori information about

Depending on the first four moments, it is decided that which Pearson curve will best fit the given data

After fixing the type of the distribution, the parameters of that distribution are calculated to obtain the exact distribution.

Pearson Distribution

Page 10: By C. Yeshwanth and Mohit Gupta.  An inference method that uses Bayes’ rule to update prior beliefs based on data  Allows a-priori information about

An alternative conjugate prior for the parameters is given by

The approach described for this prior involves numerically integrating over for each value of

The approach described before avoids extra computation by providing approximations to the required integrals

Alternative Approaches

Page 11: By C. Yeshwanth and Mohit Gupta.  An inference method that uses Bayes’ rule to update prior beliefs based on data  Allows a-priori information about

We did not use the alternative for 2 reasons The family of densities described by the

alternative approaches is a subset of the families described in the first approach

The computational costs of using the second approach are too high

Alternative Approaches

Page 12: By C. Yeshwanth and Mohit Gupta.  An inference method that uses Bayes’ rule to update prior beliefs based on data  Allows a-priori information about

Number of Samples Estimate of Alpha Estimate of Theta

100 4.1809 4.1210

1000 4.8559 4.9054

100000 5.0165 5.0164

Experiments

The actual values used for the shape and scale parameters were 5 and 5 respectively

Page 13: By C. Yeshwanth and Mohit Gupta.  An inference method that uses Bayes’ rule to update prior beliefs based on data  Allows a-priori information about

Actual Value of Shape

Estimated Value of Shape

Estimated Value of Scale

1 1.0072 5.0441

5 4.9795 4.9925

10 9.9898 4.9976

20 20.9499 5.2362

Experiments

The number of samples was fixed to 100000 when performing this estimation and the scale parameter was fixed to 5

Page 14: By C. Yeshwanth and Mohit Gupta.  An inference method that uses Bayes’ rule to update prior beliefs based on data  Allows a-priori information about

Actual Value of Scale

Estimated Value of Shape

Estimated Value of Scale

1 4.9847 0.9995

5 5.0148 5.0145

10 5.0249 10.0654

20 4.9761 19.8601

Experiments

The number of samples was fixed to 100000 when performing this estimation and the shape parameter was fixed to 5

Page 15: By C. Yeshwanth and Mohit Gupta.  An inference method that uses Bayes’ rule to update prior beliefs based on data  Allows a-priori information about

Errors in Confidence Interval

Page 16: By C. Yeshwanth and Mohit Gupta.  An inference method that uses Bayes’ rule to update prior beliefs based on data  Allows a-priori information about

The accuracy of the point estimates increases with increasing the number of samples

Credible confidence intervals are difficult to extract from the raw distributions especially for the scale parameter

We attempted to fit a Pearson Curve to the distributions to extract the confidence interval

This is because of the skewed nature of the Pearson estimate of the posterior density

Conclusions

Page 17: By C. Yeshwanth and Mohit Gupta.  An inference method that uses Bayes’ rule to update prior beliefs based on data  Allows a-priori information about

Thank You

Page 18: By C. Yeshwanth and Mohit Gupta.  An inference method that uses Bayes’ rule to update prior beliefs based on data  Allows a-priori information about

“Bayesian Analysis of the Two-Parameter Gamma Distribution” by Robert B. Miller

“Conjugate classes for gamma distributions” by Eivind Damsleth.

http://en.wikipedia.org/wiki/Pearson_distribution

http://en.wikipedia.org/wiki/Gamma_distribution

http://en.wikipedia.org/wiki/Cumulants http://www.mathworks.in/matlabcentral/

fileexchange/26516-pearspdf

References

Page 19: By C. Yeshwanth and Mohit Gupta.  An inference method that uses Bayes’ rule to update prior beliefs based on data  Allows a-priori information about

where , are the first four cumulants of

Appendix