...th(y);figure(1);%第1张图plot(y);set(gca,'Xlim',[0 ls]);figure(2);subplot(2,1,1);set(gca,'Xlim',[0 ls]);autocorr(y);%原序列的自相关函数图MA(q),观察系数是否在区间(-2T^(1/2),-2T^(1/2))内subplot(2,1,2)parcorr(y); %原序列的偏相关函数图AR(p),...
...la=load('22.txt');a=a([2,4],:);a=a';a=a(:);%将数据税收展成按时间序列排列的% plot(a,'-p')b=diff(a);% plot(b,'-p')r1=autocorr(b)%计算自相关系数r2=parcorr(b) %计算偏自相关系数figure, subplot(121),autocorr(b)subplot(122), parcorr(b)cs1=ar(b,...
...Import datax=importdata('power6.txt');numObs=length(x);%% Draw ACF and PACFfigure(1);subplot(1,2,1);autocorr(x);subplot(1,2,2);parcorr(x);%% Model identificationfor i=0:3for j=0:3k=i+1;kk=j+1;spec=garchset('R...