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

Marginalization over dichotomous variable #46

Closed
larryshamalama opened this issue Jul 5, 2022 · 2 comments
Closed

Marginalization over dichotomous variable #46

larryshamalama opened this issue Jul 5, 2022 · 2 comments

Comments

@larryshamalama
Copy link
Contributor

larryshamalama commented Jul 5, 2022

I know that this is ongoing work raised in issue 21 of AePPL, but is there a quick way to marginalize over a discrete parameter? Akin to the example provided in the issue linked above:

$$p(Y=y | X=0) * p(X=0) + p(Y=y | X=1) * p(X=1)$$

for some continuous $Y$ and dichotomous $X$. In this case, $X$ would be the variable indicating a customer churning or not and the difference between a contractual and non-contractual likelihood would be that one is the marginalized version of the other. I have not revisited the math in several weeks, but I'm fairly certain of this and the ability to marginalize likelihoods as such may provide better model building blocks rather than define a distribution class for each quadrant. Just an idea so far...

@larryshamalama larryshamalama added help wanted Extra attention is needed request discussion and removed help wanted Extra attention is needed labels Jul 5, 2022
@larryshamalama larryshamalama changed the title Marginalization over Bernouilli parameter Marginalization over dichotomous variable Jul 6, 2022
@ColtAllen
Copy link
Collaborator

Is there a status update on this? I see the linked issue was made before the pytensor fork.

@ColtAllen
Copy link
Collaborator

Any reason for this issue to remain open?

@twiecki twiecki closed this as completed Feb 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants