LoslegenKostenlos starten

Posterior Predictive Testing

Now let's practice comparing our replicated predictions to our observed data more than one at a time. By comparing our data to all replications, we can assess how well the model fits the data.

Diese Übung ist Teil des Kurses

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

Übungsanweisungen

  • Plot the density of predicted scores from replication compared to the observed density
  • Create a scatter plot of the mean and standard deviations of the replicated predicted scores compared to the observed data

Interaktive praktische Übung

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

# Create density comparison
___(stan_model, "___")

# Create scatter plot of means and standard deviations
___(stan_model, "___")
Code bearbeiten und ausführen