Publications by Tyler Berard
Quiz 1
# Load packages library(tidyquant) ## Warning: package 'tidyquant' was built under R version 4.0.3 ## Warning: package 'lubridate' was built under R version 4.0.3 ## Warning: package 'PerformanceAnalytics' was built under R version 4.0.3 ## Warning: package 'xts' was built under R version 4.0.3 ## Warning: package 'zoo' was built under R versio...
1083 sym R (2704 sym/22 pcs)
Quiz 4
Witht the given stock, conduct the Bollinger Bands analysis by answering the questions below. ## Warning: package 'tidyquant' was built under R version 4.0.3 ## Loading required package: lubridate ## Warning: package 'lubridate' was built under R version 4.0.3 ## ## Attaching package: 'lubridate' ## The following objects are masked from 'packag...
1593 sym R (6366 sym/38 pcs) 1 img
Quiz 3
# Load packages library(tidyquant) ## Warning: package 'tidyquant' was built under R version 4.0.3 ## Warning: package 'lubridate' was built under R version 4.0.3 ## Warning: package 'PerformanceAnalytics' was built under R version 4.0.3 ## Warning: package 'xts' was built under R version 4.0.3 ## Warning: package 'zoo' was built under R versio...
1444 sym R (5530 sym/32 pcs)
Quiz 2
In this exercise, use Chapter 4.2 Quantitative vs. Quantitative Data Visualization with R. # Load packages library(tidyquant) ## Warning: package 'tidyquant' was built under R version 4.0.3 ## Warning: package 'lubridate' was built under R version 4.0.3 ## Warning: package 'PerformanceAnalytics' was built under R version 4.0.3 ## Warning: packa...
1307 sym R (2822 sym/24 pcs) 2 img
Quiz 5
## # A tibble: 1,022 x 3 ## # Groups: symbol [3] ## symbol date monthly.returns ## <chr> <date> <dbl> ## 1 AMZN 1997-05-30 -0.234 ## 2 AMZN 1997-06-30 0.0278 ## 3 AMZN 1997-07-31 0.554 ## 4 AMZN 1997-08-29 -0.0239 ## 5 AMZN 1997-09-30 0.855 ## 6 AM...
1709 sym R (2935 sym/8 pcs) 1 img
Term Paper
Finance students in the past have participated in national student competitions. They are a great opportunity to practice and further your knowledge and skills you learned in the finance program at PSU. Because not all of you are finance major, grading will be generous as long as you follow the instructions (e.g., number counts for answers). In a...
5471 sym
Quiz 6
Q1 Get monthly returns of Tesla, Amazon, and Netflix for the last 5 years. library(tidyquant) library(tidyverse) from <- today() - years(5) stock_returns_monthly <- c("TSLA", "AMZN", "NFLX") %>% tq_get(get = "stock.prices", from = from) %>% group_by(symbol) %>% tq_transmute(select = adjusted, mutate_fun = pe...
1676 sym R (7912 sym/18 pcs)