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. 基于SpringSecurity实现RBAC权限控制(待完善)

    Spring Security是一个为企业应用系统提供声明式的安全访问控制功能,减少为了企业应用系统安全控制而编写的大量重复代码. 认证: spring security的原理就是使用很多的拦截器对U ...

  2. SQL注入获取Sa账号密码

    漏洞位置:http://168.1.1.81/Information/Search?Keyword=1111 漏洞利用: MSSQL 2000 http://168.1.1.81/Informatio ...

  3. 九校联考-DL24凉心模拟Day2总结

    T1 锻造 forging 题目描述 "欢迎啊,老朋友." 一阵寒暄过后,厂长带他们参观了厂子四周,并给他们讲锻造的流程. "我们这里的武器分成若干的等级,等级越高武器就 ...

  4. Java数据结构-ArrayList最细致的解析笔记

    ArrayList是一个类,这个类有一个数组参数elementData,ArrayList集合中的元素正是保存在这个数组中,它继承了数组查询的高性能,参考第3篇.ArrayList还封装了很多方法,便 ...

  5. Kafka学习笔记(三)——架构深入

    之前搭建好了Kafka的学习环境,了解了具体的配置文件内容,并且测试了生产者.消费者的控制台使用方式,也学习了基本的API.那么下一步,应该学习一下具体的内部流程~ 1.Kafka的工作流程 大致的工 ...

  6. Linux学习笔记之tail命令显示最后n行

    tail :输出文件的最后几行. 用于linux查看日志的时候很方便,假如日志文件为:Console.log用法:1. tail Console.log tail # 输出文件最后10行的内容 2. ...

  7. SQL Server 隔离级别(RC&RR)

  8. 5G和LTE中的HARQ协议

    LTE中有两种重传机制:MAC层的HARQ机制,以及RLC层的ARQ(只针对AM(aknowledgement mode确认模式)数据传输)机制. HARQ: HARQ(HybridAutomatic ...

  9. Matlab原型模式

    原型(Prototype)模式的定义如下:用一个已经创建的实例作为原型,通过复制该原型对象来创建一个和原型相同或相似的新对象.Matlab面向对象编程有两种类,一种是Value Class,一种是Ha ...

  10. 物料管理混乱怎么办?APS系统帮你实现高效运输

    APS系统可以高效地管理.控制分销中心并保证产品可订货.可盈利.能力可用.分销计划帮助企业分析原始信息,然后企业能够确定如何优化分销成本或者根据生产能力和成本提高客户服务水平. 今天成功的企业为了取得 ...