Exercise

Popularity for New Songs

Beyoncé's most recent album, Lemonade, is not in our songs dataset. Let's predict how popular a song on that album would be. The Lemonade album was released 663 days before this dataset was created. The stan_model object you created in the last exercise is loaded in your environment.

Instructions

100 XP
  • Create a data frame of new data to be predicted including the song_age and artist_name variables
  • Create a posterior distribution for predicted popularity of a song on Lemonade
  • Print the predicted popularity for the first 10 draws from the posterior distribution
  • Print a summary of the posterior predictions for the 1 new observation