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

Specifying informative priors

Now let's specify a custom prior so that we can have more control over our model. The songs dataset is already loaded.

Bu egzersiz

Bayesian Regression Modeling with rstanarm

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

Egzersiz talimatları

  • Predict popularity from song_age
  • Specify a normal prior distribution for the predictor with a mean of 20 and standard deviation of 0.1
  • Print the prior summary to the screen

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Estimate the model with an informative prior
inform_prior <- stan_glm(___ ~ ___, data = songs,
    ___ = normal(___ = 20, ___ = 0.1, autoscale = FALSE))

# Print the prior summary
___(inform_prior)
Kodu Düzenle ve Çalıştır