<aside> 💡
A decision tree is a flowchart-like diagram that shows all possible outcomes of a series of decisions.
</aside>
We can think of a Decision Tree as a model that uses a tree-like structure to make decisions or predictions. It’s a supervised learning algorithm that can be used for Classification and Regression.
If you have studied Discrete Mathematics at some point you might have come across Decision Trees before.
It would look something like this
These are designed to predict categorical outcomes i.e predict labels/classes. This is based on the various features of the input eg: email spam detection
These are used when the target variable is continuous i.e we need to predict numerical values rather than categories eg: house price detection based on factors such as size, location, and other features.