Publications by Abel Yimesgen

Assignment 2

20.06.2020

2.Carefully explain the differences between the KNN classifier and KNN regression methods. Ans: In the case of KNN regression method the dependent variable should only be numerical (quantitative), whereas KNN classifier could be used when the dependent variable is categorical. A. Scatterplot matrix of all variables from Auto datasets. library(I...

2599 sym R (7739 sym/32 pcs) 4 img

Assignment 8

08.08.2020

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 thefeatures. Generate a data set with n = 500 and p = 2, such that the...

4860 sym R (9731 sym/64 pcs) 12 img

Assignment 3

27.06.2020

10.A. Produce some numerical and graphical summaries of the Weekly data. Do there appear to be any patterns? ANS: From the outputs of scatter plot shown below the lag variables does correlated each other but there is a strong correlation between Year and Volume. Also about 44% of the data is classified as Down, and 55% is classified as Up. librar...

4476 sym R (18444 sym/127 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. ANS:K-fold cross validation implemented by taking the total observation and dividing it into k non-overlapping groups of length of n/k. The groups act as test and training set. (b)What are the advantages and disadvantages of k-fold crossvalidation rela...

6623 sym R (6834 sym/44 pcs)

Assignment 5

11.07.2020

For parts (a) through (c), indicate which of i. through iv. is correct. Justify your answer. The lasso, relative to least squares, is: ANS:Lasso is Less flexible and hence will give improved prediction accuracy when its increase in bias is less than its decrease in variance. Repeat (a) for ridge regression relative to least squares. ANS:Ridge...

3464 sym R (10763 sym/75 pcs) 5 img

Assignment 6

25.07.2020

In this exercise, you will further analyze the Wage data set considered throughout this chapter. 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 a plot of the re...

1762 sym R (6832 sym/26 pcs) 6 img

Assignment 7

01.08.2020

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 x axis should display ˆpm1, ranging from 0 to 1, and the y-axis should display the value of the Gini index, classification error, and entropy. Hint...

4082 sym R (6565 sym/47 pcs) 7 img