Note: This page has been translated by MathWorks. Please click here

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Durbin-Watson test

`p = dwtest(r,x)`

`p = dwtest(r,x,Name,Value)`

```
[p,d] =
dwtest(___)
```

returns
the `p`

= dwtest(`r`

,`x`

)*p*-value for the Durbin-Watson test of the null hypothesis
that the residuals from a linear regression are uncorrelated. The
alternative hypothesis is that there is autocorrelation among the
residuals.

returns
the `p`

= dwtest(`r`

,`x`

,`Name,Value`

)*p*-value for the Durbin-Watson test with additional
options specified by one or more name-value pair arguments. For example,
you can conduct a one-sided test or calculate the *p*-value
using a normal approximation.

Was this topic helpful?