Durbin-Watson test
The aim of the Durbin-Watson test is to verify if a time series presents autocorrelation or not. Specifically, let’s consider a time series  modeled with an AR(1) model, i.e.  then, the null hypothesis  of the test is the absence of autocorrelation, i.e.   The Durbin-Watson statistic, denoted as , is computed as:  and under  the DW statistic is approximately  The test always generates a statistic between 0 and 4. However, there is not a known distribution for critical values. Hence to establish if we can reject or not  when we have values very different from 2, we should look at the tables.
 Breush-Godfrey
The Breush-Godfrey test is a generalization of the Durbin-Watson allowing multiple lags in the regression. The null hypothesis  of the test is the absence of autocorrelation up to the order , i.e.   To evaluate  usually is fitted an AR(p) model on the a time series , i.e.  and then look at the F-test (Equation 15.18), that under  is distributed as a Fisher–Snedecor (Equation 32.3), with  and  degrees of freedom. Alternatively, is is possible to use the  statistic, i.e.   where  is the R-squared (Equation 15.15) of the AR(p) regression defined in Equation 24.2.
 Box–Pierce test
Let’s consider a sequence of  IID observations with mean zero and finite variance, i.e.  and . Then, the autocorrelation for a generic -lag can be estimated as:  One can note that the numerator is a sum of IID random variables with variance . By CLT as   The denominator instead can be seen as  Taking the ratio of  and  gives  Therefore, as   A classic result gives from Bartlett (1946) provides the covariance matrix of sample autocorrelations of a stationary process for large , i.e.   with . Under white noise assumption ( for ), this simplifies to  Hence, recalling that under normality  one can generalize the result considering -auto correlations. More precisely, let’s define a vector containing the first  standardized auto-correlations. Due to the previous result it converges in distribution to a multivariate standard normal, i.e.   To test the following set of hypothesis,  it is possible to recall that the sum of the squares of -normal random variable is distributed as a . Then, Box and Pierce (1970) proved that the statistic defined as  is distributed as a  with  degrees of freedom. In general, depending on the value of the statistic on a sample , one obtain that  where  is the quantile with probability  of a  random variable with  degrees of freedom.
Note that such test, also known as Portmanteau test, provide an asymptotic result valid only for large samples. Moreover, the assumption of the test is that the observations are IID, hence the test does no apply in presence of heteroskedasticity.
 
 
 Ljung-Box test
In general, the Box–Pierce test is an asymptotic test that holds as . For finite n,  tends to underestimate the true correlation . Ljung and Box (1978) sharpened the analysis by deriving the finite-sample second moments of the residual autocorrelations when the model is correct. They show (for ):  where  appears because the numerator of  uses only  usable pairs. The extra  reflects exact finite-sample algebra for sums of products and the random denominator (sum of squares). Hence, instead of treating each  as if it had variance  (Box–Pierce assumption), the Ljung–Box statistic rescales by  to better match the finite-sample distribution.
Standardizing  and taking the square one obtain the Ljung-box statistic, i.e.   In general, depending on the value of the statistic on a sample , one obtain that  where  is the quantile with probability  of the  distribution with  degrees of freedom. If we reject , the time series presents autocorrelation, otherwise if  is not rejected we have no autocorrelation.
Bartlett, M. S. 1946. 
“On the Theoretical Specification and Sampling Properties of Autocorrelated Time-Series.” Supplement to the Journal of the Royal Statistical Society 8 (1): 27–41. 
https://doi.org/10.2307/2983611.
 
Box, George E. P., and David A. Pierce. 1970. 
“Distribution of Residual Autocorrelations in Autoregressive-Integrated Moving Average Time Series Models.” Journal of the American Statistical Association 65 (332): 1509–26. 
https://doi.org/10.1080/01621459.1970.10481180.
 
Ljung, Greta M., and George E. P. Box. 1978. 
“On a Measure of Lack of Fit in Time Series Models.” Biometrika 65 (2): 297–303. 
https://doi.org/10.1093/biomet/65.2.297.