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

add conditional probability #3

Open
btbonval opened this issue May 31, 2015 · 0 comments
Open

add conditional probability #3

btbonval opened this issue May 31, 2015 · 0 comments

Comments

@btbonval
Copy link
Owner

Should be fairly easy.

Let the distribution a1d6 (in code) / X (in math) be a pmf for a six-sided die.

p(X = 0 | X > 3) is obviously 0, but p(X > 5 | X > 3) might be interesting and is definitely easy to solve. It's generally p(X > 5 N X > 3) / p(X > 3).

If __and__ is overloaded to make contextual decisions a la the suggestion in #1, then p(X > 5 N X > 3) could be written a1d6 > 5 and a1d6 > 3, which would just resolve to a1d6 > 5. Divide by a1d6 > 3.

If there is an inequality object (which seems necessary for #1), then overloading the | operator (if possible) would be handy although maybe confusing (due to or connotation) resulting in a1d6 > 5 | a1d6 > 3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant