Publications by Karthik Munnam

Assignment # 8

27.04.2024

##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, suc...

5136 sym R (19688 sym/95 pcs) 26 img

Assignment7

20.04.2024

library(ISLR) library(caret) ## Loading required package: ggplot2 ## Loading required package: lattice library(tree) library(rattle) ## Loading required package: tibble ## Loading required package: bitops ## Rattle: A free graphical interface for data science with R. ## Version 5.5.1 Copyright (c) 2006-2021 Togaware Pty Ltd. ## Type 'rattle()' to s...

4203 sym R (7135 sym/63 pcs) 8 img

Assignment7

20.04.2024

library(ISLR) library(caret) ## Loading required package: ggplot2 ## Loading required package: lattice library(tree) library(rattle) ## Loading required package: tibble ## Loading required package: bitops ## Rattle: A free graphical interface for data science with R. ## Version 5.5.1 Copyright (c) 2006-2021 Togaware Pty Ltd. ## Type 'rattle()' to s...

4203 sym R (7135 sym/63 pcs) 8 img

Document

23.03.2024

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: 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 increa...

3565 sym R (4946 sym/31 pcs)

Assignment 4

09.03.2024

Question 3 Explain how k-fold cross-validation is implemented. The set of observations is divided into k groups, or folds, of roughly equal size, at random in k-fold cross validation. The statistical learning approach is applied/fitted on the remaining k − 1 folds, with the initial fold serving as a validation set. Next, the observations in the h...

8923 sym R (7023 sym/52 pcs)

Exercise3

26.02.2024

##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 the Weekly d...

9996 sym R (23408 sym/133 pcs) 11 img 1 tbl

Assignment 2

22.02.2024

library(ISLR) library(tidyverse) ## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ── ## ✔ dplyr 1.1.3 ✔ readr 2.1.4 ## ✔ forcats 1.0.0 ✔ stringr 1.5.0 ## ✔ ggplot2 3.4.3 ✔ tibble 3.2.1 ## ✔ lubridate 1.9.2 ✔ tidyr...

8924 sym R (8732 sym/40 pcs) 3 img