statsmodels.tsa.stattools.acovf(x, unbiased=False, demean=True, fft=False)[source]

Autocovariance for 1D


x : array

Time series data. Must be 1d.

unbiased : bool

If True, then denominators is n-k, otherwise n

demean : bool

If True, then subtract the mean x from each element of x

fft : bool

If True, use FFT convolution. This method should be preferred for long time series.


acovf : array

autocovariance function