1 Import stock prices of your choice

MSFT, LLY, ORCL

2 Convert prices to returns by quarterly

## # A tibble: 120 × 3
##    asset date        returns
##    <chr> <date>        <dbl>
##  1 ORCL  2012-03-30  0.122  
##  2 ORCL  2012-06-29  0.0204 
##  3 ORCL  2012-09-28  0.0596 
##  4 ORCL  2012-12-31  0.0650 
##  5 ORCL  2013-03-28 -0.0302 
##  6 ORCL  2013-06-28 -0.0514 
##  7 ORCL  2013-09-30  0.0809 
##  8 ORCL  2013-12-31  0.146  
##  9 ORCL  2014-03-31  0.0701 
## 10 ORCL  2014-06-30 -0.00636
## # ℹ 110 more rows

3 Make plot

4 Interpret the plot

A typical quarterly return is higher for MSFT than the other stocks. The expected return in a quarter over 10 years is 8% for MSFT, 2% for LLY and -4% for ORCL. MSFT also has the largest gain in one quarter of 26%. MSFT seems to be the stock that will provide the best returns followed by LLY and then ORCL.

5 Change the global chunck options

Hide the code, messages, and warnings