Skip to main content Accessibility help
×
Hostname: page-component-8448b6f56d-cfpbc Total loading time: 0 Render date: 2024-04-24T09:01:33.773Z Has data issue: false hasContentIssue false

8 - Bayesian Parameter Estimation

from Part II - Parameter Estimation

Published online by Cambridge University Press:  05 February 2018

Simon Farrell
Affiliation:
University of Western Australia, Perth
Stephan Lewandowsky
Affiliation:
University of Bristol
Get access

Summary

The goal of this chapter is to instantiate the theory from the previous chapter in some real-world models using the JAGS programming language (Plummer, 2003). The acronym JAGS stands for “Just Another Gibbs Sampler,” and JAGS is one of several modern computer packages that rely on a particular form of MCMC known as Gibbs sampling. JAGS is one of several existing packages that perfom MCMC for Bayesian modeling. Other packages include “WinBUGS” (Spiegelhalter et al., 2003) and “Stan” (Carpenter et al., 2016), which each have their own strengths and weaknesses. We chose JAGS because of the flexibility it offers for extension (Wabersich and Vandekerckhove, 2014) and because it is easily used from within R. Readers who want to build on the limited number of examples provided in this chapter may wish to consult the excellent book by Lee and Wagenmakers (2013), which contains numerous additional examples.

Gibbs Sampling

JAGS relies on a particular type of MCMC known as Gibbs sampling. Although it is named after the late 19th -century American physicist JosiahWillard Gibbs, the sampler was only invented 8 decades after his death and named in his honor because of the similarities between the sampler and Gibbs’ contributions to statistical theory (Geman and Geman, 1984). Gibbs sampling has much in common with the Metropolis-Hastings approach introduced in the previous chapter. Both algorithms involve a Markov Chain of samples and both converge on the target distribution when given a sufficiently large number of samples. There are however also some important differences. The key property of the Gibbs sampler is that it samples from conditional distributions, which are often known even in situations in which the joint density is not available for integration – as is required for computation of the marginal likelihood (or “evidence”) in the denominator of Equation 6.8. Specifically, whereas sampling from the joint posterior for all the parameters may be unachievable in many situations, we can often easily sample from the posterior for one parameter given knowledge of the other parameter values. By iterating through the parameters, sampling each conditional upon the others being constant, the Gibbs sampler manages to provide us with posterior distributions for each parameter.

Type
Chapter
Information
Publisher: Cambridge University Press
Print publication year: 2018

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

Available formats
×