MBBEFD cumulative loss distribution should be used in your MBBEFD example, not G(x) exposure curve. #3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I think your MBBEFD example does not work. Seems it should use CDF F(x) of MBBEFD, not exposure curve G(x).
Because I was unsure of this, I created aggregate that should be completely fixed at exactly 1 claim per exposure, close to 1.000 loss intensity, E(X). This worked as expected using CDF F(x), and not as expected using G(x) provided in your example.
I tried to test fix completely in build of .rst, but don't know how to build .rst. I did test however via copy paste of the code chunks.
Demonstration of test is in html files of "issue-raised" folder of MBBEFD-edit branch in my copy of the repo.
Getting right loss degree using MBBEFD CDF, F(x)
https://htmlpreview.github.io/?https://github.com/hdavid333/aggregate/blob/MBBEFD-edit/issue_raised/agg%20MBBEFD%20using%20CDF.html
Not getting right loss degree using exposure curve, G(x)
https://htmlpreview.github.io/?https://github.com/hdavid333/aggregate/blob/MBBEFD-edit/issue_raised/agg%20using%20G%20(which%20does%20not%20seem%20correct%20as%20used).html