Hi
I was wondering how to get the orange values (Ref Vals) from the attached diagram from either arviz.plot_posterior Plot or from another function.
Hi
I was wondering how to get the orange values (Ref Vals) from the attached diagram from either arviz.plot_posterior Plot or from another function.
Welcome!
You can specify the reference value (the orange line) via the ref_val
argument to plot_posterior()
. The full documentation is here.
To get the values you can just grab the posterior and count how many draws fall below the value, like (idata.posterior["y"] < -2).mean(("chain", "draw"))