The Box-Pierce test is a portmanteau test for whether a group of time-series autocorrelations
is zero. For a series of length , using the first sample autocorrelations , its statistic is
Box, G. E. P. and Pierce, D. A. "Distribution of Residual Autocorrelations in Autoregressive-Integrated Moving Average Time Series
Models." J. Amer. Statist. Assoc.65, 1509-1526, 1970. https://doi.org/10.1080/01621459.1970.10481180.