Solutions tosome exercises from Bayesian Data Analysis ...

Solutions to some exercises from Bayesian Data Analysis, second edition, by Gelman, Carlin, Stern, and Rubin

4 Mar 2012 These solutions are in progress. For more information on either the solutions or the book (published by CRC), check the website, For each graph and some other computations, we include the code used to create it using the S computer language. The S commands are set off from the text and appear in typewriter font. If you find any mistakes, please notify us by e-mailing to gelman@stat.columbia.edu. Thank you very much. c 1996, 1997, 2000, 2001, 2003, 2004, 2006, 2007, 2009, 2010 Andrew Gelman, John Carlin, Hal Stern, and Rich Charnigo. We also thank Jiangtao Du for help in preparing some of these solutions and Ewan Cameron, Rob Creecy, Xin Feng, Lei Guo, Yi Lu, Pejman Mohammadi, Fei Shi, Ken Williams, Corey Yanovsky, and Peng Yu for finding mistakes.

We have complete (or essentially complete) solutions for the following exercises: Chapter 1: 1, 2, 3, 4, 5, 6 Chapter 2: 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 13, 16, 18, 19, 22 Chapter 3: 1, 2, 3, 5, 9, 10 Chapter 4: 2, 3, 4 Chapter 5: 1, 2, 3, 5, 6, 7, 8, 9, 10 Chapter 6: 1, 5, 6, 7 Chapter 7: 1, 2, 7, 15 Chapter 8: 1, 2, 4, 6, 8 Chapter 11: 1, 2 Chapter 12: 6, 7 Chapter 14: 1, 3, 4, 7 Chapter 17: 1

1.1a.

p(y) = Pr( = 1)p(y| = 1) + Pr( = 2)p(y| = 2) = 0.5N(y|1, 22) + 0.5N(y|2, 22).

-5

1.1b.

0

5

10

y

y ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download