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

R-squared Posterior

First, let's get a posterior distribution of the R-squared statistic so we can make inferences about how predictive our model is likely to be. The stan_model using the Spotify data is already loaded.

Bu egzersiz

Bayesian Regression Modeling with rstanarm

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

Egzersiz talimatları

  • Calculate the posterior distribution of the R-squared statistic
  • Create a histogram of the R-squared distribution

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Calculate the posterior distribution of the R-squared
r2_posterior <- ___(stan_model)

# Make a histogram of the distribution
___(r2_posterior)
Kodu Düzenle ve Çalıştır