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 题目大意:学生要完成各科作业, 给出各科老师给出交作业的期限和学生完成该科所需时间, 如果逾期一 ...
随机推荐
- python的帮助信息的写法
# coding = utf-8from optparse import OptionParserfrom optparse import OptionGroup usage = 'Usage: %p ...
- Java中参数始终是按值传递
Java中参数始终是按值传递. public class Main { public static void main(String[] args) { int x = 5; change(x); S ...
- 006 SpringCloud 学习笔记2-----SpringCloud基础入门
1.SpringCloud概述 微服务是一种架构方式,最终肯定需要技术架构去实施. 微服务的实现方式很多,但是最火的莫过于Spring Cloud了.SpringCloud优点: - 后台硬:作为Sp ...
- 【转帖】HBase简介(梳理知识)
HBase简介(梳理知识) https://www.cnblogs.com/muhongxin/p/9471445.html 一. 简介 hbase是bigtable的开源山寨版本.是建立的hdf ...
- vs 远程调试
程序在vs安装目录: D:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\Remote Debugge ...
- The driver is automatically registered via the SPI and manual loading of the driver class....
Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdb ...
- Intellij IDEA最全的热键表(default keymap)
Editing Ctrl + Space Basic code completion (the name of any class, method or variable) Ctrl + Shift ...
- 协程和Goroutines示例
一. 协程的定义 Coroutines are computer-program components that generalize subroutines for non-preemptive m ...
- html解决空格显示问题
在前端里面,大家都知道,html中输入空格或换行是识别不了是空格的,但是有时候需要实现,那么该如何解决呢?主要有以下几个方面: 1:常用的转义: 2:使用全角拼音,然后输入空格也可实现 3:用标签 ...
- DataPipeline如何实现数据质量管理?
数据质量管理已经成为数据治理的重要组成部分.高质量的数据是企业进行决策的重要依据. DataPipeline数据质量平台整合了数据质量分析.质量校验.质量监控等多方面特性, 以保证数据质量的完整性.一 ...