1 Import stock prices of your choice

2 Convert prices to returns by quarterly

## # A tibble: 264 × 3
##    asset date        returns
##    <chr> <date>        <dbl>
##  1 QQQ   2012-03-30  0.173  
##  2 QQQ   2012-06-29 -0.0492 
##  3 QQQ   2012-09-28  0.0693 
##  4 QQQ   2012-12-31 -0.0459 
##  5 QQQ   2013-03-28  0.0596 
##  6 QQQ   2013-06-28  0.0360 
##  7 QQQ   2013-09-30  0.104  
##  8 QQQ   2013-12-31  0.112  
##  9 QQQ   2014-03-31  0.00312
## 10 QQQ   2014-06-30  0.0714 
## # … with 254 more rows

3 Make plot

4 Interpret the plot

The rate of return for KO, JNJ and QQQ are all positive and more preductable than the others. SQQQ is neither predictable nor positive so it is not a good long term investment. TQQQ and tesla are both unpredictable and tesla seems to have average returns just below 0 while TQQQ is unpredictable but should generate positive returns during any given quarter.

5 Change the global chunck options

Hide the code, messages, and warnings