Question: Hi! I need help starting with this statistics project. The problem and the first few lines of the csv are attached. I know you can't

Hi! I need help starting with this statistics project. The problem and the first few lines of the csv are attached. I know you can't get the results but if you could provide the code that would be great. Thanks!

Hi! I need help starting with this statistics project. The problem andthe first few lines of the csv are attached. I know you

2.1 Backward returns For any t, h E N., define the h-min backward return at time t as: ro(t, h ) := s(t) - s(max(t - h, 1)) s(max(t - h, 1)) where s(t) denotes the price at time t. Load final project . csv in R. Cal- culate the 3-min, 10-min and 30-min backward returns of all the three assets at t = 1, ..., T. Create a dataframe with columns named in the form of Asset_i_BRet h, where i E {1, 2, 3} and h E {3, 10, 30}, such that the col- umn Asset i BRet h corresponds to the time series of the h-min backward returns of Asset i. The resulting dataframe should have 524,160 rows and 9 columns. Export this dataframe to a csv file named as bret . csv and submit it to OJ to verify its correctness. (Hint: Vector/matrix-based calculation is much more efficient than loops in R.)\f

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!