Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

It would be nice to quickly visualize a pymc distribution. This video and this notebook describes how it can be done. Since this is a common situation with a known solution, I think this feature should be added as a built-in .dist().plot() method of all pymc distributions. Any reason not to add this as a standard feature?

You must be logged in to vote

Replies: 2 comments · 2 replies

Comment options

The API since PyMC3 (which that example uses). Something like pm.plot_dist(rv) would make more sense. Replace self.draw (which no longer exists) in that example by pm.draw(rv, draws=1000)

You must be logged in to vote
0 replies
Comment options

No strong opinion about this just wanted to mention two points.

This idea was already proposed and rejected, mainly argument was something along the lines of not (re)adding plotting code to pymc. Of course this can be revisited.

In the meantime, or as alternative you can use preliz to visualize distributions. It has methods for pdf, cdf and ppf, and also an interactive method to change parameters with sliders. https://preliz.readthedocs.io/en/latest/examples/param_space_1d_examples.html

You must be logged in to vote
2 replies
@ricardoV94
Comment options

Does preliz give a mapping between its parametrizations and the ones PyMC uses?

@aloctavodia
Comment options

PreliZ uses the same parametrization used by PyMC, including alternative parametrization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
💡
Ideas
Labels
None yet
3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.