Publications by William Jasmine
Data 622 - Week 7 - Discussion - ADABoost
Libraries and setup Libraries used for the analysis shown here. library(tidyverse) library(caret) library(mlbench) library(ggplot2) library(data.table) library(randomForest) library(JOUSBoost) library(ada) seed_num <- 42 Example - Random Forest vs. ADABoost First the cell below imports the Breast cancer dataset from the mlbench package, and does ...
1755 sym R (4864 sym/14 pcs)
Data 622 - Week 4 - Discussion - LDA vs. BLR
Libraries and setup library(tidyverse) library(ISLR) library(MASS) library(ggplot2) library(data.table) seed_num <- 42 Example - LDA vs BLR First, the cell below creates two normally distributed predictor variables, \(x_1\) and \(x_2\). 1,000 samples are generated for each. set.seed(seed_num) # x1_c1 <- rnorm(100, 0) # x2_c1 <- rnorm(100, 8) # #...
3776 sym R (5823 sym/22 pcs) 7 img
Data 622 - Week 3 - kNN Models
Import and View Data Import heart disease dataset: heart <- read_csv("heart.csv", col_types = "nffnnffnfnfnff") glimpse(heart) ## Rows: 1,025 ## Columns: 14 ## $ age <dbl> 52, 53, 70, 61, 62, 58, 58, 55, 46, 54, 71, 43, 34, 51, 52, 3… ## $ sex <fct> 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1… ## $ cp <fct> 0, ...
1309 sym Python (6586 sym/21 pcs) 1 img
Efficacy of the FED
Imports The cell below imports all packages needed to run this R markdown file. library(devtools) library(blsAPI) library(rjson) library(tidyverse) Instructions The Federal Reserve’s mandate from Congress is to control inflation and to maintain low unemployment. These seem to be contradictory objectives. For this story you will need to source th...
3999 sym R (7915 sym/21 pcs) 3 img
Predicting House Sale Prices In Ames, Iowa
Setup/Imports The section below sets shows all the imports needed to run the .rmd file: library(gridExtra) library(GGally) library(psychometric) library(tidyverse) library(matrixcalc) library(MASS) library(car) library(fastDummies) library(lmtest) Introduction The work presented here uses data from Kaggle’s Housing Prices: Advanced Regression Te...
14477 sym R (16461 sym/70 pcs) 12 img 1 tbl
Data 605 Final - Part 1
Introduction/Set Up Probability Density 1: \(X\)~\(\Gamma\) Using R, generate a random variable \(X\) that has 10,000 random \(\Gamma\) PDF values. A \(\Gamma\) PDF is completely described by \(n\) (a size parameter) and \(\lambda\) (a shape parameter). Choose any \(n\) greater 3 and an expected value \(\lambda\) between 2 and 10 (you choose). Prob...
15057 sym
Data 605 Final - Part 1
# set a seed to ensure reproducability seed_num = 2023 Introduction/Set Up Probability Density 1: \(X\)~\(\Gamma\) Using R, generate a random variable \(X\) that has 10,000 random \(\Gamma\) PDF values. A \(\Gamma\) PDF is completely described by \(n\) (a size parameter) and \(\lambda\) (a shape parameter). Choose any \(n\) greater 3 and an expect...
12651 sym
Data 605 - HW14 - Taylor Series Expansions
Functions and Imports The code below imports the necessary packages, and defines a function that can be used to graph Taylor Expansion estimates. library(pracma) graph_taylor <- function(f_to_approximate, a, x_min, x_max){ # f_to_approximate: function to find expansion of. # a: center point of taylor expansion. # x_min: min x value to estim...
6781 sym R (997 sym/6 pcs) 4 img 4 tbl
Data 605 - HW13 - Applications of Calculus
Question 1 Description Use integration by substitution to solve the following integral: \(\int 4e^{-7x} \ dx\). Solution Let \(u = -7x\). Then, \(\frac{du}{dx} = -7 \rightarrow du = -7 \ dx\). Substituting into our integral: \[ \begin{align} \int 4e^{-7x} \ dx &= \int -\frac{4}{7}e^u \ du \\ &= -\frac{4}{7} \int e^u \ du \\ &= -\frac{4}{7}e^u+C \...
7038 sym 3 img
Data 605 - Week 13 Discussion
Question comes from “APEX Calculus” by Gregory Hartman. Question 11, Section 7.5 Problem Description: A box weighing 2 lbs lifts 10 lbs of sand vertically by 50 ft.A crack in the box allows the sand to leak out such that 9 lbs of sand is in the box at the end of the trip. Assume the sand leaked out at a uniform rate. What is the total work do...
1419 sym 1 img