arviz-devs / arviz

Exploratory analysis of Bayesian models with Python
https://python.arviz.org
Apache License 2.0
1.59k stars 395 forks source link

Improvements and changes to ECDF plots #2309

Open sethaxen opened 8 months ago

sethaxen commented 8 months ago

Tell us about it

Here are some proposed improvements to ECDF plots:

Thoughts on implementation

This notebook implements the bands and tests them on a few distributions. It also compares different methods of selecting the evaluation points.

sethaxen commented 7 months ago

Also, when the evaluation points are different from the sample points, it feels a little weird using step plots. Step plots give the sense that we know what the function values are between the points, but unlike the full ECDF, we don't. Line plots aren't much better, but we're more accustomed to lines in lineplots not necessarily implying interpolation. I wonder if we should only reserve step plots for the cases where eval points and sample points are the same (Edit: or at least make stepping configurable)