Publications by Kenton Quaglieri

Apply12 3100

06.12.2024

library(tidymodels) ## Warning: package 'tidymodels' was built under R version 4.3.3 ## ── Attaching packages ────────────────────────────────────── tidymodels 1.2.0 ── ## ✔ broom 1.0.7 ✔ recipes 1.1.0 ## ✔ dials 1.3.0 ✔ rsample ...

4735 sym R (17683 sym/51 pcs) 3 img

Apply 13

04.12.2024

# Load packages # Core library(tidyverse) library(tidyquant) # Source function source("simulate_accumulation.R") 1 Import stock prices Revise the code below. Replace symbols with your stocks. Replace the from and the to arguments to date from 2012-12-31 to present. symbols <- c("BA", "NVTS", "AES", "JPM", "ITA") prices <- tq_get(x =...

1350 sym R (5436 sym/25 pcs) 2 img

Code along 12

03.12.2024

library(tidymodels) ## Warning: package 'tidymodels' was built under R version 4.3.3 ## ── Attaching packages ────────────────────────────────────── tidymodels 1.2.0 ── ## ✔ broom 1.0.7 ✔ recipes 1.1.0 ## ✔ dials 1.3.0 ✔ rsample ...

4481 sym R (13780 sym/51 pcs)

Code along 13

02.12.2024

# 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 = ...

451 sym R (9131 sym/36 pcs) 2 img

CA11

22.11.2024

Goal is to automate building and tuning a classification model to predict employee attrition, using the h2o::h2o.automl. Set up Import data Import the cleaned data from Module 7. library(h2o) ## Warning: package 'h2o' was built under R version 4.3.3 ## ## ---------------------------------------------------------------------- ## ## Your next...

372 sym R (35350 sym/69 pcs)

apply 12 3100

20.11.2024

# Load packages # Core library(tidyverse) library(tidyquant) library(broom) library(lubridate) library(tibbletime) 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...

860 sym R (17058 sym/20 pcs) 2 img

Code along 12

18.11.2024

# Load packages # Core library(tidyverse) library(tidyquant) library(readr) # Time series library(lubridate) library(tibbletime) # modeling library(broom) Goal Examine how each asset contributes to portfolio standard deviation. This is to ensure that our risk is not concentrated in any one asset. five stocks: “SPY”, “EFA”, �...

657 sym R (15831 sym/23 pcs) 2 img

Apply11

14.11.2024

# for Core packages library(tidyverse) ## Warning: package 'ggplot2' was built under R version 4.3.3 ## Warning: package 'forcats' was built under R version 4.3.3 ## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ── ## ✔ dplyr 1.1.4 ✔ readr 2.1....

475 sym R (6547 sym/34 pcs) 3 img

Apply11

13.11.2024

Import your data data(flights) flights %>% skimr::skim() Data summary Name Piped data Number of rows 336776 Number of columns 19 _______________________ Column type frequency: character 4 numeric 14 POSIXct 1 ________________________ Group variables None Variable type: character skim_variable n_missing complete_rate min max empty n_u...

526 sym Python (2724 sym/19 pcs) 4 tbl

CA11

12.11.2024

library(dplyr) ## ## Attaching package: 'dplyr' ## The following objects are masked from 'package:stats': ## ## filter, lag ## The following objects are masked from 'package:base': ## ## intersect, setdiff, setequal, union library(ggplot2) ## Warning: package 'ggplot2' was built under R version 4.3.3 library(lubridate) ## ## Attac...

421 sym R (14291 sym/49 pcs) 5 img