ar_model
LAMBDA = AR_MODEL(Y, N) estimates an N:th order autoregressive polynomial model (AR) for time series Y:
y(t) + l_1 * y(t-1) + l_2 * y(t-2) + ... +l_N * y(t-N) = e(t)
Inputs:
Y: The time series to be modeled, a column vector of values. The data must be uniformly sampled.
N: The order of the AR model (positive integer)
Output:
LAMBDA: AR model delivered as an array where are [1 l_1 l_2 l_3 ... l_N].
The model is estimated using "Yule-Walker" approach with no windowing.
Cite As
Giacomo Alessandroni (2025). ar_model (https://www.mathworks.com/matlabcentral/fileexchange/42774-ar_model), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Simulink > Modeling >
- Signal Processing > Signal Processing Toolbox > Transforms, Correlation, and Modeling > Signal Modeling >
- Computational Finance > Econometrics Toolbox > Conditional Mean Models >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.