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 题目大意:学生要完成各科作业, 给出各科老师给出交作业的期限和学生完成该科所需时间, 如果逾期一 ...
随机推荐
- 腾讯物联网操作系统正式开源,最小体积仅1.8 KB
9月18日,腾讯宣布将开源自主研发的轻量级物联网实时操作系统TencentOS tiny.相比市场上其它系统,腾讯TencentOS tiny在资源占用.设备成本.功耗管理以及安全稳定等层面极具竞争力 ...
- 抽象工厂(AbstractFactory)模式
抽象工厂模式又称工具箱模式.其实抽象工厂模式可以简单的理解为一个工厂生成一个产品族的产品. 抽象工厂模式可以向客户端提供一个接口,使得客户端在不指定产品的具体类型的情况下,创建多个产品族中的产品对象. ...
- python requests 超时与重试
一 源起: requests模块作为python爬虫方向的基础模块实际上在日常实际工作中也会涉及到,比如用requests向对方接口url发送POST请求进行推送数据,使用GET请求拉取数据. 但是这 ...
- STM32 EV1527无线通信(433)
EV1527无线通信 先说一下这个通信协议的数据格式,这个图片是我在手册里截的. 大家按照单片机类型计算周期,我的是STM32f103vb (4CLK大致等于350um) 发送时按照 先发同步码后发D ...
- flink checkpoint状态储存三种方式选择
Flink 提供了三种可用的状态后端:MemoryStateBackend,FsStateBackend,和RocksDBStateBackend. MemoryStateBackend Memory ...
- The One day 中位数的计算
""" 中位数是有序列表中间的数.如果列表长度是偶数,中位数则是中间两个数的平均值. 例如, [2,3,4] 的中位数是 3 [2,3] 的中位数是 (2 + 3) / ...
- java之spring mvc之拦截器
1. springmvc 中的拦截器是由实现 HandlerInterceptor 或者继承 HandlerInterceptorAdapter 来实现的. 2. 自定义实现一个拦截器的步骤: a). ...
- MVC视图中 TextBoxFor 数据格式化
@Html.TextBoxFor(m => m.Birthday,"{0:yyyy-MM-dd}", new { @class = "m-wrap small&qu ...
- for循环优化
转自:https://blog.csdn.net/lfc18606951877/article/details/78592823 1:多个for循环时,遵循外小内大(从外至里,循环对象size要从小到 ...
- 一个超实用的python爬虫功能使用 requests BeautifulSoup
一个简单的数据爬取的示例 import os,re import requests import random import time from bs4 import BeautifulSoup us ...