Implement Decision Tree in R.
Create this dataset (Copy this below piece of code and paste it in your R)
----------------------------------------------------------------------------
data <- [login to view URL](
InsuranceID = c(1,2,3,4,5,6,7,8,9,10),
Vehicle_Damage = c(TRUE, TRUE, TRUE, FALSE, FALSE, FALSE, FALSE, TRUE, TRUE, FALSE),
Self_Injury = c(TRUE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, FALSE, FALSE, TRUE),
Claimer_Frequency = factor(c("active", "very active", "very active", "inactive", "very inactive"
, "inactive", "very inactive", "active", "active", "very active"),
levels=c("very inactive", "inactive", "active", "very active"),
ordered=TRUE),
Fraud = c(FALSE, TRUE, TRUE, FALSE, FALSE, TRUE, TRUE, FALSE, FALSE, TRUE))
----------------------------------------------------------------------------------------
This data set is used by an Insurance Company to check whether the Claim is fraud or not.
Insurance ID: The Claim ID.
Vehicle Damage: Is the vehicle damage or not?
Self-Injury: Is the person injured or not?
Claimer Frequency: Frequency of the person claiming the Insurance.
Fraud: If this is fraud or not?
Q1. Implement Decision Trees (Hint: use Rpart)
Q2. Find whether the fraud is done or not for Insurance ID 2 and 7?
Q3. Show the Decision Trees by using visualization.
Hello,
I have a very sound knowledge of Decision Trees and R programming, in particular. I can get this work done within an hour and deliver to you.
Kindly acknowledge. Let's talk on chat and discuss it further.
$30 USD în 1 zi
5,0 (7 recenzii)
3,4
3,4
2 freelanceri plasează o ofertă medie de $40 USD pentru proiect
Greetings sir, i am an expert freelancer for this job and your 100% satisfaction is assured if you allow me to serve.
Here is the reason. Why you should pick me?
a) I am a very expert and have the same kind of experience of 5 years.
b) I work very hard (16+ hours a day and 7 days a week) and also very fast so... it will be done very soon than most of the other providers
c) And most important part is my policy:
"I will give you (to my client) life time support (as long as you keep relation with me). And fix any bugs/problem without any cost. So, don't ever worry about me”
Please sir, leave a reply ASAP, as I am waiting for your kind reply