Publications by Daniel Lee
Document
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 2 Convert prices to returns (monthly) 3 Assign a weight to each asset (change the weigting scheme) ## [1] "AMZN" "GOOG" "NFLX" ## [1] 0.4 0.3 0.3 ## # A...
1404 sym 1 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("TGT", "WMT", "AMZN") prices <- tq_get(x = symbols, get ...
1074 sym R (2888 sym/18 pcs) 1 img
Applications 6
Survey of Professional Forecasters The author writes on page 31: "At the beginning of 2001, the economy was not in recession. The fourth quarter of 2000 data had not been released but would, in time, show that the economy had grown by 2.2 percent in twelve months. Forecasters were nervous, however. The consensus forecast published by the Federal ...
2389 sym Python (794 sym/1 pcs) 3 tbl
Code Along 7
# 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...
439 sym R (4366 sym/20 pcs) 3 img
Document
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 2 Convert prices to returns 3 Assign a weight to each asset ## [1] "AGG" "EEM" "EFA" "IJS" "SPY" ## [1] 0.25 0.25 0.20 0.20 0.10 ## # A tibbl...
390 sym 3 img
Best Practices 7
Chater Openning Questions A manager needs to: Be prepared for a potential downturn with-in the economy. Summary Table of possible options in a contiengency plan Expecting a downturn During moderate downturns During severe recessions capital spending reevaluate cut entirely or almost entirely not only cut entirely, but consider selling assets ...
4052 sym 1 tbl
Document
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 2 Convert prices to returns (monthly) 3 Assign a weight to each asset (change the weigting scheme) ## [1] "AMZN" "GOOG" "NFLX" ## [1] 0.4 0.3 0.3 ## # A tibble: 3 × 2 ## symbols weights ## <chr> ...
750 sym 1 img
Apply it to your data 7
# 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("WMT", "TGT", "AMZN") prices <- tq_get(x = symbols, get = "stock.prices", from = "2012-12-...
949 sym R (2582 sym/16 pcs) 1 img
Applications 7
Evaluate your client company’s contingency plan After reading the response from The Bank of New Hampshire it has become very evident that they have a strong plan that will help them stay protected in the event that there could be a major downturn in the future. They have stated that they have sources of emergency liquidity that will be able to ...
1308 sym 3 tbl
Code Along 8
# 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...
428 sym R (3848 sym/16 pcs) 3 img