楼主: wawadianzhu
1896 1

[问答] 请问一个ARMA模型在R软件中做Simulation的问题 [推广有奖]

  • 0关注
  • 0粉丝

VIP1

大专生

3%

还不是VIP/贵宾

-

威望
0
论坛币
489 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
224 点
帖子
10
精华
0
在线时间
41 小时
注册时间
2011-4-3
最后登录
2020-8-12

楼主
wawadianzhu 在职认证  发表于 2013-3-25 23:03:49 |AI写论文
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的程序么?

麻烦大家赐教。


关键词:Simulation ulation arma模型 ATION ARMA 模型 软件

沙发
waterhorse 发表于 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.

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-21 10:15