MSDS 596 Homework
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
MSDS 596 Homework的更多相关文章
- CSCI 1100 — Computer Science 1 Homework
CSCI 1100 — Computer Science 1 Homework 8CS1 Multiverse: ClassesOverviewThis homework is worth 100 p ...
- bzoj 4320: ShangHai2006 Homework
4320: ShangHai2006 Homework Time Limit: 10 Sec Memory Limit: 128 MB Description 1:在人物集合 S 中加入一个新的程序员 ...
- HDU 1789 Doing Homework again(贪心)
Doing Homework again 这只是一道简单的贪心,但想不到的话,真的好难,我就想不到,最后还是看的题解 [题目链接]Doing Homework again [题目类型]贪心 & ...
- NYOJ题目596谁是最好的Coder
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAscAAAMaCAIAAADlQ3w8AAAgAElEQVR4nO3dO3LbvN4H4G8T7r2Q1F
- hdu-1789-Doing Homework again
/* Doing Homework again Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Oth ...
- nyist 596 谁是最好的Coder
http://acm.nyist.net/JudgeOnline/problem.php?pid=596 谁是最好的Coder 时间限制:1000 ms | 内存限制:65535 KB 难度:0 ...
- HDU 1789 Doing Homework again (贪心)
Doing Homework again http://acm.hdu.edu.cn/showproblem.php?pid=1789 Problem Description Ignatius has ...
- Doing Homework 状态压缩DP
Doing Homework 题目抽象:给出n个task的name,deadline,need. 每个任务的罚时penalty=finish-deadline; task不可以同时做.问按怎样的 ...
- 机器学习 —— 概率图模型(Homework: Exact Inference)
在前三周的作业中,我构造了概率图模型并调用第三方的求解器对器进行了求解,最终获得了每个随机变量的分布(有向图),最大后验分布(双向图).本周作业的主要内容就是自行编写概率图模型的求解器.实际上,从根本 ...
随机推荐
- canal使用入坑,亲测 !!!!
原来用windows本地运行,在本地模拟客户端和服务端,鼓捣了一天都没运行成功...最后放弃了,改用 windows的客户端+ubuntu的服务端(客户端程序运行在window,canal监听运行在U ...
- mysql 允许在唯一索引的字段中出现多个null值
线上问题:org.springframework.dao.DuplicateKeyException: PreparedStatementCallback; SQL [update fl_table ...
- 域名解析中的cname解析和显性URL跳转和隐性URL跳转三者有什么区别
通俗的来讲,cname解析还是属于dns解析,只是把某个域名解析到另外一个域名对应的某个IP的空间中,所以还需要在服务器端(比如nginx)做域名解析(比如把baidu.com做一个cname解析到i ...
- js中对字符串操作的常见方法(1)
String类型 创建一个String类型的实例 var stringObject = new String("hello world"); String类型的属性 length; ...
- ElasticSearch 调优
来源:http://tinyurl.com/y4gnzbje 第一部分:调优索引速度 第二部分-调优搜索速度 英文原文:https://www.elastic.co/guide/en/elastics ...
- Delphi中AssignFile函数
procedure TForm1.SaveLog(sFlag:string;MSG:string);var QF1:Textfile; ----声明文本文件类型 Qfiletmp,sP ...
- java之spring mvc之Restful风格开发及相关的配置
1. Restful : 表征状态状态转移. 传统 : url : http://localhost:8080/usersys/delete.do?user.id=12 Restful 风格:url ...
- C#录制屏幕采集系统桌面画面
在项目中,有很多需要录制屏幕的场景,比如直播课,录制教学视频等场景.但.NET自带的Screen类功能比较弱,效率很低.那么如何简单快捷地高效采集桌面屏幕呢?当然是采用SharpCapture!下面开 ...
- Deployment.spec.selector.matchLables实验解释
原文:https://cloud.tencent.com/developer/article/1394657 Deployment.spec.selector.matchLables实验解释 作者: ...
- 2019 汇量科技java面试笔试题 (含面试题解析)
本人5年开发经验.18年年底开始跑路找工作,在互联网寒冬下成功拿到阿里巴巴.今日头条.汇量科技等公司offer,岗位是Java后端开发,因为发展原因最终选择去了汇量科技,入职一年时间了,也成为了面 ...