KDE quantiles#

See also

API Documentation: plot_kde()

../_images/mpl_plot_kde_quantiles.png

import matplotlib.pyplot as plt
import numpy as np

import arviz as az

az.style.use("arviz-doc")

dist = np.random.beta(np.random.uniform(0.5, 10), 5, size=1000)
az.plot_kde(dist, quantiles=[0.25, 0.5, 0.75])

plt.show()

import numpy as np

import arviz as az

dist = np.random.beta(np.random.uniform(0.5, 10), 5, size=1000)
ax = az.plot_kde(dist, quantiles=[0.25, 0.5, 0.75], backend="bokeh")