scikits.statsmodels.sandbox.tsa.acf

scikits.statsmodels.sandbox.tsa.acf(x, unbiased=True)

autocorrelation function for 1d

Parameters :

x : array

time series data

unbiased : boolean

if True, then denominators for autocovariance is n-k, otherwise n

Returns :

acf : array

autocorrelation function

Notes

This is based np.correlate which does full convolution. For very long time series it is recommended to use fft convolution instead.

If unbiased is true, the denominator for the autocovariance is adjusted but the autocorrelation is not an unbiased estimtor.

Previous topic

scikits.statsmodels.sandbox.descstats.descstats

Next topic

scikits.statsmodels.sandbox.tsa.acovf

This Page