Publications by Daniel Lee
Apply Data 4
1 Import stock prices of your choice 2 Convert prices to returns by quarterly 3 Make plot 4 Interpret the plot Which stock do you expect to make more money / higher quarterly return next quarter. I would expect either ISRG or GOOG have the higher quarterly return. GooG has a tighter distrubution with the average return being roughly .125, I...
601 sym 1 img
Document
# 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("XOM", "MSFT", "ABT", "NVDA", "JPM") prices <- tq_get(x = symbols, ...
1001 sym R (4232 sym/21 pcs) 2 img
Code along 6
# 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, ...
400 sym R (4144 sym/21 pcs) 2 img
Apply 6
# 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("JPM", "MS", "DNB.OL", "NDA-FI.HE") prices <- tq_get(x = symbols, ...
1692 sym R (3487 sym/19 pcs) 1 img
Applyit6
# 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("XOM", "MSFT", "ABT", "NVDA", "JPM") prices <- tq_get(x = symbols, ...
970 sym R (4232 sym/21 pcs) 2 img
Apply 6
# 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 symbol <- c("SPY", "EFA", "IJS", "EEM", "AGG") prices <- tq_get(x = symbol, ...
1030 sym R (1767 sym/11 pcs) 1 img
Code Along 6 FA
# 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, ...
400 sym R (4095 sym/21 pcs) 2 img
Cod_Along6
# 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 2019-12-31 to 2024-12-31 1 Import stock prices # Choose stocks symbols <- c("SPY", "EFA", "IJS", "EEM", "AGG") # Using tq...
341 sym R (6513 sym/17 pcs) 6 img
Code along 6
Introduction Question Variation Visualization distributions diamonds %>% ggplot(aes(x = cut)) + geom_bar() diamonds %>% ggplot(mapping = aes(x = carat)) + geom_histogram(binwidth = 0.) ## Warning: Computation failed in `stat_bin()`. ## Caused by error in `seq.default()`: ## ! 'from' must be a finite number diamonds %>% ...
280 sym R (1890 sym/18 pcs) 14 img