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的更多相关文章

  1. bzoj 4320: ShangHai2006 Homework

    4320: ShangHai2006 Homework Time Limit: 10 Sec Memory Limit: 128 MB Description 1:在人物集合 S 中加入一个新的程序员 ...

  2. HDU 1789 Doing Homework again(贪心)

    Doing Homework again 这只是一道简单的贪心,但想不到的话,真的好难,我就想不到,最后还是看的题解 [题目链接]Doing Homework again [题目类型]贪心 & ...

  3. hdu-1789-Doing Homework again

    /* Doing Homework again Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Oth ...

  4. HDU 1789 Doing Homework again (贪心)

    Doing Homework again http://acm.hdu.edu.cn/showproblem.php?pid=1789 Problem Description Ignatius has ...

  5. Doing Homework 状态压缩DP

    Doing Homework 题目抽象:给出n个task的name,deadline,need.  每个任务的罚时penalty=finish-deadline;   task不可以同时做.问按怎样的 ...

  6. 机器学习 —— 概率图模型(Homework: Exact Inference)

    在前三周的作业中,我构造了概率图模型并调用第三方的求解器对器进行了求解,最终获得了每个随机变量的分布(有向图),最大后验分布(双向图).本周作业的主要内容就是自行编写概率图模型的求解器.实际上,从根本 ...

  7. hdoj 1789 Doing Homework again

    Doing Homework again Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Oth ...

  8. homework做了些什么?

    第一步:get_new_guid_uid_pairs_{$ymd} 参数是时间和100上的文件. 那么100上的文件是从哪里来的呢? 我们进入到100机器上,打开root权限下的cron,看到如下内容 ...

  9. HDU 1074 Doing Homework (dp+状态压缩)

    题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1074 题目大意:学生要完成各科作业, 给出各科老师给出交作业的期限和学生完成该科所需时间, 如果逾期一 ...

随机推荐

  1. 类的练习——python编程从入门到实践

    9-1 餐馆:创建一个名为Restaurant的类,其方法__init__()设置两个属性:restaurant_name和cuisine_type.创建一个名为describe_restaurant ...

  2. 【C语言】崩溃的双重指针

    指针的指针? 前言: 指针的初识点击移步 双重指针: 指向指针的指针是一种多级间接寻址的形式,或者说是一个指针链.通常,一个指针包含一个变量的地址.当我们定义一个指向指针的指针时,第一个指针包含了第二 ...

  3. 解决docker容器中Centos7系统的中文乱码

    解决docker容器中Centos7系统的中文乱码问题有如下两种方案: 第一种只能临时解决中文乱码: 在命令行中执行如下命令: # localedef -i zh_CN -f UTF-8 zh_CN. ...

  4. scratch少儿编程第一季——09、声音模块:吹拉弹唱我也会

    各位小伙伴大家好: 上期我们学习了外观模块的指令,学会了制作特效. 本期我们来学习如何给游戏配音. 声音模块的指令不是很多,我们一起来看看吧. 首先第一个就是播放声音,里面默认插入了喵叫声. 我们点击 ...

  5. k8s 运行应用

    一.deployment 创建过程 kubect创建deployment —> deployment 创建ReplicaSet—>根据ReplicaSet 创建Pod 命名方式 relic ...

  6. 【简解】SP7556 Stock Charts

    题目大意 给出一个折线图,有N条线段,你想要把这些线段分成几个集合,使得每个集合中任意两条线段不相交. 求最少集合数. 分析 喵帕斯:以下提及的所有折线均指横坐标在\([1,k]\)里的折线段. 思考 ...

  7. CentOS7安装MySQL(完整版)

    在CentOS中默认安装有MariaDB,这个是MySQL的分支,但为了需要,还是要在系统中安装MySQL,而且安装完成之后可以直接覆盖掉MariaDB. 1 下载并安装MySQL官方的 Yum Re ...

  8. JUC-FutureTask

    得到别的线程任务的返回值 import lombok.extern.slf4j.Slf4j; import java.util.concurrent.Callable; import java.uti ...

  9. linux 不能进入系统 Failed to load SELinux policy. Freezing

    错误原因 配置关闭SELinux,结果误操作 应修改配置文件/etc/selinux/config中的“SELINUX”参数的值, # SELINUX=enforcing 原始配置 SELINUX=d ...

  10. Mysql表字段命令alter add

    alter add命令用来增加表的字段. alter add命令格式:alter table 表名 add字段 类型 其他; 例如,在表MyClass中添加了一个字段passtest,类型为int(4 ...