Reconciling to Mack papers#1096
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): 46.2% fully typed (6 / 13); 1 no longer exported
Patch symbol details
|
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 bc6d203. Configure here.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1096 +/- ##
==========================================
+ Coverage 90.48% 90.76% +0.28%
==========================================
Files 91 91
Lines 5289 5287 -2
Branches 671 671
==========================================
+ Hits 4786 4799 +13
+ Misses 359 346 -13
+ Partials 144 142 -2
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:
|

Summary of Changes
restoring mack calculations incorrectly changed in #952
expanded docstrings to avoid future confusion
added definitive reconciliation to Mack94 and Mack97
indirectly resolves un-executed but would-fail doctests
Related GitHub Issue(s)
refers #1093
Additional Context for Reviewers
uv run pytest) and documentation changes (uv run jb build docs --builder=custom --custom-builder=doctest)Note
Medium Risk
Changes core Mack stochastic quantities used by Development and MackChainladder; incorrect sigma would affect reserve uncertainty, but new paper reconciliation tests reduce regression risk.
Overview
Restores Mack (1997)
sigma_inWeightedRegressionfor through-origin OLS by settingsigmatosqrt(mse)instead of the prior formula tied tostd_errandmse_denom, which had diverged from the papers (see #952). Docstrings and typing onWeightedRegressionare expanded sosigma_is documented as Mack’s process standard deviation, distinct from regression noise.Adds regression tests that compare
Development+MackChainladderoutputs to published tables in Mack (1994) and Mack (1997) (sigma, LDF standard errors, IBNR standard errors). Removes the standalonetest_sigma1development test that only checked equality across averaging methods.Reviewed by Cursor Bugbot for commit 97ab6d6. Bugbot is set up for automated code reviews on this repo. Configure here.