Friedland Chapter 11 - #1347
Friedland Chapter 11#1347henrydingliu wants to merge 10 commits into
Conversation
Pyright Type CompletenessView the full Project (full
Other symbols referenced but not exported by
Symbols without documentation:
Patch (exported symbols added or changed by this PR): no exported symbol type-completeness changes detected. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1347 +/- ##
=======================================
Coverage 91.76% 91.76%
=======================================
Files 96 96
Lines 5475 5475
Branches 706 706
=======================================
Hits 5024 5024
Misses 327 327
Partials 124 124
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 6f77eee. Configure here.
|
@kennethshsu carrying over the conversation from #1176
I gotta be honest here. I don't think the second way is what we should be doing, outside of spots where no triangles were given. running two half-marathons (triangle to ldf, override ldf to ultimate) is not a full marathon (triangle to ultimate).
i don't know how we got here. when i started chapter 7, your initial feedback was, should we even need to do any rounding? and now we are trying to match every single number. these numbers clearly reconcile.
I used stylers to make it work
added |
I agree, except that this is the "traditional" way of doing things, even Friedland herself. After the age-to-age factors are studied, we make a selection, so there's always a pause to select LDFs (i.e. a half marathon). If you don't want to show it, that's fine, I just think it would be helpful to the readers.
I still prefer the rounding to be perfect, you either don't round and say the difference is due to rounding, or round and get the numbers to match exactly. I don't think it's ok to round, and still don't get the numbers to match exactly (i.e. in this case to 3 decimal vs 4 decimal, which is just truncated by display). But will approve and let it up to you! Not gonna argue with you over rounding procedures :) |
i'm really not following. |
|
I''m just saying, typically, one would analyze the age-to-age triangles and come up with many different estimated LDFs using different averages, you then "select" something, and by definition, this is a pause in the workflow. By using |
|
Yap, that's it. There can be a scenario where you are selecting different averages, for example switching between |
|
@kennethshsu i updated the rounding and somehow this isn't triggering a re-review. is this what you would expect? |
|
I think that should fix it, I migrated to the new GitHub rulesets a few weeks ago and I think you guys had that other issue in the GitHub folder right? This should fix it. |
|
Don't know if you want to make another dummy commit to test |








Summary of Changes
Related GitHub Issue(s)
Additional Context for Reviewers
Checklist
uv run pytest) and documentation changes (uv run --directory docs jb build . --builder=custom --custom-builder=doctest)Note
Low Risk
Documentation-only addition (notebook + TOC); no runtime or API changes to the library.
Overview
Adds Friedland Chapter 11 to the Jupyter Book as
docs/friedland/chapter_11.ipynband links it indocs/_toc.ymlafter Chapter 10.The notebook walks through frequency–severity reserving without a dedicated library API: it chains
Development,Chainladder,TailConstant,Trend,TriangleWeight,DisposalRate, andParallelogramOLFwith triangle arithmetic to match the textbook exhibits. Exhibits I–II use Approach 1 (separate count and severity development, then multiply). III–IV extend Approach 2 with trended frequency/severity, payroll/on-level premium, and tort reform. V–VI use Approach 3 (disposal rates to complete incremental counts, incremental paid severity with regression/trend, projected paid ultimates).Shared helpers format exhibit tables; each exhibit section ends with
assertchecks against Friedland reference values to catch regressions when the notebook is executed.Reviewed by Cursor Bugbot for commit 42476e0. Bugbot is set up for automated code reviews on this repo. Configure here.