## diagnose.residual_tests()


The residual tests of a fitted model, in a fixed order, each applicable or with its reason.


Usage

``` python
diagnose.residual_tests(
    fitted,
    y,
    X,
    config=None,
)
```


`fitted` is a `dz.models.Fitted`; `y` and `X` the data it was fitted on. Ljung-Box (with the ARMA order as `model_df` for an ARIMAX), ARCH and Jarque-Bera take the model's residuals; Breusch-Godfrey, Breusch-Pagan, White and RESET are tests of an OLS regression and are run on the statsmodels OLS fit of the same data.
