1 Import stock prices of your choice

2 Convert prices to returns by quarterly

## # A tibble: 180 × 3
##    asset date        returns
##    <chr> <date>        <dbl>
##  1 AAPL  2017-03-31  0.217  
##  2 AAPL  2017-06-30  0.00662
##  3 AAPL  2017-09-29  0.0717 
##  4 AAPL  2017-12-29  0.0971 
##  5 AAPL  2018-03-29 -0.00454
##  6 AAPL  2018-06-29  0.102  
##  7 AAPL  2018-09-28  0.202  
##  8 AAPL  2018-12-31 -0.355  
##  9 AAPL  2019-03-29  0.190  
## 10 AAPL  2019-06-28  0.0449 
## # ℹ 170 more rows

3 Make plot

4 Interpret the plot

AAPLs typical rate of return is around 0.1 with a maximum return of almost 0.38 and a maximum loss of -0.38. MAZN has a typical return of about .1 as well with a mximum return of .37 and a max loss of -.41. MSFT has the least distribution of any one stock here and has a typical return of about.075 and a max loss of -.019 and a max gain of .28. TSLA the most evenly distributed with an average return of 0.2 with a max loss of -.78 and a max gain .76. Finally the S and P is the least distributed with an averge gain of .08 and a max loss of -.22 and a max gain of 0.18.

5 Change the global chunck options

Hide the code, messages, and warnings