Open athowes opened 4 weeks ago
Could look at how scoringutils
handles PIT histograms in the discrete case I remember there being an adaption/approximation.
Some details on how to handle this are in
Predictive Model Assessment for Count Data Claudia Czado, Tilmann Gneiting, Leonhard Held Biometrics, Volume 65, Issue 4, December 2009, Pages 1254–1261 https://doi.org/10.1111/j.1541-0420.2009.01191.x
In writing tests for the function
posterior_predict_latent_lognormal
I've generated quantiles of the data within the posterior predictive distribution:I'm interested as to whether these quantiles are as you'd expect them to be distributed. The challenge is that the data are discrete e.g.
Hence, how can I test this? What distribution is expected? It's not $\mathcal{U}(0, 1)$ like in the continuous case.
Here are what the quantiles look like:
And a summary: