compare_methods
Compare chain ladder and Bornhuetter-Ferguson reserve estimates on the same triangle to find total deltas and the largest divergence between methods.
Instructions
Run chain ladder + Bornhuetter-Ferguson on the same triangle and return a side-by-side comparison. Pro tier.
The canonical "second opinion" — when both methods agree, the reserve is defensible; when they diverge, the divergence is the finding. Reports total deltas plus the single AY where the two methods disagree most.
Args:
triangle: As in compute_chain_ladder.
a_priori_ultimates: One expected ultimate per AY for the BF
method.
selected_factors, tail, excluded: As in compute_chain_ladder.
Returns either:
- On success: {chain_ladder, bornhuetter_ferguson, diffs_by_ay, total_diff_ultimate, total_diff_ibnr, largest_divergence}.
- On license failure: {error, status}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| triangle | Yes | ||
| a_priori_ultimates | Yes | ||
| selected_factors | No | ||
| tail | No | ||
| excluded | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||