1. Learn
  2. /
  3. Courses
  4. /
  5. Fundamentals of Bayesian Data Analysis in R

Connected

Exercise

Looking at samples from prop_model

Here again is the prop_model function which has been given the data from our zombie experiment where two out of 13 zombies got cured. In addition to producing a plot, prop_model also returns a large random sample from the posterior over the underlying proportion of success.

Instructions 1/3

undefined XP
    1
    2
    3
  • Assign the return value of prop_model to a variable called posterior and take a look at the first number of samples using the command head(posterior).