Skip to content

[BUG] Development Factors #552

Open
Open
@cynthiatchetagni

Description

@cynthiatchetagni

Describe the bug
while calculating manually my chainladder development factors, I do not have the same results with the .ldf_

To Reproduce

import chainladder as cl

print("pandas: " + pd.version)
print("numpy: " + np.version)
print("chainladder: " + cl.version)

sinistres = pd.read_csv("sinistres.csv",sep='\t')
sinistres.head()

sinistreINC = cl.Triangle(sinistres,origin="origin",development="development",columns="values", cumulative=False)
sinistreINC = sinistreINC.grain("OYDY")
sinistreINC

dev = cl.Development().fit(sinistreINC)
dev

sinistreINC.link_ratio
sinistreINC.age_to_age.heatmap()

dev.ldf_


**Expected behavior**

```Manually CL factors
CL | 0,975521243 | 0,976456299 | 0,995125914 | 0,997399783 | 1


**Desktop (please complete the following information):**
pandas: 2.2.3
numpy: 2.0.2
chainladder: 0.8.23

[ExemplePartrat-1.xlsx](https://github.com/user-attachments/files/19008174/ExemplePartrat-1.xlsx)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions