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.
Calvin Price (2022). Autocorrelation Function (ACF) (https://www.mathworks.com/matlabcentral/fileexchange/30540-autocorrelation-function-acf), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired: Estimate AutoCorrelation Function (ACF)
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!