- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
4-平稳时间序列分析4-平稳时间序列分析
Ex4: MA(1) process 1000 observations of a zero-mean Gaussian MA(1) nobs=1000 theta1=0.2 eps=rnorm(nobs) z=eps[2:1000]+theta1*eps[1:999] length(z) ts.plot(z) plot(density(z)) qqnorm(z) acf(z) pacf(z) Box.test(z,lag=10,type=Ljung) repeat same commands with theta1=0.8 repeat same commands with theta1=0.99 Comments ? How to include a mean ? Ex5:ARMA Simulation ? Modeling? Ex1: Sunspots time series Data analysis: Monthly Jan. 1749 - Dec. 1983 sunspots summary(sunspots) frequency(sunspots) start(sunspots) end(sunspots) Specification acf(sunspots,lag.max=240) pacf(sunspots,lag.max=240) Automatic specification by AIC sunc = sunspots-mean(sunspots) sunc.ar=ar(sunc,order.max=100,aic=T) sunc.ar$aic plot(sunc.ar$aic[2:100]) Where is the min ? p = 28 Ex1: Sunspots time series Estimation methods ar(sunc,order.max=100,aic=T,method=“yw”)$order ar(sunc,order.max=100,aic=T,method=“burg”)$order ar(sunc,order.max=100,aic=T,method=“mle”)$order ar(sunc,order.max=100,aic=T,method=“ols”)$order Yule-Walker is OK Ex1: Sunspots time series Validation res=sunc.ar$resid res=res[29:length(res)] res.std=res/sqrt(var(res)) summary(res.std) plot(res.std) acf(res.std) pacf(res.std) Box.test(res.std) plot(density(res.std))) jarque.bera.test(res.std) I Conclusion ? GWN ? Why ? Ex1: Sunspots time series Forecasting horiz=120 prev=predict(sunc.ar,n.ahead=horiz) prev prev.mean=prev$pred+mean(sunspots) ts.plot(prev.mean,sunspots) Confidence bounds (1 ? = 0.95) prev.se=prev$se bornesup=prev.mean+1.96*prev.se borneinf=prev.mean-1.96*prev.se ts.plot(prev.mean,bornesup,borneinf) Remark : Normality assumption Ex2: Nile river series Data analysis: Annual 1871-1970 Nile plot(Nile) acf(Nile,lag.max=50) pacf(Nile,lag.max=50) Box.test(Nile) In favour of a AR(1) model Automatic AR Specification Nilec=Nile-mean(Nile) Nilec.ar=ar(Nilec,lag.max=10) Nilec.ar Conclusion: p? q? Ex2: Nile river series Automatic ARMA specification arima(Nilec,order=c(1,0,0),i
您可能关注的文档
最近下载
- SocialMedia–loveitorhateit,weneedit-Library.ppt VIP
- 创造美好生活课件 第三课什么样的劳动更有价值 .doc VIP
- 《教育研究方法》教学课件07教育个案研究法.pptx VIP
- 精油身体养生项目PPT课件.ppt
- 《教育科学研究方法》第八章 个案研究法.pptx VIP
- 辽师大版六年级英语上学期期中考试试卷.doc VIP
- 2023年 AMC 10B真题含答案.pdf VIP
- X射线检测评片记录纸.doc VIP
- 高考英语词汇3500词带音标.docx VIP
- 浙江省杭州市第二中学2024-2025学年高一上学期期中考试数学试题 含解析.docx VIP
原创力文档


文档评论(0)