15.071 | Spring 2017 | Graduate

The Analytics Edge

4.2 Judge, Jury, and Classifier: An Introduction to Trees

4.2 Judge, Jury, and Classifier: An Introduction to Trees

Quick Question

 

Plot the tree that we created using cross-validation. How many splits does it have?

Exercise 1

 Numerical Response 

 

Explanation

If you follow the R commands from the previous video, you can plot the tree with prp(StevensTreeCV).

The tree with the best accuracy only has one split! When we were picking different minbucket parameters before, it seemed like this tree was probably not doing a good job of fitting the data. However, this tree with one split gives us the best out-of-sample accuracy. This reminds us that sometimes the simplest models are the best!

CheckShow Answer

 

Course Info

As Taught In
Spring 2017
Level
Learning Resource Types
Lecture Videos
Lecture Notes
Problem Sets with Solutions