chainladder-python icon indicating copy to clipboard operation
chainladder-python copied to clipboard

Incorrect Cape Cod reserve when incurred loss = 0

Open cdietrich215 opened this issue 1 year ago • 1 comments

I noticed a minor issue when reserving using the Cape Cod. When incurred or paid loss is $0 for an accident period, the Cape Cod method will predict $0 of Ultimate Loss, when theoretically there should still be a reserve > $0. This may matter for some smaller insurers.

The BF and Benktander methods in this package both correctly set ultimate losses to be (a priori) * (sample weight) * (1 - 1/CDF) in these situations. I believe that the Cape Cod method should do the same. This method currently sets IBNR to 0 (or null).

cdietrich215 avatar Aug 10 '22 16:08 cdietrich215

Thanks. I didn't know about this error.

Reproducible example:

import chainladder as cl

triangle = cl.load_sample('raa')
premium = triangle.latest_diagonal * 0 + 50000
triangle.loc[:,:,'1987',48] = 0
cl.CapeCod().fit(triangle, sample_weight=premium).ultimate_

jbogaardt avatar Aug 10 '22 19:08 jbogaardt

Can close the ticket once #368 is merged.

kennethshsu avatar Nov 17 '22 05:11 kennethshsu

Reopening until release of 0.8.14

jbogaardt avatar Nov 20 '22 00:11 jbogaardt