You should write your R code inside a new .ipynb file. For each problem below you should make a new markdown cell and clearly paste the problems below.
Instructions: You should write your R code inside a new .ipynb file. For each problem below you should make a new markdown cell and clearly paste the problems below. After you have pasted the problem into a new markup cell, you can then add a new R code cell and complete your programming to fulfill what the question asks you to. When the question asks you for some analysis you should add a new markup cell and write your response there.
1: (a) Select he following column vectors of interest: Age, Race1, Education, Poverty, BMI, Pulse, BPSysAve, PhysActive, Diabetes.
(b) Clear out any NA values using na.omit and detail the number of valid rows of data for each gender ‘male’ and ‘female’ by plotting the histogram of the gender column vector.
(c) Is this distribution even and if not, why do you think this is the case?
2: (a) Build a multiple-logistic regression classifier (using glm function) on the Diabetes vector with a 10% test split
(b) Build a random forest classifier (using randomForest library) with a 10% split. Which model has better accuracy?
3: (a) Now repeat part [2] but do it for each gender separately by partitioning on the gender column vector.
(b) Which is the better classifier now and are the separate gender accuracy measures the same or is one better (make sure to use the baseline distribution of each gender to support your finding)?
(c) Why do you think that is the case?
4: (a) now repeat part [3] but do it using the SVM methods (with the e1071 library).
(b) Were you able to improve upon any of the gender-specific models with SVM?
(c) Why do you think that is the case?
Collepals.com Plagiarism Free Papers
Are you looking for custom essay writing service or even dissertation writing services? Just request for our write my paper service, and we'll match you with the best essay writer in your subject! With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Get ZERO PLAGIARISM, HUMAN WRITTEN ESSAYS
Why Hire Collepals.com writers to do your paper?
Quality- We are experienced and have access to ample research materials.
We write plagiarism Free Content
Confidential- We never share or sell your personal information to third parties.
Support-Chat with us today! We are always waiting to answer all your questions.
