Publications by Evan Avery & Mikal Morton

Customer Attrition Analysis

15.08.2024

Objective Predict attrition using the data from a credit card company, using the classification algorithm from the rpart package. Data Preparation Created a new variable random to the dataset. Split the data (10127 observations), into training and validation datasets (70%/30% , 7137/2990) The Tree Two Interpretations from the Tree Some of the ...

1158 sym 2 img

Assignment 9

11.04.2024

Objective Predict attrition using the data from a credit card company, using the classification algorithm from the randomForest package. Data Prep Created a new variable random to the dataset. Split the data (10127 observations, 21 variables), into training and validation datasets (70%/30% , 7137/2990) The Model A random forest model was used to...

963 sym 2 img

Assignment 8

08.04.2024

Objective Predict attrition using the data from a credit card company, using the classification algorithm from the rpart package. Data Prep Created a new variable random to the dataset. Split the data (10127 observations), into training and validation datasets (70%/30% , 7137/2990) The Tree Two Interpretations from the Tree The most likely att...

1135 sym 2 img

Assignment 7

25.03.2024

Data prep for modeling Data Summary: The variables: store, and holiday flag are continuous, but should be categorical ## Store Date Weekly_Sales Holiday_Flag ## Min. : 1 Length:6435 Min. : 209986 Min. :0.00000 ## 1st Qu.:12 Class :character 1st Qu.: 553350 1st Qu.:0.00000 ## Median :23 ...

1212 sym

Assignment 6

14.03.2024

1. Is there an association between leaving the company and having a work accident? ## ## ## Cell Contents ## |-------------------------| ## | N | ## | Chi-square contribution | ## | N / Row Total | ## | N / Col Total | ## | N / Table Total | ## |-------------------------| ## ## ## Total Obs...

893 sym

Assignment 5

29.02.2024

1. Is there a difference in satisfaction level between those that left and those that stayed in the company? Employees that stay, on average, are more satisfied. ## ## Welch Two Sample t-test ## ## data: hr$satisfaction_level by hr$Employee_Status ## t = -46.636, df = 5167, p-value < 2.2e-16 ## alternative hypothesis: true difference in means b...

554 sym

T_test

26.02.2024

Is there a difference in mpg between automatic and manual transmisson? ## ## Welch Two Sample t-test ## ## data: mtcars$mpg by mtcars$am ## t = -3.7671, df = 18.332, p-value = 0.001374 ## alternative hypothesis: true difference in means between group 0 and group 1 is not equal to 0 ## 95 percent confidence interval: ## -11.280194 -3.209684 ##...

128 sym