1 Import stock prices of your choice

2 Convert prices to returns by quarterly

## # A tibble: 200 × 3
##    asset date       returns
##    <chr> <date>       <dbl>
##  1 NVDA  2012-03-30  0.0969
##  2 NVDA  2012-06-29 -0.103 
##  3 NVDA  2012-09-28 -0.0347
##  4 NVDA  2012-12-31 -0.0750
##  5 NVDA  2013-03-28  0.0529
##  6 NVDA  2013-06-28  0.0999
##  7 NVDA  2013-09-30  0.114 
##  8 NVDA  2013-12-31  0.0351
##  9 NVDA  2014-03-31  0.123 
## 10 NVDA  2014-06-30  0.0399
## # ℹ 190 more rows

3 Make plot

## $y
## [1] "Frequency"
## 
## $x
## [1] "Rate of Returns"
## 
## $title
## [1] "Distribution of Monthly Returns, 2012-2016"
## 
## attr(,"class")
## [1] "labels"

4 Interpret the plot

Google has a higher quarterly return compared to the other stock; however, Nvidia and Intel are the closest to the same return rates as Google. Those three also have the highest volatility, with AMD having the lowest volatility followed closely behind Apple, who gets a higher return rate than AMD but is slightly more volatile. With this in mind, I expect Google to make the highest returns on average every quarter but is riskier compared to a stock like Apple or AMD, so an investment into Google and AMD would be the best investment in my eyes as we would be able to diversify our risk associated with Google while still gaining a high return from the Google stock listing. This way, if Google has a bad quarter, AMD would offset the loss from Google, meaning we wouldn’t likely see a loss quarter to quarter while still seeing high returns when Google has a solid growth quarter.

5 Change the global chunck options

Hide the code, messages, and warnings