Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
getting AR residuals to a vextor
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi,
I need to fit an ar(15) model (WITH OUT USING ARX()IN MATLAB) to yt1 data created bu the following code and get the residuals to a vector. can someone please help?
code:
a0 = 0.05; a1 = 0.1; b1 = 0.85;
epsi=zeros(2101,1);
simsig=zeros(2101,1);
for i = 1:2101
if (i==1)
simsig(i) = a0 ;
s=(simsig(i))^0.5;
epsi(i) = normrnd(0,1) * s;
else
simsig(i) = a0+ a1*(epsi(i-1))^2+ b1*simsig(i-1);
s=(simsig(i))^0.5;
epsi(i) = normrnd(0,1) * s;
end
end
yt1=epsi.^2;
댓글 수: 0
답변 (0개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!