Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4. (optional with 5 bonus points) Write a function named AR to calculate the autocovariance functions of an AR(p) model. The function shall have three

image text in transcribed

4. (optional with 5 bonus points) Write a function named AR to calculate the autocovariance functions of an AR(p) model. The function shall have three input variables, the vector of length p that has the coefficients 01,02,0p, the variance of the white noise W, and the maximum lag the autocovariances are to be calculated. Submit the code that defines the function, run an example and compare your results with those from ARMAacf (Note ARMAacf only provides autocorrelations). For example, AR(C(0.9, -0.16, -0.02), 1, 6) should produce the results for Problem 3 above. 4. (optional with 5 bonus points) Write a function named AR to calculate the autocovariance functions of an AR(p) model. The function shall have three input variables, the vector of length p that has the coefficients 01,02,0p, the variance of the white noise W, and the maximum lag the autocovariances are to be calculated. Submit the code that defines the function, run an example and compare your results with those from ARMAacf (Note ARMAacf only provides autocorrelations). For example, AR(C(0.9, -0.16, -0.02), 1, 6) should produce the results for Problem 3 above

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

College Accounting A Practical Approach Chapters 1-26

Authors: Jeffrey Slater

8th Edition

0130911429, 978-0130911421

More Books

Students also viewed these Accounting questions

Question

=+2. What do they like better about its competition?

Answered: 1 week ago

Question

=+a. What kind of personality does the brand have?

Answered: 1 week ago