1 Import stock prices of your choice

I chose AAPL, GOOG, and NFLX.

## # A tibble: 5,091 × 8
##    symbol date        open  high   low close    volume adjusted
##    <chr>  <date>     <dbl> <dbl> <dbl> <dbl>     <dbl>    <dbl>
##  1 AAPL   2020-01-02  74.1  75.2  73.8  75.1 135480400     72.3
##  2 AAPL   2020-01-03  74.3  75.1  74.1  74.4 146322800     71.6
##  3 AAPL   2020-01-06  73.4  75.0  73.2  74.9 118387200     72.1
##  4 AAPL   2020-01-07  75.0  75.2  74.4  74.6 108872000     71.8
##  5 AAPL   2020-01-08  74.3  76.1  74.3  75.8 132079200     73.0
##  6 AAPL   2020-01-09  76.8  77.6  76.6  77.4 170108400     74.5
##  7 AAPL   2020-01-10  77.7  78.2  77.1  77.6 140644800     74.7
##  8 AAPL   2020-01-13  77.9  79.3  77.8  79.2 121532000     76.3
##  9 AAPL   2020-01-14  79.2  79.4  78.0  78.2 161954400     75.2
## 10 AAPL   2020-01-15  78.0  78.9  77.4  77.8 121923600     74.9
## # ℹ 5,081 more rows

2 Convert prices to returns by quarterly

## # A tibble: 84 × 3
##    asset date       returns
##    <chr> <date>       <dbl>
##  1 AAPL  2020-03-31 -0.164 
##  2 AAPL  2020-06-30  0.364 
##  3 AAPL  2020-09-30  0.241 
##  4 AAPL  2020-12-31  0.138 
##  5 AAPL  2021-03-31 -0.0813
##  6 AAPL  2021-06-30  0.116 
##  7 AAPL  2021-09-30  0.0341
##  8 AAPL  2021-12-31  0.229 
##  9 AAPL  2022-03-31 -0.0155
## 10 AAPL  2022-06-30 -0.243 
## # ℹ 74 more rows

3 Make plot

4 Interpret the plot

AAPL Low end of distributions = ~-22% Upper end of distributions = ~38% Typical Return = ~15%

GOOG Low end of distributions = ~-22% Upper end of distributions = ~30% Typical Return = ~15%

NFLX Low end of distributions = ~-75% Upper end of distributions = ~35% Typical Return = ~10%

5 Change the global chunk options

Hide the code, messages, and warnings