MSDS596 Homework 9
MSDS596 Homework 9 (Due in class on Nov 14) Fall 2017
Notes. The lowest grade among all twelve 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 (20 pts). Let U1 and U2 be independent random variables with zero means and Var(U1) = Var(U2) = σ2.
Consider the time series
xt = U1 sin(2πωt) + U2 cos(2πωt),
where ω ∈ [0, 1) is a fixed constant. Show that this series is weakly stationary with autocovariance function
γh = σ2cos(2πωh).
Find the autocorrelation function as well.
2 (30 pts). Let wt, t ∈ Z be a normal white noise (i.e. they are iid normal) with variance 1, and consider
the time series
xt = wtwt−1, yt = x2t.
(a) Find the mean, autocovariance, and autocorrelation functions of xt.
(b) Simulate xt of length T = 500. Give the time series plot, and the sample autocorrelations plot.
Comment.
(c) Perform the Ljung-Box test on the simulated series xt, using m = 1, 2, 3, 4, 5, 6.
(d) Find the mean, autocovariance, and autocorrelation functions of yt.
(e) Simulate yt of length T = 500. Give the time series plot, and the sample autocorrelations plot.
Comment.
(f) Perform the Ljung-Box test on the simulated series yt, using m = 1, 2, 3, 4, 5, 6.
3 (50 pts). Tourism is one of the largest economic components of Hawaii (another is the Pearl Harbor
Navy Base). The data hawaii-new.dat contains monthly record of the number of tourists visited
Hawaii from January, 1970 to December, 1995. The first column shows the year-month. The second column
is the total. The third and fourth columns show the number of west-bound (mainly from US and
Canada) and east bound (mainly from Japan and Australia) visitors. Perform the following analysis. [Use
read.table("hawaii-new.dat") to load the data to R.]
(a) Draw time series plots of the three series on the same graph. Comment on what you observe (trend,
seasonality, variance, possible outliers, relationship between the three series and others).
(b) Perform a log transformation of the total series. Draw a time series plot and comment on it.
代写MSDS596作业、代做R编程语言作业
(c) If you are to use a polynomial trend model for the log transformed total series, which order of the
polynomial (e.g. linear, quadratic, cubic etc) will you use? Your decision should be based on sound
statistical reasoning and formal testing or variable selection procedure. Fit the trend model, plot the
fitted line with the log-transformed time series and plot the de-trended series. What do you think
about the results?
(d) Fit a trend-seasonal model to the log transformed total series. Plot the fitted values with the log
transformed data and plot the de-trend-de-seasoned series. Comment on the estimated coefficients
of the seasonal factors.
(e) Use the trend-seasonal model in (d) to predict the total number of tourists (in log) who will visit
Hawaii each month in 1996, assuming the noises in the trend-seasonal model are i.i.d. Plot your
predictions (in dash lines) with the last three years of the original data.
(f) For the log transformed total series, determine the difference(s) needed to make the series stationary
(by look). Show your working process.
1
因为专业,所以值得信赖。如有需要,请加QQ:99515681 或 微信:codehelp
MSDS596 Homework 9的更多相关文章
- 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 [题目类型]贪心 & ...
- hdu-1789-Doing Homework again
/* Doing Homework again Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Oth ...
- 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)
在前三周的作业中,我构造了概率图模型并调用第三方的求解器对器进行了求解,最终获得了每个随机变量的分布(有向图),最大后验分布(双向图).本周作业的主要内容就是自行编写概率图模型的求解器.实际上,从根本 ...
- hdoj 1789 Doing Homework again
Doing Homework again Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Oth ...
- homework做了些什么?
第一步:get_new_guid_uid_pairs_{$ymd} 参数是时间和100上的文件. 那么100上的文件是从哪里来的呢? 我们进入到100机器上,打开root权限下的cron,看到如下内容 ...
- HDU 1074 Doing Homework (dp+状态压缩)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1074 题目大意:学生要完成各科作业, 给出各科老师给出交作业的期限和学生完成该科所需时间, 如果逾期一 ...
随机推荐
- SQL2014做数据库主从镜像备份(也可以用于高可用)备忘(非域控)。
部份内容参考原始文章链接:https://www.cnblogs.com/stragon/p/5643754.html ,同时比较有参考价值的文章:https://blog.csdn.net/sqls ...
- my97整合fineui例子,开始和结束时间
<f: Toolbar runat ="server"> <Items> ...
- Java开发笔记(一百四十七)通过JDBC管理数据库
前面介绍了如何通过JDBC获取数据库连接,可是Connection对象不能直接执行SQL语句,需要引入Statement报告对象才能操作SQL.Statement对象由Connection的creat ...
- error adding symbols:DSO missing from command line
编译时加上-lz,如果是使用eclipse,则在添加库z
- 我瞅瞅源码系列之---flask
快速使用 通过werkzurg 了解wsgi threading.local和高级 LocalStack和Local对象实现栈的管理 Flask源码之:配置加载 Flask源码之:路由加载 ...
- python使用自带模块httplib进行http请求
#-*- encoding:utf-8 -*- import httplib, time class httpRequest(): def __init__(self, headers, reques ...
- opentsdb操作草稿
插入数据api/put 192.168.1.68:4242/api/put?details http://localhost:4242/api/put?detailsmethod:POST[ { &q ...
- kubernetes使用securityContext和sysctl
前言 在运行一个容器时,有时候需要使用sysctl修改内核参数,比如net..vm..kernel等,sysctl需要容器拥有超级权限,容器启动时加上--privileged参数即可.那么,在kube ...
- python 基础(文件)
文件句柄:可简单理解为应该内存对象 open()函数 参考 https://www.runoob.com/python3/python3-file-methods.html 读.写.追加 ''' t ...
- JavaWeb 之 Filter:过滤器
一.Filter 概述 1.概念 web 中的过滤器:当访问服务器的资源时,过滤器可以将请求拦截下来,完成一些特殊的功能. 2.作用 一般用于完成通用的操作.如:登录验证.统一编码处理.敏感字符等功能 ...