check_residuals
Diagnose a fitted VARMA model by checking residual autocorrelation, cross-correlation, and portmanteau statistics; report large residuals, matrix structure, conclusions, and diagnostic figures.
Instructions
N4 — Check the last estimated model as Jenkins and Alavi (1981, §5.2) do, and show it as art's diagnosis: the report, then the figures.
The report: 1 · TABLE — (1) the large residuals, judged on the UNCORRELATED transformed residuals (the a_it correlate at lag 0, so one by one they cannot be judged), with their dates — a known cause goes to intervention analysis, in art, before anything else is read; (2) the residual correlation matrices R_k(a), with what is beyond the band; (3) the portmanteau matrix Q_ij, as a summary. 2 · WHAT IT SHOWS, 3 · CONCLUSIONS, 4 · DECISION. If the matrices show structure, a model for the residuals is entertained and combined with the fitted one, as at identification.
The figures, as drvus drew the diagnosis and their figure 7: fue's panel
for each residual series (the residuals with +-2 bands, the acf with its
Q, the pacf), and the residual ccf of each pair (GraphMaker's, with
Hosking's P). nlags (the matrices) defaults to max(6, frequency). The
portmanteaus keep at least 2 lags beyond the parameters: the legacy lags
move up when a long model in annual data would leave none.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "check_residuals"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| nlags | No |