全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件
1211 0
2014-09-14
1. Download from Quandl the quarterly S&P 500 Index ranging from 1988.Q1 to 2013.Q4.
2. Divide the series into the in-sample estimation window (observations up to and includ-
ing 2009.Q4) and the out-of-sample forecasting window (observations beginning from
2010.Q1 and onwards).
3. Produce the point and the interval forecasts using the simple exponential smoothing,
the Holt's linear trend, and the Holt-Winters additive seasonal models. Plot the three
graphs.
4. Estimate the rst-order autoregression, i.e. AR(1) process, and calculate the uncondi-
tional mean and the unconditional variance measures.
5. Produce the point and the interval forecasts from the estimated autoregression. Plot
the graph.
6. Within the rolling forecasting environment, generate one-step-ahead forecasts through-
out the out-of-sample set using the considered four models.
7. Calculate aand report the out-of-sample mean absolute error (MAE) and root mean
squared error (RMSE) measures. Which model is preferred?

初学R  第六步第七步的code 完全没有思路。可否给些指点?谢谢啦!
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群