Capping and Trending #302
Answered
by
jbogaardt
henrydingliu
asked this question in
Q&A
-
The tutorials go through on-the-fly capping and trending directly on the Triangle class. Is there a way to apply detrended caps? |
Beta Was this translation helpful? Give feedback.
Answered by
jbogaardt
May 24, 2022
Replies: 1 comment
-
Maybe like this? import chainladder as cl
import numpy as np
prism = cl.load_sample('prism')['Paid'].incr_to_cum()
detrended_cap = (prism.sum().latest_diagonal*0+25000).trend(-.05) # Create a detrended cap
detrended_cap_triangle = np.minimum(prism, detrended_cap) # Apply the cap |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
henrydingliu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Maybe like this?