LOO-PIT ECDF Plot#
Plot LOO predictive ECDF compared to ECDF of uniform distribution to assess predictive calibration.
See also
API Documentation: plot_loo_pit()
import matplotlib.pyplot as plt
import arviz as az
az.style.use("arviz-doc")
idata = az.load_arviz_data("radon")
az.plot_loo_pit(idata, y="y", ecdf=True)
plt.show()
import arviz as az
idata = az.load_arviz_data("radon")
ax = az.plot_loo_pit(idata, y="y", ecdf=True, color="orange", backend="bokeh")