1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

AR Forecasting in MATLAB

  1. Mar 24, 2010 #1

    So I'm trying to do prediction/forecasting with a simple time series in MATLAB. But I'm having a bit of trouble with the AR coefficients.

    So as a baseline, I've been trying to follow the example on this website:

    In the first example, for the 3rd order example, they provide coefficients that look like:
    2.753231 -2.740306 0.985501

    But when I use MATLAB to generate the AR coefficients, using aryule or arburg, I get something completely different:
    1.0000 -1.8242 0.9365

    So when I loop something like:
    with the AR coefficients given to me at the above URL, I get a good prediction of the signal. But when I use MATLAB's coefficients (provided both from aryule and arburg) I get something that's not even close to the original signal.

    So I was just wondering what I'm doing wrong? Am I using aryule/arburg incorrectly?
    Last edited by a moderator: Apr 24, 2017
  2. jcsd
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?
Draft saved Draft deleted

Similar Discussions: AR Forecasting in MATLAB
  1. Matlab Graphing (Replies: 1)

  2. Plotting in Matlab (Replies: 1)

  3. Matlab code to Python (Replies: 1)

  4. Plotting with Matlab (Replies: 1)