Publications by Brandi Rodriguez

Assignment #2

20.06.2020

Chapter 3: 2,9,10,12 Question 2 Carefully explain the differences between the KNN classifier and KNN regression methods. KNN Classifier Method: used for solving classification problems where the response variable is qualitvative. It looks at the "k" number of nearest neighbors to estimate the probability of the predicted response. KNN Regression...

6422 sym R (13561 sym/38 pcs) 3 img

Assignment #7

01.08.2020

Chapter 8: 3,8,9 Question 3 Consider the Gini index, classification error, and entropy in a simple classification setting with two classes. Create a single plot that displays each of these quantities as a function of ^pm1. The xaxis should display ^pm1, ranging from 0 to 1, and the y-axis should display the value of the Gini index, classificatio...

3932 sym R (5772 sym/44 pcs) 8 img

Assignment #4

04.07.2020

Chapter 5: 3,5,6,9 Question 3 a. Explain how k-fold cross-validation is implemented K-Fold Cross-Validation can be implemented by dividing the dataset into K different parts and then removing the first part while fitting the model on the remaining K-1 parts of the data set. Then evaluate how good the predictions performed on the K part that was...

8188 sym R (9371 sym/48 pcs)

Assignment #3

27.06.2020

Chapter 4: 10,11,13 10.A Produce some numerical and graphical summaries of the Weekly data. Do there appear to be any patterns? The 'Weekly' data set contains weekly percentage returns for the S&P 500 stock index between 1990 and 2010. Year: the year the observation was recorded Lag1: Percentage return for previous week Lag2: Percentage return f...

6379 sym R (18356 sym/144 pcs) 5 img

Assignment #5

14.07.2020

Chapter 6: 2,9,11 Question 2 ** For parts (a) through (c), indicate which of i. through iv. is correct. Justify your answer.** A.) The lasso, relative to least squares, is: i. More flexible and hence will give improved prediction accuracy when its increase in bias is less than its decrease in variance. ii. More flexible and hence will give impro...

4111 sym R (9911 sym/66 pcs) 3 img

Assignment #6

25.07.2020

Chapter 7: 6, 10 Question 6 In this exercise, you will further analyze the Wage data set considered throughout this chapter. (a) Perform polynomial regression to predict wage using age. Use cross-validation to select the optimal degree for the polynomial. What degree was chosen, and how does this compare to the results of hypothesis testing usin...

2276 sym R (17195 sym/34 pcs) 7 img