models.loss_ratio_chart()
The loss ratio chart (CAS Monograph 5, section 7.2.3): rows sorted by
Usage
models.loss_ratio_chart(
y,
pred,
premium,
exposure=None,
bands=10,
)predicted loss ratio pred / premium against the current premium, cut into bands of about equal exposure, with each band’s actual loss ratio.
Parameters
y: list of floatpred: list of floatpremium: list of float-
Current premium, positive.
exposure: list of float = Nonebands: int = 10
Returns
list of dict-
exposure, premium, expected,
actual, loss_ratio andexpected_loss_ratioper band.