联系方式

  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-23:00
  • 微信:codinghelp

您当前位置:首页 >> javajava

日期:2019-12-19 11:11

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.

(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


版权所有:留学生程序网 2020 All Rights Reserved 联系方式:QQ:99515681 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。