src/data/question-groups/data-science/content/decision-trees.md
A decision tree is a machine learning algorithm used for classification and regression tasks. It makes decisions by following a tree-like structure where internal nodes represent attribute tests, branches represent attribute values, and leaf nodes represent predictions.
Decision trees are versatile and are used for many machine learning tasks.
Example: Loan approval decision tree
Common pitfall: Trees tend to overfit the data if you allow it to go too deep and include too many branches.