Probability and Statistics: Assignment 6

When these problems ask you to use BernBeta.R, you should instead use the function, bern_data(), that I provided in class.

  1. Exercise 6.1

  2. Modify the function, bern_data(), so that it returns the 95% HDI of the posterior. It doesn’t have to be indicated or drawn on the plot, though that would be a nice feature.

  3. Exercise 6.2

  4. Exercise 6.4

  5. Exercise 6.5