dispersion | R Documentation |
This function calculates dispersion based on the variance of the Probability Integral Transform (Var(PIT)).
dispersion(u, na.action = na.omit)
u |
vector of PIT values in [0,1] (see details) |
na.action |
function to handle the NA's. Default: |
The vector u
contains the PIT values u
=F(x
) for a predictive
distribution F and argument x
.
The variance is calculated in terms of the sample variance of the PIT values.
The variance of the PIT values (Var(PIT)) provides information on the dispersion of a calibrated predictive distribution. A variance of the PIT values equal to 1/12 ≈ 0.0833 corresponds to the variance of the uniform distribution on [0,1], which is desirable. A variance greater than 1/12 indicates underdispersion and a variance smaller than 1/12 indicates overdispersion of the predictive distribution.
Variance in terms of the sample variance of the PIT values.
David Jobst
Gneiting, T. and Ranjan, R. (2013). Combining predictive distributions. Electronic Journal of Statistics, 7, 1747-1782.
# simulated data
n <- 10000
u <- runif(n)
# dispersion calculation via Var(PIT)
dispersion(u = u)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.