Decision Tree in Machine Learning

Updated on August 19, 2025 | By Learnzy Academy

A Decision Tree is a machine learning algorithm used for both classification and regression tasks. It works by dividing the data into smaller parts based on certain rules, forming a tree-like structure.

You can think of it as a flowchart for decision-making:

  1. It begins with a question at the top (called the root).
  2. Based on the answer (Yes/No or multiple options), it follows a branch.
  3. At each step, a new question is asked.
  4. Finally, it ends at a leaf node, which gives the outcome (for example, "Pass" or "Fail").
Click here to download practice questions on Decision Tree