Question: Using R, please calculate simple returns for AAPL and GOOGL stocks for all months for 2020, 2021 and 2022. Report the month and year for

Using R, please calculate simple returns for AAPL and GOOGL stocks for all months for 2020, 2021 and 2022. Report the month and year for each stock in which they gave maximum simple return. In case of a tie, report earliest month.

Q3. (25 Points Total) For the following questions, use the stock datasets below. # Install and load necessary libraries install.packages ("PerformanceAnalytics", lib="../work/") install.packages ("xts", lib="../work/") install.packages ("lubridate", lib="../work/") install.packages ("tidyverse", lib="../work/") install.packages ("data.table", lib="../work/") library (PerformanceAnalytics, lib.loc="../work/") library (xts, lib.loc="../work/") library (lubridate, lib.loc="../work/") library (tidyverse, lib.loc="../work/") library (data.table, lib.loc="../work/")  

Q3. (25 Points Total) For the following questions, use the stock datasets below. # Install and load necessary libraries install.packages ("PerformanceAnalytics", lib="../work/") install.packages ("xts", lib="../work/") install.packages ("lubridate", lib="../work/") install.packages ("tidyverse", lib="../work/") install.packages ("data.table", lib="../work/") library (PerformanceAnalytics, lib.loc="../work/") library (xts, lib.loc="../work/") library (lubridate, lib.loc="../work/") library (tidyverse, lib.loc="../work/") library (data.table, lib.loc="../work/")

Step by Step Solution

3.42 Rating (165 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To calculate simple returns for AAPL and GOOGL stock... View full answer

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 Finance Questions!