BaşlayınÜcretsiz Başlayın

Predicted score distributions

Now let's practicing using posterior predictive scores to look at how our Spotify model fits to the real data.

Bu egzersiz

Bayesian Regression Modeling with rstanarm

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

  • Calculate the posterior predicted scores for stan_model
  • Print a summary of the observed popularity scores in the songs data
  • Compare this to a summary of the 1st and 10th replications

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Calculate posterior predictive scores
predictions <- ___(stan_model)

# Print a summary of the observed data
summary(songs$___)

# Print a summary of the 1st replication
summary(predictions[___,])

# Print a summary of the 10th replication
summary(predictions[___,])
Kodu Düzenle ve Çalıştır