Publications by Laween Khaild
Assignment 8
library(ggplot2) ## Warning: package 'ggplot2' was built under R version 4.3.2 library(e1071) library(ISLR2) library(caret) ## Loading required package: lattice library(dplyr) ## ## Attaching package: 'dplyr' ## The following objects are masked from 'package:stats': ## ## filter, lag ## The following objects are masked from 'package:base': ##...
4961 sym R (22999 sym/86 pcs) 5 img
Direct-Mail Fundraising
Business Problem A national veterans’ organization seeks to develop a predictive model to improve the cost-effectiveness of their direct marketing campaign. With a database of over 13 million donors, they are among the largest direct-mail fundraisers in the U.S. Recent records show a 5.1% response rate and an average donation of $13.00. Each mail...
6472 sym R (49988 sym/100 pcs) 5 img
Assignment 4
library(ISLR) library(ISLR2) ## ## Attaching package: 'ISLR2' ## The following objects are masked from 'package:ISLR': ## ## Auto, Credit Question 3 (a) Explain how k-fold cross-validation is implemented. basically, k-fold Cross-Validation is a resampling procedure used to evaluate machine learning models on a limited data sample. This proc...
4010 sym R (2889 sym/33 pcs)
Assignment 3
library(ggplot2) ## Warning: package 'ggplot2' was built under R version 4.3.2 library(ISLR) library(corrplot) ## corrplot 0.92 loaded library(MASS) library(class) library(e1071) Question 13 head(Weekly) summary(Weekly) ## Year Lag1 Lag2 Lag3 ## Min. :1990 Min. :-18.1950 Min. :-18.19...
3268 sym R (17620 sym/84 pcs) 7 img
Assignment 2
Question 2 Carefully explain the differences between the KNN classifier and KNN regression methods. We would employ a regression technique for a continuous response variable to forecast the closest observations by estimating the average value. For a categorical response variable, we would utilize a classification approach, which is non-parametric...
5537 sym R (8664 sym/37 pcs) 3 img
Assignment 5
library(ISLR) library(glmnet) ## Loading required package: Matrix ## Loaded glmnet 4.1-8 Question 2 ##2. For parts (a) through (c), indicate which of i. through iv. is correct. Justify your answer. The lasso, relative to least squares, is: More flexible and hence will give improved prediction ac- curacy when its increase in bias is less than its...
2613 sym R (1927 sym/15 pcs) 2 img
Assignment 7
library(ggplot2) ## Warning: package 'ggplot2' was built under R version 4.3.2 library(reshape2) library(ISLR2) library(tree) library(rpart) library(rpart.plot) ## Warning: package 'rpart.plot' was built under R version 4.3.2 library(caret) ## Loading required package: lattice library(randomForest) ## randomForest 4.7-1.1 ## Type rfNews() to see ne...
4359 sym R (10633 sym/59 pcs) 6 img