Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Essay

Decision Tree Model Building using R (Iris dataset)

Rating
-
Sold
1
Pages
15
Grade
A+
Uploaded on
12-05-2021
Written in
2019/2020

This document is a step-by-step guide on creating a decision tree model using R to analyze the statistics of the iris flower dataset.

Institution
Course

Content preview

Coursework 1:
Statistical Analysis &
Modelling.
Decision Trees




Albert Savill 3505901

, Table of Contents
Table Of Figures.....................................................................................................................................2
1. Introduction.......................................................................................................................................3
2. Literature Review...............................................................................................................................3
3.1 Decision Trees..................................................................................................................................4
3.2 Information Gain and Entropy.....................................................................................................4
3.3 ID3 Algorithm...............................................................................................................................4
4. Implementation & Results.................................................................................................................5
5. Visualisation.......................................................................................................................................8
6. Conclusion.......................................................................................................................................11
7. References.......................................................................................................................................12
Appendix – Rest of Data Observations................................................................................................13

Table Of Figures
- Figure 1: Snippet of iris data sets.........................................................................................................5

- Figure 2: Next steps in finding samples...............................................................................................6

- Figure 3: Increasing number of samples.............................................................................................6

- Figure 4: Train and test set.................................................................................................................6

- Figure 5: Error......................................................................................................................................7

- Figure 6: Error solution and early decision tree model development..................................................7

- Figure 7: Prediction classification task.................................................................................................8

- Figure 8: Code used for visualisation..................................................................................................8

- Figure 9: plot(dtm)...............................................................................................................................9

- Figure 10: text(dtm).............................................................................................................................9

- Figure 11: rpart.plot(dtm).................................................................................................................10

- Figure 12: rpart.plot(dtm, type = 4, extra = 101)...............................................................................11

Written for

Institution
Study
Course

Document information

Uploaded on
May 12, 2021
Number of pages
15
Written in
2019/2020
Type
ESSAY
Professor(s)
Unknown
Grade
A+

Subjects

$15.02
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
savilla1110

Get to know the seller

Seller avatar
savilla1110 I hop
Follow You need to be logged in order to follow users or courses
Sold
1
Member since
4 year
Number of followers
1
Documents
0
Last sold
4 year ago

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Trending documents

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions