Comparison

Both tests check whether all autocorrelations up to lag are jointly zero (white noise test).

Box-Pierce Test

Ljung-Box Test

Key Differences

AspectBox-PierceLjung-Box
Formula
WeightingEqual weightsWeighted by
Best forLarge Small
approximationPoor for Better for all

Recommendations

Sample SizeTest to Use
Ljung-Box
Either (Ljung-Box still preferred)

Why Ljung-Box is Better

The weighting gives more weight to early lags where we have more data points, improving the approximation.