Publications by Cody Grube

Apply 8

28.03.2023

# Load packages # Core library(tidyverse) library(tidyquant) Goal Visualize and examine changes in the underlying trend in the downside risk of your portfolio in terms of kurtosis. Choose your stocks. from 2012-12-31 to present 1 Import stock prices symbols <- c("NVDA", "AAPL", "NFLX", "MSFT", "TSLA") prices <- tq_get (x = symbols, ...

1236 sym R (2959 sym/14 pcs) 1 img

Code Along 8

27.03.2023

# Load packages # Core library(tidyverse) library(tidyquant) Goal Collect individual returns into a portfolio by assigning a weight to each stock five stocks: “SPY”, “EFA”, “IJS”, “EEM”, “AGG” from 2012-12-31 to 2017-12-31 1 Import stock prices symbols <- c("SPY", "EFA", "IJS", "EEM", "AGG") prices <- tq_get (x = symbols...

430 sym R (3893 sym/16 pcs) 3 img

Code Along 7

21.03.2023

# Load packages # Core library(tidyverse) library(tidyquant) Goal Collect individual returns into a portfolio by assigning a weight to each stock five stocks: “SPY”, “EFA”, “IJS”, “EEM”, “AGG” from 2012-12-31 to 2017-12-31 1 Import stock prices symbols <- c("SPY", "EFA", "IJS", "EEM", "AGG") prices <- tq_get (x = symbols...

438 sym R (4486 sym/18 pcs) 3 img

Apply 7

21.03.2023

# Load packages # Core library(tidyverse) library(tidyquant) Goal Visualize and compare skewness of your portfolio and its assets. Choose your stocks. from 2012-12-31 to 2017-12-31 1 Import stock prices symbols <- c("NVDA", "AAPL", "NFLX", "MSFT", "TSLA") prices <- tq_get (x = symbols, from = "2012-12-31", ...

1176 sym R (2537 sym/14 pcs) 1 img

Apply 6

07.03.2023

# Load packages # Core library(tidyverse) library(tidyquant) Goal Visualize expected returns and risk to make it easier to compare the performance of multiple assets and portfolios. Choose your stocks. from 2012-12-31 to 2017-12-31 1 Import stock prices symbols <- c("NVDA", "AAPL", "NFLX", "MSFT", "TSLA") prices <- tq_get (x = symbols, ...

1326 sym R (4233 sym/21 pcs) 2 img

Code Along 6

07.03.2023

# Load packages # Core library(tidyverse) library(tidyquant) Goal Collect individual returns into a portfolio by assigning a weight to each stock five stocks: “SPY”, “EFA”, “IJS”, “EEM”, “AGG” from 2012-12-31 to 2017-12-31 1 Import stock prices symbols <- c("SPY", "EFA", "IJS", "EEM", "AGG") prices <- tq_get (x = symbols...

401 sym R (4232 sym/21 pcs) 2 img

Apply 5

01.03.2023

# Load packages # Core library(tidyverse) library(tidyquant) Goal Collect individual returns into a portfolio by assigning a weight to each stock Choose your stocks. from 2012-12-31 to 2017-12-31 1 Import stock prices symbols <- c("NVDA", "AAPL", "NFLX", "MSFT", "TSLA") prices <- tq_get (x = symbols, from = "2012-12-31", ...

595 sym R (2421 sym/12 pcs) 1 img

Code Along 5

28.02.2023

# Load packages # Core library(tidyverse) library(tidyquant) Goal Collect individual returns into a portfolio by assigning a weight to each stock five stocks: “SPY”, “EFA”, “IJS”, “EEM”, “AGG” from 2012-12-31 to 2017-12-31 1 Import stock prices symbols <- c("SPY", "EFA", "IJS", "EEM", "AGG") prices <- tq_get (x = symbols...

351 sym R (2683 sym/14 pcs) 3 img

Apply 4

20.02.2023

1 Import stock prices of your choice Nvidia, Netflix, Tesla, Microsoft, and Apple 2 Convert prices to returns by quarterly ## # A tibble: 80 × 3 ## asset date returns ## <chr> <date> <dbl> ## 1 NVDA 2012-03-30 0.0925 ## 2 NVDA 2012-06-29 -0.108 ## 3 NVDA 2012-09-28 -0.0353 ## 4 NVDA 2012-12-31 -0.0780 ## 5 NVD...

531 sym 1 img

Code Along 4

20.02.2023

# Load packages # Core library(tidyverse) ## Warning: package 'tidyverse' was built under R version 4.2.2 ## ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.2 ── ## ✔ ggplot2 3.3.6 ✔ purrr 0.3.4 ## ✔ tibble 3.1.8 ...

220 sym R (3085 sym/11 pcs) 1 img