Publications by Shams Tabrez

Algo II HW2

26.02.2021

str(Auto) ## 'data.frame': 392 obs. of 9 variables: ## $ mpg : num 18 15 18 16 17 15 14 14 14 15 ... ## $ cylinders : num 8 8 8 8 8 8 8 8 8 8 ... ## $ displacement: num 307 350 318 304 302 429 454 440 455 390 ... ## $ horsepower : num 130 165 150 150 140 198 220 215 225 190 ... ## $ weight : num 3504 3693 3436 3433 3...

5752 sym R (8348 sym/36 pcs) 4 img

Bank Marketing Case Study1

20.02.2021

Install packages and load libraries, Load bank additional csv, remove missing values, remove duration column, change variables as factor, recode pdays, assign train test split. summary(bank_train) ## age job marital education ## Min. :18.00 admin. :814 divorced: 360 basic.4y ...

1199 sym R (47954 sym/82 pcs) 19 img

Algo II HW1

10.02.2021

#install.packages("ISLR") library(ISLR) data("College") Question 8a,b college<- read.csv("college.csv", header = T) #fix(college) #rownames(college)<-college[,1] #college<-college[,-1] #fix(college) Question8c summary(college) ## X Private Apps Accept ## Length:777 Length:777 Min...

2185 sym R (8296 sym/34 pcs) 8 img

Dow Jones Case Study

15.04.2021

Read Dow Jones Data file into dataframe dow = read.table("dow_jones_index.data", sep = ",", header = TRUE) str(dow) ## 'data.frame': 750 obs. of 16 variables: ## $ quarter : int 1 1 1 1 1 1 1 1 1 1 ... ## $ stock : chr "AA" "AA" "AA" "AA" ... ## $ date : c...

1947 sym R (62622 sym/268 pcs) 67 img

Homework4

30.03.2021

Chapter 05 (page 197): 3, 5, 6, 9 Q3 A) K-fold divides the dataset into k number of folds. For example, if k=3 then the dataset will be divided into 3 samples. One of the samples will be held for testing purposes and the other samples will be used to train the model. After the model is trained the next sample is used for testing and the rest fo...

2086 sym R (8697 sym/37 pcs)

Algo II HW3

19.03.2021

Homework 3 Question 10A. week = Weekly summary(week) ## Year Lag1 Lag2 Lag3 ## Min. :1990 Min. :-18.1950 Min. :-18.1950 Min. :-18.1950 ## 1st Qu.:1995 1st Qu.: -1.1540 1st Qu.: -1.1540 1st Qu.: -1.1580 ## Median :2000 Median : 0.2410 Median : 0.2410 Median : ...

2339 sym R (46308 sym/102 pcs) 14 img

BookBinders Case Study using R

12.03.2021

Load Libraries Read train and test dataset bbbc_train = read_excel("BBBC-Train.xlsx")[2:12] bbbc_test = read_excel("BBBC-Test.xlsx")[2:12] Check structure of train dataset str(bbbc_train) ## tibble [1,600 × 11] (S3: tbl_df/tbl/data.frame) ## $ Choice : num [1:1600] 1 1 1 1 1 1 1 1 1 1 ... ## $ Gender : num [1:1600] 1 1 1 1 ...

2684 sym R (85915 sym/314 pcs) 13 img

Algo II Homework5

31.03.2021

Question 2, 9, 11, Q2) A) III is correct option. Increase lambda, variance is reduced significantly and bias is reduced marginally. MSE get reduced and accuracy also increases. When we compare ridge with Lasso we allow some coefficients to go to zero when lambda is large. And it also uses variables selection for better interpreting results. B)...

1280 sym R (7562 sym/50 pcs) 7 img

Dow Jones Case Study3

17.04.2021

Dow Jones Case Study - Predicting percentage change in stock on various predictors using linear model, decision tree and SVM(radial kernel) Load dow jones data and check first few rows data using head() dow_jones <- read.csv("dow_jones_index.data", header = TRUE) head(dow_jones) ## quarter stock date open high low close volume ...

1054 sym R (97322 sym/160 pcs) 7 img

FundRaising Prediction Donor or No Donor

10.05.2021

Business Objectives and Goals The main objective of this analysis is to reduce the overall cost of advertising and maximize profits from donors for the national veterans organization. Following are the goals to achieve: Find people who will be doners Lower the amount of gift/label sent Increase overall response rate Data Sources and Data Used F...

6853 sym R (28705 sym/100 pcs) 7 img