# Calculating critical values of Durbin-Watson d statistic?

**URL:** <https://community.wolfram.com/t/calculating-critical-values-of-durbin-watson-d-statistic/18264>\
**Category:** Questions\
**Tags:** mathematica, statistics-and-probability\
**Created:** [June 12, 2021, 7:31am UTC](https://community.wolfram.com/t/calculating-critical-values-of-durbin-watson-d-statistic/18264 "2021-06-12T07:31:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xzczd](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/xzczd/32/21428_2.png) [@xzczd](https://community.wolfram.com/u/xzczd)\
**Post date:** [June 12, 2021, 7:31am UTC](https://community.wolfram.com/t/calculating-critical-values-of-durbin-watson-d-statistic/18264/1 "2021-06-12T07:31:01Z")

</div>

Recently a friend of mine complained to me, there seems to be no easy way to calculate _critical values of Durbin-Watson d statistic_ in _Mathematica_. Though my knowledge for statistics is primary, this sounds like something easy to implement, or even actually built-in, so I started out by searching the keywords in the document, but ended up with discovering the following amusing paragraph in the tutorial [LinearRegression/tutorial/LinearRegression](https://reference.wolfram.com/language/LinearRegression/tutorial/LinearRegression.html):

> The Durbin-Watson d statistic is used for testing the existence of a  
> first-order autoregressive process. …Critical values for the statistic  
> vary with sample size, the number of parameters in the model, and the  
> desired significance. **These values can be found in published tables.**

I had never seen negative words like this in the document of _Mathematica_! Does there exist certain essential difficulty for calculating critical values of Durbin-Watson d statistic?

---

<div class="post-metadata">

**Author:** ![ccarter](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/ccarter/32/36312_2.png) [@ccarter](https://community.wolfram.com/u/ccarter)\
**Post date:** [June 12, 2021, 6:47pm UTC](https://community.wolfram.com/t/calculating-critical-values-of-durbin-watson-d-statistic/18264/2 "2021-06-12T18:47:02Z")

</div>

This is unusual. It appears to be a quick rewrite of [“Standard Packages for Mathematica 3”:](https://www.amazon.com/Mathematica-3-0-Standard-Add-Packages/dp/0521585856/ref=sr_1_1?dchild=1&keywords=9780521585859&linkCode=qs&qid=1623523084&s=books&sr=1-1)  
which has the same first sentence “The Durbin-Watson d statistic is used for testing the existence of a first-order autoregressive process” on page 437.

The implementation doesn’t look too hard–it must be implemented under-the-hood? However, if the purpose of the statistic is to do regression, are the tables really necessary? And, in that case, why include the sentence?
