LoslegenKostenlos starten

Changing Priors

Now let's change the prior distributions for our Spotify model. Changing the priors allows us to specify our own beliefs about the expected values of the parameters. The songs dataset is already loaded.

Diese Übung ist Teil des Kurses

<Kurs>Bayesian Regression Modeling with rstanarm</Kurs>
Kurs ansehen

Übungsanweisungen

  • Predict popularity from song_age
  • Create a model, flat_prior that uses flat priors for all parameters
  • Print a summary of the prior distributions to the screen

Interaktive praktische Übung

Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.

# Estimate a model with flat priors
flat_prior <- stan_glm(___, data = ___,
    ___ = ___, ___ = ___, ___ = ___)

# Print a prior summary
___(flat_prior)
Code bearbeiten und ausführen