- Notifications
You must be signed in to change notification settings - Fork2.2k
Add .dist().plot() method to pymc distributions#7306
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
It would be nice to quickly visualize a pymc distribution.This video andthis 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? |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 2 comments 2 replies
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
The API since PyMC3 (which that example uses). Something like |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
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 |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Does preliz give a mapping between its parametrizations and the ones PyMC uses? |
BetaWas this translation helpful?Give feedback.
All reactions
-
PreliZ uses the same parametrization used by PyMC, including alternative parametrization. |
BetaWas this translation helpful?Give feedback.