Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Marginalize entire column #8

Open
ibab opened this issue Jan 26, 2016 · 0 comments
Open

Marginalize entire column #8

ibab opened this issue Jan 26, 2016 · 0 comments
Labels

Comments

@ibab
Copy link

ibab commented Jan 26, 2016

It's useful to be able to integrate multi-dimensional distributions to marginalize out certain variables.
For example, when you want to compare a multi-dimensional distribution to data, you can histogram each column separately, and plot the distribution marginalized over all variables except the current one.
(When we leave out the other variables when plotting the data distribution, they essentially become "hidden" and need to be marginalized over when plotting the PDF).

Maybe something like

p = ... # multi-dimensional distribution
X = linspace(a, b, 200)
y = p.pdf(X, marginalize=(0, 2))
plt.plot(X, y)

could work.
Here, p would be three-dimensional and we would want to plot the second column.

@glouppe glouppe added the API label Jan 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants