时间序列分析与应用 Chapter2

时间序列分析与应用
第二章 ARIMA过程

参考书 “Time Series Analysis and Its Applications (4th ed.)” by Robert H. Shumway and Davis S. Stoffer


一、AR(p)

AR(1)
( X t : t ∈ T ) , X t = ϕ X t − 1 + W t , W t ∼ W N ( 0 , σ 2 ) (X_t:t\in T) ,X_t=\phi X_{t-1}+W_t,{W_t \sim WN(0,\sigma^2)} (Xt:tT),Xt=ϕXt1+Wt,WtWN(0,σ2)

AR(p)
( X t : t ∈ T ) , X t = ∑ i = 1 p ϕ i X t − i + W t , W t ∼ W N ( 0 , σ 2 ) (X_t:t\in T) ,X_t=\sum\limits _{i=1}^{p}\phi ^iX_{t-i}+W_t,{W_t \sim WN(0,\sigma^2)} (Xt:tT),Xt=i=1pϕiXti+Wt,WtWN(0,σ2)

二、MA(q)

MA(1)
( X t : t ∈ T ) , X t = W t + θ W t − 1 , W t ∼ W N ( 0 , σ 2 ) (X_t:t\in T) ,X_t=W_t+\theta W_{t-1},{W_t \sim WN(0,\sigma^2)} (Xt:tT),Xt=Wt+θWt1,WtWN(0,σ2)

MA(q)
( X t : t ∈ T ) , X t = W t + ∑ i = 1 q θ j W t − j , W t ∼ W N ( 0 , σ 2 ) (X_t:t\in T) ,X_t=W_t+\sum\limits _{i=1}^{q}\theta ^jW_{t-j},{W_t \sim WN(0,\sigma^2)} (Xt:tT),Xt=Wt+i=1qθjWtj,WtWN(0,σ2)

E ( X t ) = 0 E(X_t)=0 E(Xt)=0
C o v ( x t + h , x t ) = σ 2 ( θ h + θ 1 θ h + 1 + . . . + θ q − h θ q ) Cov(x_{t+h},x_t)=\sigma^2(\theta_h+\theta_1\theta_{h+1}+...+\theta_{q-h}\theta_q) Cov(xt+h,xt)=σ2(θh+θ1θh+1+...+θqhθq)

ρ x ( h ) = { σ 2 ∑ y = 0 p θ y θ y + p 1 + θ 1 2 + . . . + θ q 2 ∣ h ∣ < p 0 ∣ h ∣ > p \rho_x(h)=\begin{cases}\sigma^2\frac{\sum\limits^p_{y=0}\theta_y\theta_{y+p}}{1+{\theta_1}^2+...+{\theta_q}^2}\quad |h|<p\\ 0\qquad \qquad \qquad |h|>p\end{cases} ρx(h)=σ21+θ12+...+θq2y=0pθyθy+ph<p0h>p

三、R code

n = 500
sigma_w = 1.23
w = rnorm(n)
x = filter(w, filter = rep(1/3, 3))
acf(x, lag.max=20, na.action = na.omit)
par(mfrow=c(1,2))
plot(log(jj), main="plot of data and fitted value") # data
lines(fitted(reg1), col="red") # fitted
plot(log(jj)-fitted(reg1), main="plot of residuals")

绘制模型拟合结果
线性表示 ==> ARMA转换为MA
ARMAtoMA(ar=c(-1.6,-.64), ma=0, lag=20)
ARMAacf(ar=(-1.6,-.64), ma=0, lag=3)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
时间序列分析 经典教材 The fourth edition of this popular graduate textbook, like its predecessors, presents a balanced and comprehensive treatment of both time and frequency domain methods with accompanying theory. Numerous examples using nontrivial data illustrate solutions to problems such as discovering natural and anthropogenic climate change, evaluating pain perception experiments using functional magnetic resonance imaging, and monitoring a nuclear test ban treaty. The book is designed as a textbook for graduate level students in the physical, biological, and social sciences and as a graduate level text in statistics. Some parts may also serve as an undergraduate introductory course. Theory and methodology are separated to allow presentations on different levels. In addition to coverage of classical methods of time series regression, ARIMA models, spectral analysis and state-space models, the text includes modern developments including categorical time series analysis, multivariate spectral methods, long memory series, nonlinear models, resampling techniques, GARCH models, ARMAX models, stochastic volatility, wavelets, and Markov chain Monte Carlo integration methods. This edition includes R code for each numerical example in addition to Appendix R, which provides a reference for the data sets and R scripts used in the text in addition to a tutorial on basic R commands and R time series. An additional file is available on the book’s website for download, making all the data sets and scripts easy to load into R.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值