全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
1839 1
2013-03-25
悬赏 1 个论坛币 未解决
我想做一个参数为0.7,-0.6的MA(2) Simulation
于是我写程序如下:
Z=arima.sim(n=200,list(ma=c(0.7,-0.6)))
acf(Z,main='MA(2)')


结果画出来的图如下: 360截图20130325225238111.jpg


这和MA(2)的ACF在2阶之后为0不符啊?
不知是我程序写错了还是什么缘故……
还有就是ARIMA不是ARMA的差分么?没有直接ARMA simulation的程序么?

麻烦大家赐教。


二维码

扫码加我 拉你入群

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

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

全部回复
2013-3-27 00:55:47
Nothing is wrong with your code. If you run the simulation several times, you'll see two significant spikes in acf; one positive and one negative. Make your sample size larger, say 1000, it may help.
Most of the time series in economics/finance are nonstationary, therefore, arima can be use to determine the number of unit roots in the process. arima (p, 1, q), arima (p, 2, q), etc.
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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