Suppose you are modelling a linear regression $y_i = \alpha + \beta x_i + \epsilon_i$, in probabilistic terms: $$ \mu_i = \alpha + \beta x_i, $$ $$ y_i \sim \mathcal{N}(\mu_i, \sigma). $$
For each new data point $x_{new}$, when making predictions, you obtain a distribution over possible target variable values. As true density is not observed, we need a method to evaluate this against observed data.
My understanding is that the PIT (Probability Integral Transform) values can be such a method, and can be used to test whether the predictive densities are correctly specified i.e. the 95% forecast interval should contain the future value of the series in 95% of repeated applications.
It seems that once PIT values are obtained, if the predicted forecasts are correctly specified, then the PITs should be more or less uniformly distributed.
However, is it not clear to how these PIT values are calculated and I am yet to find an example of how to do so...
E.g. suppose you have the following output (i.e. observed values of target variable and samples from your posterior predictive (small sample size just for example purpose)), how would you calculate PIT values in this case:
Observed_Data Predictive_Distribution_Samples
10 [5, 6, 9, 9, 9, 10, 10, 11, 11, 14]
20 [15, 17, 19, 19, 19, 20, 21, 21, 21, 25]
30 [26, 26, 28, 29, 29, 30, 31, 33, 34, 37]