You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] TailBondy fails on non-annual triangles and with projection_period outside 12-23 #1623
Yes, this bug occurs on the latest version (main at 46727b1: chainladder 0.10.1, Python 3.12.15, numpy 2.3.3, pandas 2.3.3).
Describe the bug in words
TailBase.fit gives ldf_ one tail column per development period in projection_period plus one for the rest (base.py L27–L39): 2 for annual data at the default, 5 for quarterly, 13 for monthly. TailBondy.fit then rebuilds ldf_.values with 2 tail columns whatever the grain (bondy.py L187–L207), so the values and ddims disagree and nan_triangle fails at core/base.py L512. TailBondy therefore works only on annual triangles with projection_period from 12 to 23. TailConstant fits the same inputs.
A local change evaluates Bondy's curve over every projected period and fills each tail column from it. The annual default output is unchanged, tail_ comes out the same for every projection_period, and the tails tests pass. #1304 edits the same lines without changing the column counts.
Activity