Abstract
This chapter provides a brief introduction to the use of Bayesian graphical models in R. In these models, parameters are treated as random quantities on an equal footing with the random variables. This allows complex stochastic systems to modeled, often using Markov chain Monte Carlo (MCMC) sampling methods. We first consider a series of examples, ranging from simple repeated sampling, linear regression models, random coefficient regression models, to the chest clinic example of Chap. 3. We formulate these as Bayesian graphical models, and represent them graphically in a compact form using plates. We then describe a special case, in which the unknown parameters are all discrete, and explain how probability propagation methods described in Chap. 3 may be used to compute the posterior distributions. We then turn to the general case, when MCMC sampling is required, and explain the computations involved in Metropolis-Hastings sampling and Gibbs sampling. Finally we illustrate a Bayesian linear regression analysis using the R2WinBUGS package.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Albert J (2009) Bayesian computation with R, 2nd edn. Springer, New York
Dawid AP, Lauritzen SL (1993) Hyper Markov laws in the statistical analysis of decomposable graphical models. Ann Stat 21:1272–1317
Gilks WR, Thomas A, Spiegelhalter DJ (1994) BUGS: a language and program for complex Bayesian modelling. Statistician 43:169–178
Spiegelhalter D, Thomas A, Best N, Lunn D (2003) WinBUGS user manual version 1.4. http://www.mrc-bsu.cam.ac.uk/bugs/winbugs/manual14.pdf
Spiegelhalter D, Thomas A, Best N, Lunn D (2011) OpenBUGS user manual version 3.21. http://www.openbugs.info/
Spiegelhalter DJ, Lauritzen SL (1990) Sequential updating of conditional probabilities on directed graphical structures. Networks 20:579–605
Sturtz S, Ligges U, Gelman A (2005) R2WinBUGS: A package for running WinBUGS from R. J Stat Softw 12(3):1–16. http://www.jstatsoft.org
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2012 Springer Science+Business Media, LLC
About this chapter
Cite this chapter
Højsgaard, S., Edwards, D., Lauritzen, S. (2012). Graphical Models for Complex Stochastic Systems. In: Graphical Models with R. Use R!. Springer, Boston, MA. https://doi.org/10.1007/978-1-4614-2299-0_6
Download citation
DOI: https://doi.org/10.1007/978-1-4614-2299-0_6
Publisher Name: Springer, Boston, MA
Print ISBN: 978-1-4614-2298-3
Online ISBN: 978-1-4614-2299-0
eBook Packages: Mathematics and StatisticsMathematics and Statistics (R0)