MSDS 596 Homework 10 Due November 28 2017
Notes. The lowest grade among all eleven homework will be dropped, so NO late submission will be
accepted. All homework assignment must be written on standard 8.5 by 11 paper and stapled together.
Computer generated output without detailed explanations and remarks will not receive any credit. You may
type out your answers, but make sure to use different fonts to distinguish your own words with computer
output. Only hard copies are accepted, except under special circumstances. For the simulation and data
analysis problems, keep the code you develop as you may be asked to present your work later.
1 (80 pts). Use scan("lt.txt") to read in the data from the file lt.txt, which is a vector of length 500.
Consider a local trend model for the data
yt = st + et, et ∼ N(0, 0.25);
st+1 = st + ηt, ηt ∼ N(0, 0.01), s0 ∼ N(0.2, 2.25).
Use your own program for part (a), (b), and (c).
(a) Write your own program to implement the Kalman filter. Calculate the exact log likelihood of the
data. [Hint. Use s1|0 = 0.2, and Σ1|0 = 2.26 as the initial values.]
(b) Plot the predicted state variables st|t−1 for 1 ≤ t ≤ T. Also plot the 95% confidence intervals
st|t−1 ± 2pΣt|t−1. Your plot should look similar to Figure 11.4 of the textbook.
(c) Plot the filtered state variables st|
for 1 ≤ t ≤ T. Also plot the 95% confidence intervals st|t±2pΣt|t.
(d) Pretend that you do not know σ2e and σ2η, but you do have the prior knowledge that s0 ∼ N(0.2, 2.25),
use the dlm package to find the MLE of σ2e and σ2η.
(e) Reproduce the plots of part (b) and (c), using the MLE you obtained from part (d). Also, plot the
smoothed state variable st|T , together with the 95% confidence intervals st|T ± 2
p
Σt|T , for every t.
(f) Repeat part (d), using the R function StructTS() with type="level".
2 (20 pts). Rewrite the model (1−.3B)(1−.5B)(1−.6B +.4B2
)(rt −1.3) = at in the original form without
using the back-shift operator B.
1

因为专业,所以值得信赖。如有需要,请加QQ:99515681 或 微信:codehelp

最新文章

  1. 浅谈移动端之touch事件--手指的滑动事件
  2. iOS 学习 - 23 加载本地 txt 文件, NSMutableParagraphStyle 段落格式,缩放动画,字体间距
  3. android一句话搞定图片加载
  4. PHP历程(封装的增删改查方法)
  5. iOS开发UI篇—推荐两个好用的Xcode插件(提供下载链接)
  6. HTML&CSS布局练习---360导航页面
  7. android中设置Animation 动画效果
  8. [原]Unity3D深入浅出 - 脚本开发基础(Scripts)
  9. yii2 i18n学习
  10. ligerUI调用$.ligerDialog.open弹出窗口关闭
  11. Quartz contention when running in load balanced environment--reference
  12. fedora linux平台下搭建lighttpd+php+sqlite
  13. Selenium自动化测试之学会元素定位
  14. websocket+rabbitMQ
  15. win32之进程概念
  16. hinton教授的本科生课程CSC321-机器学习中的神经网的笔记
  17. QT入门系列(3):控制台输出QString
  18. 关于generate用法的总结
  19. OpenGL12-shader(GLSL)着色语言4-广告版的实现
  20. php 共享内存学习(shmop函数)

热门文章

  1. golang微服务框架go-micro 入门笔记2.2 micro工具之微应用利器micro web
  2. 【LEETCODE】73、根据身高重建队列 第406题
  3. Python入门 .变量 常量 基础数据类型 用户输入 流程控制语句 小练习题
  4. php的json_encode第二个参数学习及应用
  5. 【题解】Luogu P5324 [BJOI2019]删数
  6. POI2015 WYC
  7. 使用canvas实现360水球波动
  8. Kafka重启出错:Corrupt index found
  9. java之spring mvc之拦截器
  10. 用cProfile做性能分析【转】