The Logarithmic Posterior Predictive Density (LPPD) is a crucial metric in Bayesian model evaluation, particularly when comparing different models or assessing the predictive performance of a single model. Here's a breakdown:

How it works:

  1. Calculate the Posterior Predictive Distribution: For each new data point, calculate the probability of observing that value, given the posterior distribution of the model parameters.
  2. Take the Logarithm: Take the logarithm of each of these probabilities.
  3. Sum or Average: Sum or average the log-probabilities across all new data points.

What it tells you:

In essence:

The LPPD is a way to quantify how well a Bayesian model can predict new data. It's a valuable tool for model selection and evaluation, providing a measure of predictive accuracy that accounts for the inherent uncertainty in Bayesian inference.

Example

https://gist.github.com/viadean/15fe7107bc25b30e8ec88101f26ded57

Explanation:

  1. Simulated Data:
  2. Simulated Posterior Samples: