शुरू करेंमुफ़्त में शुरू करें

Predicted score distributions

अब आइए posterior predictive scores का उपयोग करने का अभ्यास करें ताकि देख सकें कि हमारा Spotify मॉडल असली डेटा पर कैसा फिट बैठता है.

यह अभ्यास पाठ्यक्रम का हिस्सा है

rstanarm के साथ Bayesian Regression Modeling

पाठ्यक्रम देखें

अभ्यास निर्देश

  • stan_model के लिए posterior predicted scores निकालें
  • songs डेटा में observed popularity scores का एक सारांश प्रिंट करें
  • इसकी तुलना 1st और 10th replications के सारांश से करें

इंटरैक्टिव व्यावहारिक अभ्यास

इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।

# 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[___,])
कोड संपादित करें और चलाएँ