Publications by Partha Sai

Assignment # 8

26.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...

5133 sym R (23198 sym/92 pcs) 26 img

Assignment # 7

20.04.2024

library(ISLR) ## Warning: package 'ISLR' was built under R version 4.3.2 library(caret) ## Warning: package 'caret' was built under R version 4.3.2 ## Loading required package: ggplot2 ## Warning: package 'ggplot2' was built under R version 4.3.2 ## Loading required package: lattice library(tree) ## Warning: package 'tree' was built under R version...

5491 sym R (12126 sym/95 pcs) 10 img

Assignment # 5

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 inc...

4604 sym R (6382 sym/34 pcs)

Assignment # 4

09.03.2024

3. We now review k-fold cross-validation (a) Explain how k-fold cross-validation is implemented. Answer: An alternate process to LOOCV is k-fold cross-validation. This process involves randomly selecting and dividing observations into k groups or k folds of equal size approximately. The first fold is treated as a validation set and the method i...

12135 sym R (13617 sym/114 pcs)

Assignment # 3

26.02.2024

R Markdown This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com. When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within...

11937 sym R (23844 sym/137 pcs) 10 img

Assignment # 2

21.02.2024

R Markdown This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com. When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within...

9275 sym R (9113 sym/43 pcs) 3 img

Assignment # 2

20.02.2024

R Markdown This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com. When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within...

691 sym 1 img