Loading...

Messages

Proposals

Stuck in your homework and missing deadline? Get urgent help in $10/Page with 24 hours deadline

Get Urgent Writing Help In Your Essays, Assignments, Homeworks, Dissertation, Thesis Or Coursework & Achieve A+ Grades.

Privacy Guaranteed - 100% Plagiarism Free Writing - Free Turnitin Report - Professional And Experienced Writers - 24/7 Online Support

An introduction to statistical learning exercise answers

25/04/2021 Client: muhammad11 Deadline: 2 Day

CS 5565, LAB1(Introduction) 30 pts. Questions are taken from the textbook ``Introduction to Statistical Learning'', James et.al.     View the video at the following URL and install R. https://www.youtube.com/watch?v=jwBgGS_4RQA You may download the R Code for Labs and the Data Sets to use from the textbook website. http://www-bcf.usc.edu/~gareth/ISL/ Submit all code, outputs and answer the following questions. (1) (10 points) This exercise relates to the College data set, which can be found in the file College.csv. It contains a number of variables for 777 different universities and colleges in the US. The variables are • Private : Public/private indicator • Apps : Number of applications received • Accept : Number of applicants accepted • Enroll : Number of new students enrolled • Top10perc : New students from top 10% of high school class • Top25perc : New students from top 25% of high school class • F.Undergrad : Number of full-time undergraduates • P.Undergrad : Number of part-time undergraduates • Outstate : Out-of-state tuition • Room.Board : Room and board costs • Books : Estimated book costs • Personal : Estimated personal spending • PhD : Percent of faculty with Ph.D.’s • Terminal : Percent of faculty with terminal degree • S.F.Ratio : Student/faculty ratio • perc.alumni : Percent of alumni who donate • Expend : Instructional expenditure per student • Grad.Rate : Graduation rate Before reading the data into R, it can be viewed in Excel or a text editor. (a) Use the read.csv() function to read the data into R. Call the loaded data college. Make sure that you have the directory set to the correct location for the data. (b) Look at the data using the fix() function. You should notice that the first column is just the name of each university. We don’t really want R to treat this as data. However, it may be handy to have these names for later. Try the following commands: > rownames (college )=college [,1] > fix (college ) You should see that there is now a row.names column with the name of each university recorded. This means that R has given each row a name corresponding to the appropriate university. R will not try to perform calculations on the row names. However, we still need to eliminate the first column in the data where the names are stored. Try > college =college [,-1] > fix (college ) Now you should see that the first data column is Private. Note that another column labeled row.names now appears before the Private column. However, this is not a data column but rather the name that R is giving to each row. (c) i. Use the summary() function to produce a numerical summary of the variables in the data set. ii. Use the pairs() function to produce a scatterplot matrix of the first ten columns or variables of the data. Recall that you can reference the first ten columns of a matrix A using A[,1:10]. iii. Use the plot() function to produce side-by-side boxplots of Outstate versus Private. iv. Create a new qualitative variable, called Elite, by binning the Top10perc variable. We are going to divide universities into two groups based on whether or not the proportion of students coming from the top 10% of their high school classes exceeds 50%. > Elite =rep ("No",nrow(college )) > Elite [college$Top10perc >50]=" Yes" > Elite =as.factor (Elite) > college =data.frame(college ,Elite) Use the summary() function to see how many elite universities there are. Now use the plot() function to produce side-by-side boxplots of Outstate versus Elite. v. Use the hist() function to produce some histograms with differing numbers of bins for a few of the quantitative variables. You may find the command par(mfrow=c(2,2)) useful: it will divide the print window into four regions so that four plots can be made simultaneously. Modifying the arguments to this function will divide the screen in other ways. vi. Continue exploring the data, and provide a brief summary of what you discover. (2) (10 points) This exercise involves the Auto data set studied in the lab. Make sure that the missing values have been removed from the data. (a) Which of the predictors are quantitative, and which are qualitative? (b) What is the range of each quantitative predictor? You can answer this using the range() function. range() (c) What is the mean and standard deviation of each quantitative predictor? (d) Now remove the 10th through 85th observations. What is the range, mean, and standard deviation of each predictor in the subset of the data that remains? (e) Using the full data set, investigate the predictors graphically, using scatterplots or other tools of your choice. Create some plots highlighting the relationships among the predictors. Comment on your findings. (f) Suppose that we wish to predict gas mileage (mpg) on the basis of the other variables. Do your plots suggest that any of the other variables might be useful in predicting mpg? Justify your answer. (3) (10 points) This exercise involves the Boston housing data set. (a) To begin, load in the Boston data set. The Boston data set is part of the MASS library in R. > library (MASS) Now the data set is contained in the object Boston. > Boston Read about the data set: > ?Boston How many rows are in this data set? How many columns? What do the rows and columns represent? (b) Make some pairwise scatterplots of the predictors (columns) in this data set,

Homework is Completed By:

Writer Writer Name Amount Client Comments & Rating
Instant Homework Helper

