Skip to content

Conversation

Yosuke-Ito-345
Copy link
Contributor

Motivation for this change

This is a useful formula for calculating the expectation of a non-negative random variable.
This formula is indispensable to actuarial mathematics, too.

Checklist
  • added corresponding entries in CHANGELOG_UNRELEASED.md

  • added corresponding documentation in the headers

Reference: How to document

Merge policy

As a rule of thumb:

  • PRs with several commits that make sense individually and that
    all compile are preferentially merged into master.
  • PRs with disorganized commits are very likely to be squash-rebased.
Reminder to reviewers

@Yosuke-Ito-345
Copy link
Contributor Author

@affeldt-aist @t6s
Could you review this pull request?

@affeldt-aist affeldt-aist self-requested a review October 20, 2025 15:26
Copy link
Member

@affeldt-aist affeldt-aist left a comment

Choose a reason for hiding this comment

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

LGTM. I just tried to remove minor detours.

@Yosuke-Ito-345
Copy link
Contributor Author

Thank you for the review!


Let mu : {measure set _ -> \bar R} := @lebesgue_measure R.

Lemma expectation_nonneg_tail (X : {RV P >-> R}) : (forall x, 0 <= X x)%R ->
Copy link
Member

Choose a reason for hiding this comment

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

Maybe it is better if this lemma bears the identifier ccdf with a name such as ge0_expectation_ccdf? (The prefix ge0_ is to mark that there is a non-negativity hypothesis.)

@Yosuke-Ito-345
Copy link
Contributor Author

Thank you for the suggestion. I agree with you.
I modified the name and updated the pull request.

@affeldt-aist affeldt-aist merged commit 78d68d4 into math-comp:master Oct 21, 2025
54 of 57 checks passed
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

Successfully merging this pull request may close these issues.

2 participants