估計 white noise 模型
本練習屬於課程
R 的時間序列分析
練習說明
- 使用
arima()來估計y的 WN 模型。指定資料之後,務必加入參數order = c(0, 0, 0)。 - 分別使用
mean()與var()計算y的平均數與變異數。將結果與你的arima()輸出進行比較。
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
# Fit the WN model to y using the arima command
# Calculate the sample mean and sample variance of y