forked from casact/chainladder-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
30 lines (21 loc) · 841 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# -*- coding: utf-8 -*-
"""
Created on Mon Jun 19 15:19:58 2017
@author: jboga
"""
import chainladder as cl
RAA = cl.load_dataset('RAA')
ABC = cl.load_dataset('ABC')
UKMotor = cl.load_dataset('UKMotor')
GenIns = cl.load_dataset('GenIns')
RAA_mack = cl.MackChainladder(cl.Triangle(RAA))
ABC_mack = cl.MackChainladder(cl.Triangle(ABC), alpha=2, tail=True)
UKMotor_mack = cl.MackChainladder(cl.Triangle(UKMotor))
GenIns_mack = cl.MackChainladder(cl.Triangle(GenIns), alpha=2, tail=True)
#print(RAA_mack.summary().round(3))
#print(ABC_mack.summary().round(3))
#cl.MackChainladder(M3IR5, tail=True)
MCL_inc = cl.load_dataset('MCLincurred')
MCL_paid = cl.load_dataset('MCLpaid')
MCL = cl.MunichChainladder(MCL_paid, MCL_inc)
#BS = cl.BootChainladder(cl.Triangle(RAA),n_sims=1000, process_distr="od poisson")