Publications by oscar cancino
assignment 5
For parts (a) through (c), indicate which of i. through iv. is correct. Justify your answer. 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 increase in variance is less than its decrease in bias...
6538 sym R (14192 sym/78 pcs) 10 img
assignment 4
3.We now review k-fold cross-validation. Explain how k-fold cross-validation is implemented. the K-fold cross-validation is done by putting sets of of observations and splitting them in a random manner into k non-overlapping data sets. each data set acts as a validatior of the other data set the rest are known as training sets. What are the ad...
5483 sym R (9956 sym/56 pcs)
assignment 3
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. Produce some numerical and graphical summaries of the Weekly dat...
5814 sym R (18460 sym/97 pcs) 8 img
assigment 8
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, such that t...
4956 sym R (10948 sym/52 pcs) 12 img
final assignment
library(readr) ## Warning: package 'readr' was built under R version 4.1.3 library(ISLR) library(MASS) library(class) library(dplyr) ## Warning: package 'dplyr' was built under R version 4.1.3 ## ## Attaching package: 'dplyr' ## The following object is masked from 'package:MASS': ## ## select ## The following objects are masked from '...
3889 sym R (16896 sym/89 pcs) 3 img
assigment 6
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...
1775 sym R (6740 sym/21 pcs) 5 img
assignment 7
title: “assigment 7” author: “oscar cancino” date: “4/22/2022” output: html_document 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, a...
4073 sym R (5353 sym/42 pcs) 8 img