Clark Growth Curves

Clark Growth Curves#

import chainladder as cl
import numpy as np

This example demonstrates one of the attributes of the :class:ClarkLDF. We can use the growth curve G_ to estimate the percent of ultimate at any given age.

# Grab Industry triangles
clrd = cl.load_sample('clrd').groupby('LOB').sum()

# Fit Clark Cape Cod method
model = cl.ClarkLDF(growth='loglogistic').fit(
    clrd['CumPaidLoss'],
    sample_weight=clrd['EarnedPremDIR'].latest_diagonal)

# sample ages
ages = np.linspace(1, 300, 30)

# Plot results
results = model.G_(ages).T
Hide code cell source
import matplotlib.pyplot as plt
plt.style.use('ggplot')
%config InlineBackend.figure_format = 'retina'

ax = results.plot(
    title='Loglogistic Growth Curves',
    xlabel='Age', ylabel='% of Ultimate');
../_images/c2a8c0c680639e4f8ad6dde14c3d6faae3c43c3dd462259f6cc297eba680eb8e.png