In the previous two chapters, two types of strategies were used in the summarization of posterior distributions. If the sampling density has a familiar functional form, such as a member of an exponential family, and a conjugate prior is chosen for the parameter, then the posterior distribution often is expressible in terms of familiar probability distributions. In this case, we can simulate parameters directly by use of the R collection of random variate functions (such as rnorm, rbeta and rgamma), and we can summarize the posterior by computations on this simulated sample. A second type of computing strategy is what we called the “brute-force” method. In the case where the posterior distribution is not a familiar functional form, then one simply computes values of the posterior on a grid of points and then approximates the continuous posterior by a discrete posterior that is concentrated on the values of the grid. This brute-force method can be generally applied for oneand two-parameter problems such as those illustrated in Chapters 3 and 4.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2007 Springer Science+Business Media, LLC
About this chapter
Cite this chapter
(2007). Introduction to Bayesian Computation. In: Albert, J. (eds) Bayesian Computation with R. Use R!. Springer, New York, NY. https://doi.org/10.1007/978-0-387-71385-4_5
Download citation
DOI: https://doi.org/10.1007/978-0-387-71385-4_5
Publisher Name: Springer, New York, NY
Print ISBN: 978-0-387-71384-7
Online ISBN: 978-0-387-71385-4
eBook Packages: Mathematics and StatisticsMathematics and Statistics (R0)