LBQ for Autocorrelation

The Ljung-Box Q statistic (LBQ) is a test statistic that you can use determine whether all the autocorrelations up to and including a specific lag are equal to 0. If the LBQ is greater than a specified critical value, then you can conclude that the autocorrelation is not equal to 0.