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
Calculate the value of 1.8 / 0.4 x 0.36 / 0.24​
Whitepunk [10]

Answer:

6.75

Step-by-step explanation:

that is the answer by the way

6 0
3 years ago
Can anyone help me with my last math test question pls my grades are depending on this test so pls help and get me the right ans
zysi [14]

Answer:

A

Step-by-step explanation:

3 0
3 years ago
Read 2 more answers
Which equation best represents the line of best fit for the scatter-plot?
Anon25 [30]
The answer is c use Desmos .com and see creat the lines
4 0
3 years ago
What is the domain of f(x) + g(x)
Kruka [31]

Answer:

All real numbers except 6

6 0
4 years ago
Please answer correctly
vekshin1

Theoretical: the result is based on the number of outcomes.

7 0
4 years ago
Other questions:
  • JUSTIFY. What must be true of each of the values of x and y if -Cyrus is positive? Zero? Negative?
    6·1 answer
  • Solve the following equation 6(z-2)+4=10<br> A.z=2<br> B.z=3<br> C.z=-3<br> D.z=-4
    9·2 answers
  • A rectangle sandbox has a width of 5 feet. Tbe sandbox is 5 times as long as it is wide. What is the perimeter of the sandbox?
    8·1 answer
  • The area of a square is 8 square meters. Which of these
    12·1 answer
  • Four equals the difference of eight and a number and the result is divided by four
    15·1 answer
  • Your iris controls the amount of light that enters your eye by changing the size of your pupil. An eye is shown resembling a lar
    15·1 answer
  • The measure of angle tis 60 degrees.
    9·1 answer
  • The triangle below is isosceles. Find the length of side x in simplest radical form with
    8·1 answer
  • Which term best describes a figure formed by three segments connecting three non Collin ear points
    6·2 answers
  • Graph y &lt; 1/3 x + 1/2
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!