Very large AR regressions

Very large autoregressions
629 Downloads
Updated 20 Aug 2009

View License

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 (2024). Very large AR regressions (https://www.mathworks.com/matlabcentral/fileexchange/25083-very-large-ar-regressions), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Statistics and Machine Learning Toolbox in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0