Skip to content

Capping and Trending #302

Answered by jbogaardt
henrydingliu asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by henrydingliu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants