Publications by Amanda Simpson

Apply 12

30.11.2022

# Load packages # Core library(tidyverse) library(tidyquant) Goal Examine how each asset contributes to portfolio standard deviation. This is to ensure that our risk is not concentrated in any one asset. 1 Import stock prices Choose your stocks from 2012-12-31 to present. symbols <- c("AMZN", "MSFT", "HD", "WMT") prices <- tq_get(x =...

696 sym R (23719 sym/26 pcs) 2 img

Code Along 13

05.12.2022

# Load packages # Core library(tidyverse) library(tidyquant) # time series library(timetk) Goal Simulate future portfolio returns five stocks: “SPY”, “EFA”, “IJS”, “EEM”, “AGG” market: “SPY” from 2012-12-31 to 2017-12-31 1 Import stock prices symbols <- c("SPY", "EFA", "IJS", "EEM", "AGG") prices <- tq_get(x ...

455 sym R (9199 sym/36 pcs) 2 img