sbi.diagnostics.check_tarp#
- check_tarp(ecp, alpha)[source]#
check the obtained TARP credibitlity levels and expected coverage probabilities. This will help to uncover underdispersed, well covering or overdispersed posteriors.
- Parameters:
- Returns:
- area to curve, the difference between the ecp and alpha curve for
alpha values larger than 0.5. This number should be close to
0. Values larger than0indicated overdispersed distributions (i.e. the estimated posterior is too wide). Values smaller than0indicate underdispersed distributions (i.e. the estimated posterior is too narrow). Note, this property of the ecp curve can also indicate if the posterior is biased, see figure 2 of the paper for details (https://arxiv.org/abs/2302.03026).- ks prob: p-value for a two sample Kolmogorov-Smirnov test. The null
hypothesis of this test is that the two distributions (ecp and alpha) are identical, i.e. are produced by one common CDF. If they were, the p-value should be close to
1. Commonly, people reject the null if p-value is below 0.05!
- Return type:
atc