Modeling and simulating a signal with an autoregressive model

Hello
I want to model a signal with an autoregressive model using Matlab. So by taking the data Y, I was able to estimate using Matlab:
  • The parameters a1, a2, ..., ap and the variance of white noise by using the Yule-Walker
  • And the optimal order p of the model using the FPE or AIC criterion.
My problem is: the signal that I could simulate using this code:
for t=1:N
arp=0;
for j=1:p
if t > j
arp = arp + A(j)*X(t-j);
end
end
X(t) = arp + u(t);
end
with: u = white noise and A = (a1,...,ap)
is not appropriate to the used data Y.
In other words, the obtained simulation result X (model) does not resemble to the the given signal Y.
Is there a solution to find a good simulation of the used model?

댓글 수: 2

Mr.Ayech Did you get your simulated signal using auto regressive model,I am working on that concept,could you suggest me please!
you can find the parameters a1, a2...ap with aryule that works with yule w
after that you can conv you signal with the vector of the parameters to have the noise that you will use as input for the filter. After that you use filter with 1 and the parameters as H(z) and the noise as input and the output is the new signal AR

댓글을 달려면 로그인하십시오.

 채택된 답변

Honglei Chen
Honglei Chen 2011년 7월 26일

0 개 추천

Hi Walid,
If you know parameter a1,a2,..,ap, I think the simplest way to simulate an AR process is
1. Create an IIR filter with coefficients a1,a2,..,ap 2. Pass the white noise through this filter to obtain X
You should be able to find details in most spectral analysis book, such as Kay's Modern Spectral Estimation.
HTH

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Conditional Mean Models에 대해 자세히 알아보기

질문:

2011년 7월 26일

댓글:

2020년 10월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by