ONLINE

Instant Homework Helper

$36

She helped me in last minute in a very reasonable price. She is a lifesaver, I got A+ grade in my homework, I will surely hire her again for my next assignments, Thumbs Up!

Order & Get This Solution Within 3 Hours in $25/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 3 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 6 Hours in $20/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 6 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 12 Hours in $15/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 12 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

6 writers have sent their proposals to do this homework:

Professional Accountant
Pro Writer
Top Essay Tutor
Maths Master
Ideas & Innovations
Top Writing Guru
Writer Writer Name Offer Chat
Professional Accountant

ONLINE

Professional Accountant

I have read your project details. I can do this within your deadline.

$49 Chat With Writer
Pro Writer

ONLINE

Pro Writer

I will cover all the points which you have mentioned in your project details.

$22 Chat With Writer
Top Essay Tutor

ONLINE

Top Essay Tutor

Give me a chance, i will do this with my best efforts

$20 Chat With Writer
Maths Master

ONLINE

Maths Master

I have read your project details. I can do this within your deadline.

$39 Chat With Writer
Ideas & Innovations

ONLINE

Ideas & Innovations

Hello, I an ranked top 10 freelancers in academic and contents writing. I can write and updated your personal statement with great quality and free of plagiarism

$21 Chat With Writer
Top Writing Guru

ONLINE

Top Writing Guru

I have read your project details. I can do this within your deadline.

$44 Chat With Writer

Let our expert academic writers to help you in achieving a+ grades in your homework, assignment, quiz or exam.

Similar Homework Questions

26610 n longmeadow dr mundelein il 60060 - Wembley lumberjack stress relief ball - Analysis of energy sources lab report - Assignment-10 - Elodea cell under microscope - Guillermo bonfil mexico profundo pdf - Advantages and disadvantages of supercritical boiler - Alicia molik and nathan buckley relationship - Tnpap is not fair nursing - Educating psyche mini ielts answers - How to write a progress note - Portal utoronto ca blackboard - How to add 95 confidence intervals in excel graph - Debut emcee script introduction - Marius reflects the problems of the late republic in that he - Caltex super gt f 5w 30 - Analyze Your Customers - Blue ocean strategy tata nano - Marie antoinette letter to her mother 1773 - Brenda patton was admitted to labor and delivery - Volume and surface area of shapes - 250 words homework (within 24 hours): Processes, Facilities, and Work Systems - Www choosemyplate gov super tracker - Rslogix 5000 lite edition - How to create a project network diagram in excel - Work breakdown structure hospital management system - Ulster hospital visiting times - Predictive Methods - A tale of dark and grimm - Bird by bird anne lamott pdf - Monty python three headed knight - How junk food can end obesity thesis - The incredible edible egg worksheet answers - Debate ks2 lesson plan - 8 undine street maroubra - Rj45 stranded vs solid - Article 1 - To george sand a desire sparknotes - Supply Chain management - Coraline chapter 4 summary - Corporate leadership council australia - Order 2269683: International Business - Cisco acs tacacs+ configuration example - Dave barry how to argue effectively - Vrio framework analysis for samsung - Concentric hydraulics rockford il - Research Methods in Accounting and Finance - Why america is self segregating they say i say - Explain how Enterprise Risk Management (ERM) empowers organizations to both avoid loss and capitalize on opportunity - Housing executive bathroom schemes - A common size income statement for creek enterprises - Problems on college campuses essay - O3/3 - Roll a d6 lyrics - How did forrest gump get into school - Market segmentation target market selection and positioning pdf - 302 - Discussion board response - On her loving two equally - Agency theory in financial management ppt - Shimadzu lab solutions operator's guide - Cj industries and heavey pumps case study answers - Examples of disrespect in the classroom - Octahedral holes in hcp - Practical Reflection paper - Blockchain Development (BLCN-532) - IAH-207-733 (W7) - What do you mean by the term evolution - Discusstion 500 words - The history of dna worksheet answer key - Presbytery of middle tennessee - Access to doc 00 4c docs googleusercontent com was denied - Zone of proximal development social constructivism - Explain why goals should follow the aeiou theory - Concepts and theories in nursing - Kfc lowers the price of a bucket of fried chicken - Recording transactions in a financial transaction worksheet - Information System and Technology - List the strategic objectives of aggregate planning - Essay #2 - The cash conversion cycle of working capital management is - Gladys smith presley family tree - Law - A global organization with a multinational presence - Complete currency consulting ltd - High speed rail paris to milan - CJUS 420 DB FORUM 6 THREAD due 9/30/2020 - Hassan optics kuwait branches - Determining the band gap of germanium - Security Proposal - Team skills assessment template - Research Question 2 - Conflict Scenario - The danger of a single story pathos - What is the molar mass of acetaminophen c8h9no2 - Glencoe punnett square virtual lab - Chemical potential energy pictures - The haunted policeman - Dr kai nalder dentist - MIS DS 4. - Dr bushra rauf gynecologist peshawar clinic