interpret_diagnostics
Run Mack assumption diagnostics with plain-English verdicts and recommended actions for each finding, providing an overall assessment of model validity.
Instructions
Run Mack assumption diagnostics + label each result with a plain- English verdict and a recommended action. Pro tier.
Free-tier mack_diagnostics returns raw Z-scores and p-values; this
Pro variant adds:
• verdict band ("strong evidence" / "significant" / "borderline" / "no evidence") for each test, using the standard p-value cutoffs • a one-paragraph summary written so Claude can read it back to the user without further interpretation • a specific recommended action for each finding ("try BF", "weight recent years only", "investigate cells X, Y, Z", …) • an overall verdict pulling the three tests + outlier scan together into a single sentence
Use this when the user asks "is the chain ladder OK?", "should I publish this?", or "what does the model tell me about itself?".
Args:
triangle: As in compute_chain_ladder.
selected_factors: Length-(n_dev - 1) factor set used for the
point estimate.
excluded: Outlier exclusions to honour.
outlier_threshold: Absolute residual threshold for flagging
cells (default 2.0).
Returns either:
- On success: {calendar_year, independence, inflation, outliers, overall} — each test object carries stat,
p_value, verdict, summary, recommendation. The
outliers object also reports count, severity
(clean / mild / moderate / severe), and a list of flagged
cells.
- On license failure: {error: "pro_license_required", status: {...}}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| triangle | Yes | ||
| selected_factors | Yes | ||
| excluded | No | ||
| outlier_threshold | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||