Friedland Recreation Chapter 8#1121
Conversation
Update prep_sphinx_conf.py
Update chapter_7.rst
|
Thanks so much for the feedback!
I pulled again from main now that chapter 9 is in, there should be no diffs now.
Yes, and I like this implementation better too.
Good call, revised.
Ehh, I think I am going to leave these in now, it will be easier to trace back if something is failing. Let me know how strong your opinion is lol...
Good call, will remove those. I tried to do remove as many as I could but missed some.
Reprinted.
Hmm I just did it using the Trend and rebasing inside Triangle, I don't really like it. Do you have a better solution here? I think there's opportunity to improve this in TrendConstant by just adding in a
Oh yes, I'll use
I can see the benefit of both, though I still feel like that's an overkill as the key of this recreation is to show how to perform calculations/analysis using the package, not so much exhibit building. I do think once all the chapter are in, we need to sync up to make sure they all look the same relatively. |
|
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... |




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
The
development_format == "%Y-12-31"branch changes how development axes and lags are built for any triangle using that format, which can shift downstream reserving results; sample CSV edits are documentation/test data only.Overview
Adds Friedland Chapter 8 to the docs TOC (
friedland/chapter_8.ipynb) and extends bundled Friedland sample data so Chapter 8 examples can use exposure-style measures.Triangle construction: When
development_formatis"%Y-12-31", development dates are normalized to year-end timestamps viato_period("Y").to_timestamp(how="e")in_set_development, addressing the year-end valuation bug from #919 for samples likefriedland_gl_self_insurer.Sample updates:
friedland_gl_self_insurergains a Population column (manifest + CSV);friedland_us_auto_chg_prod_mixandfriedland_us_auto_steady_stategain Earned Premium;friedland_us_auto_steady_state.csvalso corrects accident-year row errors.Reviewed by Cursor Bugbot for commit 0c07941. Bugbot is set up for automated code reviews on this repo. Configure here.