Q. The following decision tree has been created to predict what someone can do.
ID: 3575641 • Letter: Q
Question
Q. The following decision tree has been created to predict what someone can do. Parents Visiting No Yes Weather Cin Sunny. Windy Rainy Stay in Play tennis Money Shopping Cinem a. Couvert this tree to ifthen rules (0.25 Mark) b. Using the following testing data: i. Predict the class of each record (0.25 Mark) clan Prediction Visiting Weather Money windy Poor No Windy Poor Play tennis No Windy Rich Calculate the accuracy of this model (0.25 Mark) ii Interpret the obtained result (0.25 Mark iv. How we can improve the perfommance of the obtained model? (0.25MarkExplanation / Answer
a)
IF and THEN Rules:
Rule1:
if Parents Visiting ==yes then Cinema
Rule2:
if Parents Visiting==No and Weather== Sunny then Play tennis
Rule3:
if Parents Visiting==No and Weather== Rainy then Stay in
Rule4:
if Parents Visiting==No and Weather== Windy and Money == Rich then Shopping.
Rule5:
if Parents Visiting==No and Weather== Windy and Money == Poor then Cinema.
B)
1)
Prediction for each class:
1.Cinema
2.Cinema
3.Cinema
4.Stay in
5.Cinema
6.Shopping
2)
Confusion matrix to find accuracy:
Accuracy = correct predicted / Total
=2/6
=0.33
3)
There are 4 possible predicted classes: "Cinema","Stay in","Shoping"and "Play tennis".
The classifier made a total of 6 predictions.
Out of those 6 cases, the classifier predicted correct for 2 values.
In reality,
people going cinema is 2 but classifier predicted 4.
Like that actual 'stay in ' is 2 but classifier predicts 1.
also, actaul play tennis is 1 but classifier predicts no one.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.