Holt 趨勢法
Holt 的區域趨勢法由 holt() 函式實作:
> holt(y, h = 10, ...)
這裡你要把它套用到 austa 序列。該序列包含 1980–2015 年澳洲國際訪客的年度人次(單位:百萬)。資料已預先載入你的工作空間。
本練習屬於課程
R 的時間序列預測
練習說明
- 使用 Holt 方法為
austa產生 10 年期的預測,並相應設定h。 - 使用
summary()函式查看模型參數與其他資訊。 - 用標準的時間繪圖函式繪出你的預測。
- 使用
checkresiduals()檢查殘差是否近似白噪音。
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
# Produce 10 year forecasts of austa using holt()
fcholt <- ___
# Look at fitted model using summary()
___
# Plot the forecasts
___
# Check that the residuals look like white noise
___