chainladder.model_diagnostics#
- chainladder.model_diagnostics(model: Triangle | MethodBase | Pipeline, name: str | None = None, groupby: str | list(str) | None = None) Triangle[source]#
A helper function that summarizes various vectors of an IBNR model as columns of a Triangle
- Parameters:
- model: Triangle|MethodBase|Pipeline
A predicted Triangle, chainladder IBNR estimator or Pipeline
- name: str, optional (default=None)
An alias to give the model. This will be added to the index of the return triangle.
- groupby:
The index level at which the model should be summarized
- Returns:
- Triangle with relevant figures as columns, including
Latest: Cumulative value at the latest valuation date, equivalent tolatest_diagonal
Month/Quarter/Year Incremental: Actual emergence between the latest valuation and the one prior valuation date
LDF: Age-to-age loss development factor to the next development/valuation period (fromldf_); ignored ifgroupbyis supplied
CDF: Cumulative loss development factor from current age to ultimate (fromcdf_); ignored ifgroupbyis supplied
Ultimate: Projected ultimate loss from the fitted IBNR model (ultimate_)
IBNR: Ultimate - Latest
Run Off 1/2/3...: Expected incremental emergence in successive future valuation periods (fromfull_expectation_)
Apriori: Expected ultimate for Benktander family of methods (fromexpectation_)
- Columns from the original Triangle are cross-joined into the index.
Measurewill contain all the columns from the original Triangle.