Image for decision tree

decision tree

A decision tree is a tool used to make predictions or decisions based on data. It works like a flowchart, where each "question" or decision point splits the data into smaller groups based on specific criteria. For example, in predicting if someone will enjoy a movie, the tree might ask questions like "Is the person over 30?" or "Do they like action movies?" Each answer leads to another question or a final decision. This approach helps identify patterns and make consistent predictions by systematically narrowing options at each step.