1 Import stock prices of your choice

I looked at the fast food chains McDonald’s(MCD), Wendy’s(WEN), Taco Bell(YUM), Domino’s Pizza(DPZ), and Starbucks(SBUX).

2 Convert prices to returns by quarterly

## # A tibble: 100 × 3
##    asset date       returns
##    <chr> <date>       <dbl>
##  1 MCD   2015-03-31  0.0525
##  2 MCD   2015-06-30 -0.0160
##  3 MCD   2015-09-30  0.0445
##  4 MCD   2015-12-31  0.189 
##  5 MCD   2016-03-31  0.0694
##  6 MCD   2016-06-30 -0.0361
##  7 MCD   2016-09-30 -0.0345
##  8 MCD   2016-12-30  0.0614
##  9 MCD   2017-03-31  0.0701
## 10 MCD   2017-06-30  0.173 
## # … with 90 more rows

3 Make plot

4 Interpret the plot

Looking at the quarterly returns of these various fast food chains from 2015-2020, it appears that McDonald’s, Starbucks and Taco bell offer the highest return opportunities. The plots of Wendy’s and Domino’s represent more stable returns over the years, while the other three chains show various periods of high returns (McDonald’s being most notable). This suggests these chains are slightly more volatile, with higher return prospects.

5 Change the global chunck options

Hide the code, messages, and warnings