Session Ready
Exercise

Plotting Model Uncertainty

Because we used a Bayesian estimation, we can use the posterior distributions to create a predicted regression line from each draw in our posterior samples. These lines will show the uncertainty around our overall line. The songs and stan_model objects are already loaded, along with the model_intercept and model_slope that you used in the last exercise.

Instructions 1/4
undefined XP
  • 1
  • 2
  • 3
  • 4
  • Save the values of the (Intercept) and song_age from each draw from the posterior distributions of stan_model
  • Print the values to the screen