Very large AR regressions

Very large autoregressions

You are now following this Submission

Heavily optimized for very large autoregressions (ie. 100 millions observations and 500 lags). Doesn't consume additional memory. Up to x100 increase in speed then running regressions on very large datasets vs naive estimation.

example:
[xtx, xty] = xL(y(2:end), [y(1:end-1) y(1:end-1).^2], [200 100]);
beta = inv(xtx)*xty;

runs regression of y on 200 lags of y and 100 lags of y.^2

Cite As

Alexander Migita (2026). Very large AR regressions (https://www.mathworks.com/matlabcentral/fileexchange/25083-very-large-ar-regressions), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Statistics and Machine Learning Toolbox in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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