Publications by Karen Favorito
STA 6543 - HW2
Question 2: Carefully explain the differences between the KNN classifier and KNN regression methods. KNN Regression and KNN Classifier are fairly similar. KNN Regression is used for quantitative or regression problems where the variable of interest Y is numerical or continuous. Meanwhile, KNN classifier is used for qualitative or classification ...
7059 sym R (11792 sym/36 pcs) 4 img
STA 6543 - HW 5
Question 2: For parts (a) through (c), indicate which of i. through iv. is correct. Justify your answer. More flexible and hence will give improved prediction accuracy when its increase in bias is less than its decrease in variance. More flexible and hence will give improved prediction accuracy when its increase in variance is less than its dec...
5034 sym R (7708 sym/57 pcs) 4 img
STA 6543 HW 3
Question 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 1, 089 weekly returns for 21 years, from the beginning of 1990 to the end of 2010. Load the data set and packages library(ISLR) library(MA...
9217 sym R (35801 sym/103 pcs) 10 img
STA 6543 - HW 4
Question 3: We now review k-fold cross-validation. Explain how k-fold cross-validation is implemented. The k-fold cross-validation is implemented by dividing the data into k parts. After the division, the initial part is assigned as a validation set, while the model is fit on k-1 parts. This process is repeated k times, using different parts a...
6119 sym R (5023 sym/40 pcs)
STA 6543 - HW #8
Load Packages library(e1071) library(ISLR) library(tidyverse) ## ── Attaching packages ───────────────────────────────────────────────────────────── tidyverse 1.3.0 ── ## ✓ ggplot2 3.3.2 ✓ purrr 0.3.4 ## ✓ ...
6011 sym R (15961 sym/101 pcs) 22 img
STA 6543 - HW#6
Question 6: In this exercise, you will further analyze the Wage data set considered throughout this chapter. Load packages and attach data set library(ISLR) library(boot) library(caret) ## Loading required package: lattice ## ## Attaching package: 'lattice' ## The following object is masked from 'package:boot': ## ## melanoma ## Loading req...
2096 sym R (6695 sym/33 pcs) 6 img
STA 6543 - HW #7
Load Libraries library(ISLR) library(tree) library(caret) ## Loading required package: lattice ## Loading required package: ggplot2 library(randomForest) ## randomForest 4.6-14 ## Type rfNews() to see new features/changes/bug fixes. ## ## Attaching package: 'randomForest' ## The following object is masked from 'package:ggplot2': ## ## margi...
4870 sym R (9049 sym/53 pcs) 7 img