Publications by Tyler Werland
Homework2
(2) Carefully explain the differences between the KNN classifier and KNN regression methods. In simple terms, they are similar, but KNN classifier is used to solve classification problems whereas as KNN regression is used to solve regression problems. They both use the same identifiers but they estimate differently. (9) This question involves the...
4573 sym R (10554 sym/41 pcs) 6 img
Homework 6
library(ISLR) library(boot) library(leaps) ## Warning: package 'leaps' was built under R version 4.0.2 library(gam) ## Warning: package 'gam' was built under R version 4.0.2 ## Warning: package 'foreach' was built under R version 4.0.2 (6) In this exercise, you will further analyze the “Wage” data set considered throughout this chapter. a. ...
1705 sym R (8085 sym/24 pcs) 5 img
Homework5
library(ISLR) library(glmnet) ## Warning: package 'glmnet' was built under R version 4.0.2 library(pls) ## Warning: package 'pls' was built under R version 4.0.2 library(MASS) library(leaps) ## Warning: package 'leaps' was built under R version 4.0.2 (2) For parts (a) through (c), indicate which of i. through iv. is correct. Justify your answer...
3102 sym R (4495 sym/56 pcs) 6 img
Homework3
library(ISLR) library(MASS) library(class) (10) This question should be answered using the “Weekly” data set, which is part of the “ISLR” package. This data is similar in nature to the “Smarket” data from this chapter’s lab, except that it contains 1089 weekly returns for 21 years, from the beginning of 1990 to the end of 2010. (a...
4229 sym R (24286 sym/145 pcs) 4 img
Homework8
library(e1071) ## Warning: package 'e1071' was built under R version 4.0.2 library(ISLR) (5) We have seen that we can fit an SVM with a non-linear kernel in order to perform classification using a non-linear decision boundary. We will now see that we can also obtain a non-linear decision boundary by performing logistic regression using non-linear...
3937 sym R (13192 sym/89 pcs) 26 img
Homework4
library(ISLR) library(boot) library(MASS) (3) We now review k-fold cross-validation. a. Explain how k-fold cross-validation is implemented. The k-fold cross-validation method takes a set of observations then randomly splits or folds them into non-overlapping groups as indicated by the value of k. One set is held out for validation while the rem...
5380 sym R (7152 sym/43 pcs)
Homework7
library(ISLR) library(tree) ## Warning: package 'tree' was built under R version 4.0.2 library(caret) ## Warning: package 'caret' was built under R version 4.0.2 ## Warning: package 'ggplot2' was built under R version 4.0.2 library(randomForest) ## Warning: package 'randomForest' was built under R version 4.0.2 (3) Consider the Gini index, class...
3689 sym R (6344 sym/50 pcs) 7 img