A test for autocorrelated errors. The Box-Pierce Q statistic is computed as the weighted sum of squares of a sequence of autocorrelations. If the errors of the model are white noise, then the Box-Pierce statistic is distributed approximately as a chi-square distribution with h – v degrees of freedom, where h is the number of lags used in the statistic and v is the number of fitted parameters other than a constant term. It is sometimes known as a portmanteau test. Another portmanteau test is the Ljung-Box test, which is a version of the Box-Pierce test.