Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 3 out of 34 pages
Exam (elaborations)

Solutions for Time Series, A Data Analysis Approach Using R, 1st Edition Shumway (All Chapters included)

Document preview thumbnail
Preview 3 out of 34 pages

Complete Solutions Manual for Time Series, A Data Analysis Approach Using R, 1st Edition by Robert Shumway, David Stoffer ; ISBN13: 9780367221096. (Full Chapters included Chapter 1 to 8).... 1. Time Series Elements 2. Correlation and Stationary Time Series 3. Time Series Regression and EDA 4. ARMA Models 5. ARIMA Models 6. Spectral Analysis and Filtering 7. Spectral Estimation 8. Additional Topics

Content preview

Time Series: A Data Analysis Approach
Q Using R S
Instructor’s Manual



R.H. Shumway and D.S. Stoffer


! Please Do Not Reproduce !



We assume that astsa version 1.8.8 or higher has been installed. It must be loaded by issuing the command
library(astsa) at the beginning of an R session. All the data are loaded when the package is loaded. See the package
notes and changelog at https://github.com/nickpoison/astsa/blob/master/NEWS.md.




Complete Chapter Solutions Manual
are included (Ch 1 to 8)




** Immediate Download
** Swift Response
** All Chapters included

,Contents




1 Chapter 1 Solutions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

2 Chapter 2 Solutions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

3 Chapter 3 Solutions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

4 Chapter 4 Solutions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

5 Chapter 5 Solutions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

6 Chapter 6 Solutions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

7 Chapter 7 Solutions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

8 Chapter 8 Solutions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27

Appendix A Solutions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31

, Chapter 1
1.1 Code for (a)-(c):
w = rnorm(150,0,1) # 50 extra to avoid startup problems
xa = filter(w, filter=c(0,-.9), method="recursive")[-(1:50)] # AR
xb = 2*cos(2*pi*(1:100)/4) + rnorm(100,0,1) # sinusoid + noise
xc = log(jj)
va = filter(xa, rep(1,4)/4, sides=1) # moving average
vb = filter(xb, rep(1,4)/4, sides=1) # moving average
vc = filter(xc, rep(1,4)/4, sides=1) # moving average
par(mfrow=c(3,1), mar=c(3,3,2,1))
tsplot(xa, main="autoregression")
lines(va, col=2)
tsplot(xb, main="sinusoid + noise")
lines(vb, col=2)
tsplot(xc, main="Johnson & Johnson")
lines(vc, col=2)

(d) Seasonal adjustment is a filter to remove obvious seasonal periodicities (e.g., quarterly or annual fluctuations) so that other
interesting dynamics may be observed.
(e) All 3 time series generated had a primary period of 4 (1 cycle every 4 time points). The filter that averages 4 contiguous time
points removes the periodic behavior and accentuates the “trend” (no trend in the first two, linear trend in the third series).

1.2 (a)
par(mfrow=2:1)
tsplot(EQ5, main="Earthquate")
tsplot(EXP6, main="Explosion")
(b)
ts.plot(EQ5, EXP6, col=1:2)
legend('topleft', lty=1, col=1:2, legend=c('EQ', 'EXP'))
(c) The major differences are how quickly the signal dies out in the explosion versus the earthquake and the larger amplitude of the
signals in the explosion.

1.3 Part (a) code is
par(mfrow=c(3,3))
for (i in 1:9){
x = cumsum(rnorm(500))
tsplot(x) }
Part (b) will be similar:
par(mfrow=c(3,3))
for (i in 1:9){
x = filter(rnorm(500), filter=rep(1/3,3))
tsplot(x) }
(c) The major difference between the two is that the moving averages look the same in each plot, whereas the random walks are
different, some increase while some decrease.

1.4 For part (a) use tsplot(gdp) and note that it looks like a random walk with drift.

For part (b) and (c), the growth rate looks like white noise (or moving average is ok). The code is

Document information

Uploaded on
January 25, 2024
Number of pages
34
Written in
2019/2020
Type
Exam (elaborations)
Contains
Questions & answers
$29.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
mizhouubcca
4.3
(499)
Sold
2994
Followers
363
Items
1749
Last sold
2 hours ago

Reviews from verified buyers

1 year ago

Thank you for your feedback! Glad this document was helpful, we’ll keep sharing more study notes to support your learning. Many thanks




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions