In the previous chapter, we discussed explanatory analysis and regression analysis. We are going to continue with that theme and introduce another machine learning algorithm that we can use to draw insights on customer behavior from data. In this chapter, we will be discussing a machine learning algorithm called decision trees: how they learn from the data and how we can interpret their results.
Decision trees
Logistic regression versus decision trees
If you recall from the previous chapter, a logistic regression model learns from the data by finding the linear combination of the feature variables that best estimates the log odds of an event occurring. Decision trees, as the name suggests, learn from the data by growing a...