Autocorrelation Function (ACF)

Computes ACF for a given series and plots correlogram.

You are now following this Submission

Computes ACF for a given series. Returns a vector of autocorrelations through lag p. Also produces bar graph of autocorrelations, with rejection region bands for testing (under white noise assumption) each autocorrelation = 0.

Example: >> myacf = acf(y,12)

Does not require any toolboxes.

Cite As

Calvin Price (2026). Autocorrelation Function (ACF) (https://uk.mathworks.com/matlabcentral/fileexchange/30540-autocorrelation-function-acf), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: Estimate AutoCorrelation Function (ACF)

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0