Compute the Box–Pierce or Ljung–Box test statistic for examining the null hypothesis of independence in a given time series. These are sometimes known as ‘portmanteau’ tests.
ljung_box(x, lag = 1, dof = 0, ...)
box_pierce(x, lag = 1, dof = 0, ...)
portmanteau_tests
An object of class list
of length 2.
A vector of numeric features for the test's statistic and p-value.