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

[Merged by Bors] - feat: Basic conditional probability lemmas #10785

Closed
wants to merge 5 commits into from

Conversation

YaelDillies
Copy link
Collaborator

From PFR


Open in Gitpod

@YaelDillies YaelDillies added awaiting-review t-measure-probability Measure theory / Probability theory labels Feb 21, 2024
Copy link
Contributor

@RemyDegenne RemyDegenne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Mathlib/Probability/Distributions/Uniform.lean Outdated Show resolved Hide resolved
Comment on lines 231 to 232
lemma law_of_total_probability {Y : Ω → α} (hY : Measurable Y) (μ : Measure Ω) [IsFiniteMeasure μ] :
μ = ∑ y, μ (Y ⁻¹' {y}) • (μ[|Y ← y]) := by
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you revert this equality, and give a more descriptive name to the theorem, mentioning sum and cond?

I also don't like that name because this is not the only statement that could be called "law of total probability". For example, when I think of that law, I imagine the first of the two equalities on the wikipedia page: https://en.wikipedia.org/wiki/Law_of_total_probability . There is also the continuous case...

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about now?

@RemyDegenne RemyDegenne added awaiting-author A reviewer has asked the author a question or requested changes and removed awaiting-review labels Feb 22, 2024
@YaelDillies YaelDillies added awaiting-review and removed awaiting-author A reviewer has asked the author a question or requested changes labels Feb 22, 2024
@RemyDegenne
Copy link
Contributor

LGTM!
bors r+

@github-actions github-actions bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review labels Feb 22, 2024
mathlib-bors bot pushed a commit that referenced this pull request Feb 22, 2024
@mathlib-bors
Copy link
Contributor

mathlib-bors bot commented Feb 22, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat: Basic conditional probability lemmas [Merged by Bors] - feat: Basic conditional probability lemmas Feb 22, 2024
@mathlib-bors mathlib-bors bot closed this Feb 22, 2024
@mathlib-bors mathlib-bors bot deleted the cond_eq_zero branch February 22, 2024 18:08
thorimur pushed a commit that referenced this pull request Feb 24, 2024
thorimur pushed a commit that referenced this pull request Feb 26, 2024
riccardobrasca pushed a commit that referenced this pull request Mar 1, 2024
dagurtomas pushed a commit that referenced this pull request Mar 22, 2024
Louddy pushed a commit that referenced this pull request Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge This PR has been sent to bors. t-measure-probability Measure theory / Probability theory
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants