When these problems ask you to use BernBeta.R
, you should instead use the function, bern_data()
, that I provided in class.
Exercise 6.1
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.Exercise 6.2
Exercise 6.4
Exercise 6.5