1 Import stock prices of your choice

2 Convert prices to returns by quarterly

## # A tibble: 60 × 3
##    asset date       returns
##    <chr> <date>       <dbl>
##  1 MELI  2018-03-29  0.0997
##  2 MELI  2018-06-29 -0.176 
##  3 MELI  2018-09-28  0.130 
##  4 MELI  2018-12-31 -0.151 
##  5 MELI  2019-03-29  0.550 
##  6 MELI  2019-06-28  0.186 
##  7 MELI  2019-09-30 -0.104 
##  8 MELI  2019-12-31  0.0369
##  9 MELI  2020-03-31 -0.158 
## 10 MELI  2020-06-30  0.702 
## # … with 50 more rows

3 Make plot

4 Interpret the plot

SHOP has the the most frequent rate of return on the right side of the graph. It also had the highest and lowest return out of the three companies. On the other hand MELI has a typical return around -0.2% to 0.2% with higher returns on the right, but less frequent. I would consider MELI the least risky out of the three businesses because it only had one return around -0.5%.

5 Change the global chunck options

Hide the code, messages, and warnings