For the Command Pm. Plot_Posterior of Pymc3

Usually, I find we use the pm.binomial() and so forth. and using the pm.plot_posterior we get the Discrete graph, my question is why my graph I have to get is a curve? Could someone enlighten me?

I want to get:

But I get the graph:

1 Answer

The kind argument accepts either "kde" (default for continuous) or "hist".

import arviz as az

az.plot_posterior(trace, kind="hist")

Please see the documentation.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Chloe Bennett

Chloe Bennett

Culture, Media & Entertainment Columnist

Chloe Bennett explores the intersection of pop culture, streaming entertainment, digital trends, and contemporary lifestyle. Her weekly commentary reaches thousands of culture enthusiasts.

Share this article
Twitter Facebook Pinterest