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.

This exercise is part of the course

Fundamentals of Bayesian Data Analysis in R

View Course

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

data = c(1, 0, 0, 1, 0, 0,
         0, 0, 0, 0, 0, 0, 0)
         
# Extract and explore the posterior