--
You received this message because you are subscribed to the Google Groups "PyMC" group.
To post to this group, send email to py...@googlegroups.com.
To unsubscribe from this group, send email to pymc+uns...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pymc?hl=en.
To unsubscribe from this group, send email to pymc+uns...@googlegroups.com.
Thanks to your help, I've come up with something quite serviceable.
https://gist.github.com/665605
The plot2Ddist function plots the joint distribution of two variables,
with estimated density contours and marginal histograms. It includes
code allowing the contours to be specified by the fraction of points
contained inside them, which is useful for plotting
credible/confidence regions.
There's an example script based on the func_envelope example that you sent me.
The slowness comes from the Gaussian Kernel Density estimate (from
scipy.stats.gaussian_kde), which scales with the number of samples.
The KDE is used then used to find the contours (using matplotlib). I'm
sure there are more efficient ways to find the contours.
-Roban
--
Roban Hultman Kramer | Zwicky Fellow | Institute for Astronomy
ETH Zürich (Swiss Federal Institute of Technology)