A decision tree is like a flowchart used to make decisions based on available information. Imagine you’re trying to figure out if you should go for a walk. You start at the top of the tree with a question, like “Is there a walking path near by?” If the answer is “yes”, you follow the branch and then ask another question, like “Is it sunny ?” If it’s sunny, you decide to go for a walk. If it’s not sunny, you might decide not to walk.
Each question in the tree helps you make a decision, and you keep asking questions and following branches until you reach a final decision or outcome.
In this activity we will we will learn Bayes to performing sorting of a witch/wizard onto a Hogwarts house.