Calculate the accuracy of decision tree model

Assignment Help Basic Computer Science
Reference no: EM133270127

Task 1

Please import the "admit.csv" into Rstudio. In this dataset, we know the GRE score, the GPA, and the rank of 400 applicants for a graduate program. We also know if each of the candidates is admitted. In the admit column, 1 stands for "admitted", and 0 stands for "rejected". Please answer the following questions and include the codes.

1. import the dataset and call it "mydata". Then check the structure of the data

2. convert the data type of the admit and the rank column from int to factors

3. randomly select 80% of the dataset as training set and the rest as the testing set

4. train a decision tree model, using admit as the category, and gre, gpa, and rank as predictors. Then plot the tree

5. Please answer the question: if a candidate has a GPA of 3.7, and rank of 4, does this candidate have a higher chance to be admitted or to be rejected? Please note that when you only have two categories, the darker proportion stands for the proportion for 1 in the end node of the tree plot

6. Please calculate the accuracy of your decision tree model

Reference no: EM133270127

Questions Cloud

Characters represents spiritual alienation : Focus on one moment in the text where a conversation between two characters represents spiritual alienation.
Integer value representing the value of m : An integer value representing the value of M where M
Art analysis of the parisian life by juan luna : State and Analyze what are the elements of the painting itself, such as the lines, color, contrast, symbols and such.
Implementation perspective on bags and lists : Complete the following without using the toArray method. Write code that is as efficient as possible. a. Write a getFrequencyOf method for AList or List.
Calculate the accuracy of decision tree model : Please import the "admit.csv" into Rstudio. In this dataset, we know the GRE score, the GPA, and the rank of 400 applicants for a graduate program.
Get whole and genuine meanness : Why then to get the whole and genuine meanness of it, and publish its meanness to the world;
Construct a testing data set of 200 instances : Given a data set of 1000 instances, we want to pick a training data subset of 800 instances and a testing subset of 200 instances to train/test a Machine Learni
What is the maximum earnings : Model the following problem as a single LP and solve the LP. You do not need to show your workings. The Canteen sells chicken rice and bee hoon. One portion of
Difference between time and space complexity : Analyze the difference between Time and Space Complexity. In terms of Trade Off involved in a problem using lists data structure implemented with Static and dyn

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Performance problems with availability problems

Compare and contrast performance problems with availability problems.

  What is firewall evaluation criteria for your organization

What is the firewall evaluation criteria for your organization? Does your organization have one and in your opinion does it addresses overall network security.

  What is the net domestic product

If interest income is $1.1 trillion, depreciation is $0.5 trillion, wages are $12.8 trillion and rental income is $0.9 trillion.

  Can hdm and gypsy be used interchangeably

Contrast the goals of the Gypsy Verification Environment with those of HDM. In particular, when is using HDM appropriate, and when is using Gypsy appropriate? Can HDM and Gypsy be used interchangeably?

  Broad category of electronic and human activities

Explain that this threat represents a well-known and broad category of electronic and human activities that breach the confidentiality of information.

  Have learning experiences during externship been beneficial

Have learning experiences during your externship been beneficial to your academic progress? Discuss specific experiences that you have applied to your academic

  Proponents of government-subsidized managed care

The proponents of government-subsidized managed care in the U.S. want a plan that would be a single-payer universal health system

  What was economic value added for the year

The most recent year's income statement showed Earnings Before Interest and Taxes (EBIT, or Operating Income) of $21,600,000, and the company paid income tax

  Theories of dividend relevance and irrelevance

Discuss in detail the reasons why Apple may have not paid dividends over the past 17 years, and the reasons why it has now decided to do so

  Phases important in software and system integration process

Briefly describe how the following given phases important in the software and system integration process?

  Resistance to change is normal everyday

Resistance to change is a normal everyday aspect in the workplace.

  Privacy and Internet

Discuss why privacy is important, and provide one situation where privacy may be expected, but where there is a legitimate reason for a lack of privacy.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd