Hello
Hello

Reputation: 13

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:

enter image description here

But I get the graph:

enter image description here

Upvotes: 1

Views: 714

Answers (1)

merv
merv

Reputation: 76700

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.

Upvotes: 2

Related Questions