Friedland Recreation Chapter 8 - #1121
Conversation
Update prep_sphinx_conf.py
Update chapter_7.rst
Update chapter_7.rst
|
That looked horrible and I fixed it. I copied the results from the actual run and forgot to replace with the values from the text.
I don't know that this is a fair comment lol, you are looking at columns that are just data, of course it's not "useful". When I was constructing this workbook, I was thinking what would be most useful to a reader if they wanted to recreate the examples in the text, and do only that. The chapter 11 stuff is doing so much more than teaching users how to use the package, it's actually doing reconstruction with exhibits, and imo, is too much. It's actually harder for the users to figure out exactly which line of code will recreate the numbers. I'm not saying we shouldn't go there, but I don't think that is a priority now. If we think this is the MVP and are all aligned, than I will do that, but we should all come to an agreement here. Anyways, we have a few chapters in now, and they all look widely different. We will need to decide how to standardize them. Please take another look and see if I missed anything... |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 577a718. Configure here.
|
Ok. I reworked the exhibits and now they look much more like Chapter 7's now. Please take a look and let me know of any other feedback. |
|
exhibit_i_s1["CDF Reported (4)"] = origin_cdf(auto_bi["Reported Claims"], reported_pattern).values
exhibit_i_s1["CDF Paid (5)"] = origin_cdf(auto_bi["Paid Claims"], paid_pattern).valuesi've been harping on this to the other collaborators, so i gotta be fair here and give you the same feedback. we should use the chainladder API whenever we can. so either |
|
@kennethshsu didn't notice you moved it out of draft. we consolidated the two scenarios for the us auto dataset. could you please update your |
|
Sorry, I meant to tag you again... Good call on the pattern stuff, I updated that and you probably saw already. And I guess now you made your point about having both cdf/ldf in I'll create a ticket on the "as_series", maybe And I migrated the auto dataset from Feel free to take another look and let me know if there's any other feedback. Thanks sir!! @henrydingliu |
|
Opened #1190 |
| period_end=True, | ||
| date_format=development_format | ||
| ) | ||
| if development_format == "%Y-12-31": |
There was a problem hiding this comment.
after doing some research, this looks to be only applicable to the friedland_gl_self_insurer dataset. what was the issue that needed this line to resolve? Do we have a bigger gap here when the development date is at the end of the month?
There was a problem hiding this comment.
I think maybe because it's the only "1D" triangle (i.e. no development, latest valuation only), so it defaults to OYDM instead of OYDY, and OYDM will get you Jan 31 instead. If you have developments (which is really valuations lol), those are mapped/inferred correctly because the "D" will map to the same "end" on the origin ("Y").


Summary of Changes
Populationtofriedland_gl_self_insurerEarned Premiumtofriedland_us_auto_chg_prod_mixEarned Premiumtofriedland_us_auto_steady_statefriedland_us_auto_steady_state.csvRelated GitHub Issue(s)
#588
#919
Additional Context for Reviewers
Preview here
uv run pytest) and documentation changes (uv run jb build docs --builder=custom --custom-builder=doctest)Note
Medium Risk
Changes core Triangle date parsing for a specific
development_format, which can affect lag/grain for datasets using calendar-year-as-year-end; sample data changes are low risk.Overview
Adds Friedland chapter 8 to the docs table of contents (
friedland/chapter_8.ipynb).Triangle development dates: When
development_formatis%Y-12-31, development values are normalized to calendar year-end viato_period("Y").to_timestamp(how="e")after parsing—addressing year-end calendar-year development handling (related to #919).Sample
friedland_gl_self_insurer: Manifest and CSV now include a Population column alongside reported/paid claims; the sample already usesdevelopment_format: "%Y-12-31".Reviewed by Cursor Bugbot for commit d9c2bfc. Bugbot is set up for automated code reviews on this repo. Configure here.