1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Hatshy [7]
4 years ago
8

The file "berkeley.dat" contains average yearly temperatures for the cities of Berkeleyand Santa Barbara. Import the data into R

using the following commandsberk<-scan("berkeley.dat", what=list(double(0),double(0),double(0)))time<-berk[[1]]berkeley<-berk[[2]]stbarb<-berk[[3]](a) Plot the variablesberkeleyandstbarbversustime. Also, plotberkeleyversusstbarb.(b) Perform a regression ofberkeleyontime. What do you think about this fit? Besure to make diagnostic plots (including ACF) of the residuals. If there are anyviolations of the assumptions for a linear regression model, make sure to commenton them.(c) Perform a regression ofberkeleyonstbarb. Comment on the fit and the resid-uals.(d) Make a time series plot of the variableberkeleyand an ACF plot of the data.Does the time series appear to be stationary? Explain. Interpret the ACF plotin this situation.(e) Difference the data. The commanddiff(berkeley)will produce the differenceddata. Plot this differenced data, and make an ACF plot. What is your opinion ofwhether the series is stationary after differencing?(f) Now, we have detrended this series by using linear regression and with differenc-ing. The result of detrending via regression was a model that fit rather well andresiduals that had no apparent dependency.Let us assume then that the truemodel for this data isxt=β1+β2t+wt4
wherewt, t= 1, ..., Tis Gaussian white noise with varianceσ2w. (This is the sameas assuming that this data follows the standard regression assumptions.) Assum-ing this model, describe the model (i.e. write out a formula) for the differencedtime series,∇xt. Use this to explain the apparent dependency in the differenceddata from 1e above

Mathematics
1 answer:
WINSTONCH [101]4 years ago
7 0

Answer:

a. A plot of berkeley vs time and berkeley vs stbarb can be found in the 1st and 2nd image attachments

b. A plot of the residual diagnostics regression of berkeley on time can be found in the 3rd image attachment

c. The residuals obtained after a regression of berkeley and stbarb seem like a reasonable fit as they do not strongly violate the regression assumptions. The ACF plot for the residuals show a correlation at lag 11 that is larger than what is expected if the residuals were independent. However, it is not extremely large and is most likely due to regular variation. A plot of this regression can be found in the fourth image attachment.

d. A plot of the variable berkeley and an ACF plot of the data can be found as the first diagram in the fifth image attachment. The time series here has an increasing trend which means that it could not possibly be stationary. The ACF plot is difficult to interpret since the data is not stationary. It cannot be interpreted as an approximation to the auto-correlation function.

e. A plot of the differenced data and its corresponding ACF plot can be found as the second diagram in the fifth image attachment.

The data here seems to be fairly stationary after differencing with a fairly constant variance and no discernible trend.

f. The formula for the differenced time series would be

x_1 - x_{t-1} = \beta _1 + w_t - w_{t-1}

The differenced data has a constant mean. The ACF at lag one is negative and significantly outside the confidence intervals. The other lags show no or weak dependency

Step-by-step explanation:

I have attached images of this solution to represent the various constraints plotted against each other.

a. The plots of berkeley vs time and berkeley vs stbarb are contained in the first and second image attachments.

b. The residual diagnostics plots of a regression of berkeley on time(including the ACF) are contained in the third image attachment.

Inferences can be made thus:

Residual standard error: 0.4539 on 102 degrees of freedom

Multiple R-Squared: 0.4015

Adjusted R-Squared: 0.3956

F-Statistic: 68.43 on 1 and 102 degrees of freedom

The F test therefore indicates a strong relationship

c. The residual diagnostics plots of a regression of berkeley on stbarb(including the ACF) are contained in the fourth image attachment.

Inferences can be made thus:

Residual standard error: 0.5221 on 102 degrees of freedom

Multiple R-Squared: 0.2079

Adjusted R-Squared: 0.2001

F-Statistic: 26.77 on 1 and 102 degrees of freedom

The residuals here do not strongly violate the regression assumptions. The ACF plot for the residuals show a correlation at lag 11 that is larger than what is expected if the residuals were independent. However, it is not extremely large and is most likely due to regular variation.

d. A plot of the variable berkeley and an ACF plot of the data is contained as the first diagram in the fifth image attachment.

The time series here has an increasing trend which means that it could not possibly be stationary. The ACF plot is difficult to interpret since the data is not stationary. It cannot be interpreted as an approximation to the auto-correlation function.

e. A plot of the differenced data and its corresponding ACF plot is find as the second diagram in the fifth image attachment.

The data here seems to be fairly stationary after differencing with a fairly constant variance and no discernible trend.

f. The model after the differencing would be

x_1 - x_{t-1} = \beta _1 + w_t - w_{t-1}

The differenced data has a constant mean. This corresponds to the ACF plot in the previous question. The ACF at lag one is negative and significantly outside the confidence intervals. The other lags show no or weak dependency

You might be interested in
Can 57 rows be divided into equal sections
Serjik [45]
Yes it can be divided into 3 equal sections of 19
8 0
4 years ago
Read 2 more answers
How do I answer question b?
SCORPION-xisa [38]
The answer for that would be 2 raise to 5. solution:

2 ³ x 2 raise to 6 = 2 raise to 9
thus, you have now, 
2 raise to 9 over 2 raise to 4

subtracting 4 from 9
the Answer is 2 raise to 5
7 0
3 years ago
A runner has run 1.192 kilometers of a 10-kilometer race. How much farther does he need to run to finish the race?
Marianna [84]
Answer is 8.08 kilometers
4 0
3 years ago
Read 2 more answers
How many times can 7 go into 50
Damm [24]

Answer:

7 without going over

Step-by-step explanation:

3 0
4 years ago
If the value of b is 7 , then what is the value of the expression -3b2 + 25 = ?
Katarina [22]
Hello there!

Evaluate
-3b² + 25
For b = 7
-3(7)² + 25
-3(49) + 25
-147 + 25
= -122

I hope that helps!
6 0
3 years ago
Other questions:
  • Use the elimination method to solve the system of equations. <br><br> 3x+4y=8<br> X-Y=12
    9·2 answers
  • What is the square root of 312​
    13·1 answer
  • Evaluate M^2/P^4 for M = 10, N = -5, and P = -2
    14·2 answers
  • Mary buys a 10-meter spool of thread for sewing. She uses 210 centimeters. How much is left on the spool in centimeters?
    9·1 answer
  • Well buying organic is expensive because the product is much much harder to grow. No pesticides or fertilizer means there's a ve
    12·1 answer
  • What is the answer for 3/5 of 15
    11·1 answer
  • Jennifer's Flower Shop sells flowers for $1.35 each. Mary's Flower Shop sells a dozen flowers for $15.96. Who has the best deal?
    9·2 answers
  • ((a^2m+n)(b^n-2m))/((a^n-m)(b^2m-n))
    6·1 answer
  • What fraction of the following diagram is shaded. Write your answer in its simplest<br>form.​
    7·2 answers
  • Decrease 10kg by 10%
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!