A decision tree is a diagram that outlines potential outcomes of related choices through branches and nodes. It has decision nodes, chance nodes, end nodes, and branches. An example decision tree examines options for an organization using legacy software: staying with it, buying new software, or building new software. It calculates the costs and probabilities of successful/unsuccessful deployments to determine the expected monetary value of each option. The analysis finds that buying new software has the lowest expected cost despite a high setup fee.