Close Question 1 (4 pts) Let's investigate some time series data. Here are 12 years worth...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Close Question 1 (4 pts) Let's investigate some time series data. Here are 12 years worth of S&P500 data (a composite index of 500 of the most capitalized stocks; it is often used as a proxy for the state of the entire United States stock market). load("spy.rda") # loads SPY table ggplot (SPY, aes(x = Date, y = Close)) + geom_line() # "Index" is the date 300- 200- 100- dim(SPY) ## [1] 3488 7 20'10 2015 2020 Date Return head (SPY) #23 #23 #3 A tibble: 6 7 ## ## Date Open High Low Close Volume Adjusted ## 1 2007-01-03 142. 143. 141. ## 2 2007-01-04 141. ## 3 2007-01-05 141. ## 4 2007-01-08 141. 141. 140. 141. 71655000 ## 5 2007-01-09 141. 142. 140. 141. 75680100 ## 6 2007-01-10 141. 142. 140. 142. 72428000 141. 94807600 107. 142. 141. 141. 142. 69620600 107. 140. 141. 76645300 106. 107. 107. 107. In particular, we will work with the daily (end of trading) returns SPY < mutate (SPY, Return = c(NA, Return = diff (Close)) / Close) [-1, ] # drop the NA one ggplot (SPY, aes(x = Date, y = Return)) + geom_line( ) 0.10- 0.05- 0.00 - -0.05- -0.10- Part (a) (1 pt) The Nadaraya-Watson estimator has the form: K(xx)Y Y h (x) = K(x-x) h Find the limit of this expression for any fixed x, when h . Part (b) (2 pt) We will use the ksmooth function with a "normal" kernel to fit an estimator of (x) for this time series. Here, we will use the index of the observations as the predictor: SPY Close Question 1 (4 pts) Let's investigate some time series data. Here are 12 years worth of S&P500 data (a composite index of 500 of the most capitalized stocks; it is often used as a proxy for the state of the entire United States stock market). load("spy.rda") # loads SPY table ggplot (SPY, aes(x = Date, y = Close)) + geom_line() # "Index" is the date 300- 200- 100- dim(SPY) ## [1] 3488 7 20'10 2015 2020 Date Return head (SPY) #23 #23 #3 A tibble: 6 7 ## ## Date Open High Low Close Volume Adjusted ## 1 2007-01-03 142. 143. 141. ## 2 2007-01-04 141. ## 3 2007-01-05 141. ## 4 2007-01-08 141. 141. 140. 141. 71655000 ## 5 2007-01-09 141. 142. 140. 141. 75680100 ## 6 2007-01-10 141. 142. 140. 142. 72428000 141. 94807600 107. 142. 141. 141. 142. 69620600 107. 140. 141. 76645300 106. 107. 107. 107. In particular, we will work with the daily (end of trading) returns SPY < mutate (SPY, Return = c(NA, Return = diff (Close)) / Close) [-1, ] # drop the NA one ggplot (SPY, aes(x = Date, y = Return)) + geom_line( ) 0.10- 0.05- 0.00 - -0.05- -0.10- Part (a) (1 pt) The Nadaraya-Watson estimator has the form: K(xx)Y Y h (x) = K(x-x) h Find the limit of this expression for any fixed x, when h . Part (b) (2 pt) We will use the ksmooth function with a "normal" kernel to fit an estimator of (x) for this time series. Here, we will use the index of the observations as the predictor: SPY
Expert Answer:
Posted Date:
Students also viewed these mathematics questions
-
Saeed does not keep proper books of account for his business but he has provided the following details of his assets and liabilities. Further information 1. Land and buildings have been revalued at...
-
The payroll records of Speedy Software show the following information about Marsha Gottschalk, an employee, for the weekly pay period ending September 30, 2013. Gottschalk is single and claims one...
-
Professor A and Professor B are teaching sections of the same introductory statistics course and decide to give common exams. They both have 25 students and design the exams to produce a grade...
-
For each independent situation below, determine the amounts indicated by the question marks: Beginning inventory Produced Available.. Sold Ending inventory. A C D 10,000 ? 7,000 ? 40,000 ? 27,000 ?...
-
The Akinnuoye Store is located in midtown Madison. During the past several years, net income has been declining because of suburban shopping centers. At the end of the company?s fiscal year on...
-
6. What class is this subnet? Internet Protocol version 4 (IPV4) 128 64 32 16 8 Class A 0.0.0.0 - 127.255.255.255.255 sul Class B 128.0.0.0 - 191.255.255.255 sub 25 Class C 192.0.0.0 223.255.255.255...
-
Leaving the Blue Mountains on Interstate 84, the elevation at Deadman pass is 3600 feet. The road signs indicate a 6.5% grade ahead for 6 miles down to a fairly level plain. Pendleton, Oregon is...
-
An equity manager conducted a stock screen on 5 , 0 0 0 U . S . stocks that comprise her investment universe. The results of the screen are presented in the table below. Criterion % of Stocks Meeting...
-
How can a telephone company use it mission statement to stand or phone company?
-
Presented below are long-term liability items for Sunland Company at December 31, 2022. Bonds payable, due 2024 $675,000 Lease liability 70,000 Notes payable, due 2027 80,000 Discount on bonds...
-
Profit for Splish Brothers Inc. was $ 1 2 5 0 0 in 2 0 2 4 . Shareholders' equity was $ 1 2 4 0 0 0 at December 3 1 , 2 0 2 2 , $ 2 1 7 0 0 0 at December 3 1 , 2 0 2 3 , and $ 3 1 9 0 0 0 at December...
-
How does the Internet and social media change exposure to media messages?
-
6. (3 marks) The Anaconda Mining Company currently is operating at less than 50% of practical capacity. The management of the company expects sales to drop below the present level of 15,000 tonnes of...
-
Express these numbers in standard notation. a. 2.87 10-8 b. 1.78 1011 c. 1.381 10-23
Study smarter with the SolutionInn App