Be the first to rate this file! 1 Download (last 30 days) File Size: 18.73 KB File ID: #25083

Very large AR regressions

by Alexander Migita

 

20 Aug 2009

Very large autoregressions

| Watch this File

File Information
Description

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

MATLAB release MATLAB 7.8 (R2009a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
econometrics Alexander Migita 20 Aug 2009 16:41:26
least squares Alexander Migita 20 Aug 2009 16:41:26
ols Alexander Migita 20 Aug 2009 16:41:26
autoregression Alexander Migita 20 Aug 2009 16:41:26

Contact us at files@mathworks.com