Replies: 1 comment
-
Hi @johalnes . This sounds cool, Not having access to proprietary reserving software, its difficult for me to know the gaps that may exist in I'm not familiar with European regs, so I could be off the mark here, but I typically use the import chainladder as cl
sample = cl.load_sample('tail_sample')
sample['rbns'] = sample['incurred'] - sample['paid']
pipe = cl.Pipeline([
('dev', cl.Development()),
('tail', cl.TailCurve(attachment_age=48, projection_period=0)),
('model', cl.Chainladder())])
pipe.fit(sample['paid'])
increm_future_paid = (pipe.named_steps.model.full_triangle_.cum_to_incr() - sample['paid'].cum_to_incr())
increm_future_paid_pct = increm_future_paid / increm_future_paid.sum('development') As far as discounting goes, there is a trend method. It's not my favorite method because its a bit confusing to use. Still I don't think it will give you what you need because we don't have a good solution for the timing of cashflows in the tail. For the sake of demonstration, (ignoring the cashflows at ultimate), the discounted_increm_future_paid_pct = increm_future_paid_pct.iloc[..., :-1].trend(
0.05, axis='valuation', start=sample.valuation_date, end=sample.valuation.max())
discounted_increm_future_paid_pct This may be way off base from your original question, if so, happy to take another stab at it with follow-up questions. |
Beta Was this translation helpful? Give feedback.
-
Hi,
Working on a demo to see if we can change from ResQ to this package together with notebooks or Streamlit. Mostly super simple to follow the documentation, and the package has developed nicely since last time I took a look some years ago! Really impressive 😄
The one thing I somewhat struggle with is getting discount factors in an easy fashion. Using the package sample data
Using Tailcurve for smoothing effect, and it's nice to get same dimensions as input triangle.
My issue now is that I'll like to get the payment patterns from paid, and discount the RBNS with some interest curve, specified from EIOPA in my case. To do this I'll like to only look at remaining part of the payment pattern for each accident year. But using diff I get a dispatch errror from keepdims.
![image](https://private-user-images.githubusercontent.com/8577145/254604473-e00f5821-42e4-4194-bf44-c045055273a7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1Nzc0MTcsIm5iZiI6MTczOTU3NzExNywicGF0aCI6Ii84NTc3MTQ1LzI1NDYwNDQ3My1lMDBmNTgyMS00MmU0LTQxOTQtYmY0NC1jMDQ1MDU1MjczYTcucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTRUMjM1MTU3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NTA3NGUxNDAxM2E3ZTA1MWVjY2QyZTEyZTJkNTIzZWEyMmZhNTBmYTU0ZDljMzFjZmU5NTMxZmExMDMwZjAzOSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.6NlFOPGX9rqisZqA-eiKRj0Bjw4_HDk2xfv88h43IzI)
I also tried a bit with pct_change, but I think it's an error with pct_chg should be pct_change.
I've added this to discussion instead of issue, beacuse I've got the impression that you have thought most thing over some times during this development and that maybe there is something clever that I may have missed? What would be your suggestion for discounting future cashflows?
Please let me know if I should add diff and pct_change to issue, and I'll try to implement a fix 😄
My solution is then to leave the safe space within chainladder and converts to pandas.
And my next step would probably be flatting it into sql and join technical provisions by year and interest rate by development.
Beta Was this translation helpful? Give feedback.
All reactions