100% tevredenheidsgarantie Direct beschikbaar na betaling Zowel online als in PDF Je zit nergens aan vast
logo-home
Solutions for Time Series, A Data Analysis Approach Using R, 1st Edition Shumway (All Chapters included) €27,66   In winkelwagen

Tentamen (uitwerkingen)

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

 62 keer bekeken  3 keer verkocht
  • Vak
  • Analysis
  • Instelling
  • Analysis

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. A...

[Meer zien]

Voorbeeld 3 van de 34  pagina's

  • 25 januari 2024
  • 34
  • 2019/2020
  • Tentamen (uitwerkingen)
  • Vragen en antwoorden
  • Analysis
  • Analysis
avatar-seller
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

Voordelen van het kopen van samenvattingen bij Stuvia op een rij:

√  	Verzekerd van kwaliteit door reviews

√ Verzekerd van kwaliteit door reviews

Stuvia-klanten hebben meer dan 700.000 samenvattingen beoordeeld. Zo weet je zeker dat je de beste documenten koopt!

Snel en makkelijk kopen

Snel en makkelijk kopen

Je betaalt supersnel en eenmalig met iDeal, Bancontact of creditcard voor de samenvatting. Zonder lidmaatschap.

Focus op de essentie

Focus op de essentie

Samenvattingen worden geschreven voor en door anderen. Daarom zijn de samenvattingen altijd betrouwbaar en actueel. Zo kom je snel tot de kern!

Veelgestelde vragen

Wat krijg ik als ik dit document koop?

Je krijgt een PDF, die direct beschikbaar is na je aankoop. Het gekochte document is altijd, overal en oneindig toegankelijk via je profiel.

Tevredenheidsgarantie: hoe werkt dat?

Onze tevredenheidsgarantie zorgt ervoor dat je altijd een studiedocument vindt dat goed bij je past. Je vult een formulier in en onze klantenservice regelt de rest.

Van wie koop ik deze samenvatting?

Stuvia is een marktplaats, je koop dit document dus niet van ons, maar van verkoper mizhouubcca. Stuvia faciliteert de betaling aan de verkoper.

Zit ik meteen vast aan een abonnement?

Nee, je koopt alleen deze samenvatting voor €27,66. Je zit daarna nergens aan vast.

Is Stuvia te vertrouwen?

4,6 sterren op Google & Trustpilot (+1000 reviews)

Afgelopen 30 dagen zijn er 77764 samenvattingen verkocht

Opgericht in 2010, al 14 jaar dé plek om samenvattingen te kopen

Start met verkopen
€27,66  3x  verkocht
  • (0)
  Kopen