Even though ensembles of trees (random forests and the like) generally have better predictive power and robustness, fitting a single decision tree to data can often be very useful for:
- understanding the important variables in a data set
- exploring unusual subsegments of the data (and the explanatory variables that define them)
- presenting a simple, decision-based model to management to explain behaviors in data
- illustrating a model graphically
But to get the best out of a decision tree, you need to be able to look at it, interact with it, and able to present it attractively. This blog post by Longhow Lam demonstrates the interactive tree viewer in Microsoft R, which lets you explore the individual nodes and breakpoints in the fitted tree, which can be embedded on a web page or printed in a report. Click on the screenshot below (from an analysis of the Titanic survivor data set) to try it out.
You can create interactive trees like this in Microsoft R Client (available free) or Microsoft R Server using the createTreeView function.
For more on the uses and benefits of single trees, check out Longhow Lam's blog post linked below.
Longhow Lam's Blog: Don’t give up on single trees yet…. An interactive tree with Microsoft R
Comments
You can follow this conversation by subscribing to the comment feed for this post.