Publications by Eduardo Ramirez
Assignment 6 - Eduardo Ramirez
#Chapter 8 Excercises ##3 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...
1564 sym R (3073 sym/23 pcs) 4 img
Homework ch.7
library(ISLR) attach(Wage) library(boot) #anova fit.1 = lm(wage~poly(age, 1), data=Wage) fit.2 = lm(wage~poly(age, 2), data=Wage) fit.3 = lm(wage~poly(age, 3), data=Wage) fit.4 = lm(wage~poly(age, 4), data=Wage) fit.5 = lm(wage~poly(age, 5), data=Wage) fit.6 = lm(wage~poly(age, 6), data=Wage) fit.7 = lm(wage~poly(age, 7), data=Wage) fi...
409 sym R (6248 sym/23 pcs) 5 img
Assignment 3
Problem 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 the ...
3609 sym R (106997 sym/65 pcs) 2 img
Assignment2 DataMining
Problem 2 Carefully explain the differences between the KNN classifier and KNN regression methods KNN regression predicts the quatntitave value for f(X) while KNN classifier is the classification output for y. Problem 9 This question involves the use of multiple linear regression on the Auto data set. (a) Produce a scatterplot matrix which inclu...
5035 sym R (13139 sym/40 pcs) 3 img
Assignment4
Problem 3 || We now review k-fold cross-validation. (a) Explain how k-fold cross-validation is implemented “the k-fold CV approach”involves randomly dividing the set of observations into k groups, or folds, of approximately equal size. The first fold is treated as a validation set, and the method is fit on the remaining k-1 folds. The mean sq...
5194 sym R (6614 sym/38 pcs)
R_FINAL_Eduardo_Ramirez
Introducion I had found a cool website that generates random data for free with no signups and thought it would be perfect for this kinda project. Data Preparation library(sp) ## Warning: package 'sp' was built under R version 3.6.3 library(leaflet) ## Warning: package 'leaflet' was built under R version 3.6.3 data <- read.csv("C:/Users/user/Dow...
509 sym R (2471 sym/9 pcs)
Homework 7-Data Analytics
#Chapter 9 Excercises ##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 = 5...
4519 sym R (10796 sym/53 pcs) 12 img
Coursea basic ggplot
Background for this activity Welcome to the sandbox! This activity is going to provide you with the opportunity to preview some of the cool things you can do in R that you will be learning in this course. You will learn more about working with packages and data and try out some important functions. In this activity, you are going to install and l...
8176 sym R (5409 sym/23 pcs) 3 img