Question

6.33 The data file named deere1 contains 82 consecutive values for the amount of deviation (in 0.000025 inch units) from a sp

That is R code. The data is at library(TSA) from R.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

ANSWER: Below is the R code. I have added the required comments in the code itself.

#################################

rm(list=ls(all=TRUE))

library(TSA)

data(deere1)
X=deere1

summary(X)

## A: Time Series Plot

ts.plot(X,main="Time Series Plot of the data")

d=which(X==max(X))
d
max(X)

# Comment: The data point at index 27 is an outlier. It value is 30
# which is very different from usual trend of the data.

## B: Sample ACF

acf(X,lag.max = length(X))

# Comment: All the acf's except the second one are inside the confidence
# bounds.

# C: NEW ACF

# WE replace the outlier observation with the median of the rest of
# the observations

X[d]=median(X[-d])

acf(X,lag.max = length(X)) # New ACF

# Comment: Now all the acf's are inside confidence bounds. This
# tells that observations are i.i.d.

## D: NEW PACF

pacf(X,lag.max = length(X)) # New PACF

# Comment: The PACF is also under the confidence bounds, so we cannot use
# AR models to model the data. Since ACF says it is i.i.d, it is better
# not to use any time series model.

Add a comment
Know the answer?
Add Answer to:
That is R code. The data is at library(TSA) from R. 6.33 The data file named...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Exercise 6,7,8, and 9 use data from exercise 5 for exercise 6. use data from the...

    Exercise 6,7,8, and 9 use data from exercise 5 for exercise 6. use data from the graph for 7,8,9 d. LY, for some integer k> 0 5. The following table contains quarterly nominal GDP in U.S. (billions of dol- lars). Let Y, denote the GDP at time t and let y, = ln (Y). (Show your calculations in a spreadsheet, e.g., in Microsoft Excel.) a. Plot the time series (Y). Can the underlying stochastic process be weakly b. Calculate the...

  • A group of physics students collected data from a test of the projectile motion problem that...

    A group of physics students collected data from a test of the projectile motion problem that was analyzed in a previous lab exercise (L5). In their test, the students varied the angle and initial velocity Vo at which the projectile was launched, and then measured the resulting time of flight (tright). Note that tright was the dependent variable, while and Vo were independent variables. The results are listed below. (degrees) Time of Flight (s) Initial Velocity V. (m/s) 15 20...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT