Publications by Jiwhan Yoo

Assignment 2

20.06.2020

Question 2 Carefully explain the differences between the KNN classifier and KNN regression methods. A: KNN regression method is closely related to the KNN classifier. KNN classifier is used to solve classification problems. It first identifies the K points in the training data closest to x0, then estimates the conditional probability for class j...

5645 sym R (8138 sym/36 pcs) 4 img

Assignment 4

04.07.2020

3. We now review k-fold cross-validation (a) Explain how k-fold cross-validation is implemented. A: k-fold cross-validation is implemented by taking the set of n observations and randomly splitting into k non-overlapping groups. The groups act as a validation set and the remainter acts as the training set. The test error is estimated by averera...

6279 sym R (6881 sym/43 pcs)

Algorithms 2 - Assignment 5

11.07.2020

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 improved prediction accura...

5125 sym R (12006 sym/60 pcs) 6 img

Algorithms 2 - Assignment3

27.06.2020

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. (a) Produce some numerical and graphical summaries of t...

5947 sym R (20850 sym/154 pcs) 10 img

Algorithms 2 - Assignment 6

25.07.2020

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 d for the polynomial. What degree was chosen, and how does this compare to the results of hypothesis testing using ANOVA? Make ...

1789 sym R (5905 sym/27 pcs) 6 img

Assignment 7

01.08.2020

Question 6 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, classification error, and ent...

4080 sym R (6402 sym/47 pcs) 7 img

Algorithms 2 - Assignment 8

08.08.2020

Question 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 transformations of the features. (a) Generate a data set with n = 500 and p = 2...

4229 sym R (11893 sym/69 pcs) 19 img