4.1.某公司過去50個(gè)月每月盈虧情況
(1)繪制該序列時(shí)序圖;
(2)判斷該序列的平穩(wěn)性與純隨機(jī)性;
(3)考察該序列的自相關(guān)系數(shù)和偏自相關(guān)系數(shù)的性質(zhì);
(4)選擇適當(dāng)模型擬合該序列的發(fā)展;
(5)利用擬合模型預(yù)測(cè)該公司未來五年的盈虧情況。
本題SAS代碼
data a; input x@@; t=_n_; cards; -2.000? -0.703? -2.232? -2.535? -1.662? -0.152 2.155 2.298 0.886 1.871 1.933 2.221?? 0.328 -0.103 0.337 1.334 0.864 0.205 0.555 0.883 1.734??? 0.824 -1.054? 1.015 1.479 1.158 1.002? -0.415 -0.193 -0.502 -0.316 -0.421?? -0.448 -2.115 0.271 -0.558 -0.045 -0.221 -0.875 -0.014 1.746 1.481??? 0.950 1.714 0.220 -1.924 -1.217 -1.907 0.200 -0.237 ; proc arima data=a; identify var=x stationarity=(adf); estimate p=1 noint; forecast id=t lead=60; run; |
答案
(1)繪制時(shí)序圖(略)
(2)該序列為平穩(wěn)非白噪聲
(3)自相關(guān)圖拖尾,偏自相關(guān)圖一階截尾
(4)擬合AR(1)模型
(5)五年預(yù)測(cè)值見sas輸出(略)
4.2
本題SAS代碼
data a; input x@@; t=_n_; cards; 4.101 3.297 3.533 5.687 6.778 4.873 3.592 3.973 2.731 3.557 2.863 4.170 4.225 2.581 1.965 4.257 4.373 3.573 3.320 2.257 3.110 4.574 5.328 2.645 2.859 3.721 3.836 2.417 3.074 3.483 3.847 3.250 3.735 4.842 3.564 3.109 2.463 1.778 1.450 1.956 2.196 4.584 3.715 1.853 2.543 2.123 2.756 3.690 ; proc arima data=a; identify var=x stationarity=(adf); estimate q=1; forecast id=t lead=60; run; |
答案
(1)繪制時(shí)序圖(略)
(2)該序列為平穩(wěn)非白噪聲序列
(3)自相關(guān)圖一階截尾,偏自相關(guān)圖拖尾文章來源:http://www.zghlxwxcb.cn/news/detail-449528.html
(4)擬合MA(1)模型文章來源地址http://www.zghlxwxcb.cn/news/detail-449528.html
到了這里,關(guān)于第四章:課后習(xí)題SAS代碼的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!