Decision tree

From WikiMD's Wellness Encyclopedia

Decision tree is a type of graphical model used in statistics, data mining, and machine learning. It uses a tree-like model of decisions and their possible consequences, including chance event outcomes, resource costs, and utility. It is one way to display an algorithm that only contains conditional control statements.

Overview[edit | edit source]

A decision tree is a flowchart-like structure in which each internal node represents a "test" on an attribute (e.g. whether a coin flip comes up heads or tails), each branch represents the outcome of the test, and each leaf node represents a class label (decision taken after computing all attributes). The paths from root to leaf represent classification rules.

Types of Decision Trees[edit | edit source]

There are two main types of decision trees: classification tree and regression tree.

  • Classification tree analysis is when the predicted outcome is the class (discrete) to which the data belongs.
  • Regression tree analysis is when the predicted outcome can be considered a real number (e.g. the price of a house, or a patient's length of stay in a hospital).

Advantages and Disadvantages[edit | edit source]

Advantages[edit | edit source]

  • Decision trees are simple to understand and interpret.
  • Requires little data preparation.
  • Able to handle both numerical and categorical data.

Disadvantages[edit | edit source]

  • Decision-tree learners can create over-complex trees that do not generalize the data well.
  • Decision trees can be unstable because small variations in the data might result in a completely different tree being generated.

See Also[edit | edit source]

Decision tree Resources
Wikipedia
WikiMD
Navigation: Wellness - Encyclopedia - Health topics - Disease Index‏‎ - Drugs - World Directory - Gray's Anatomy - Keto diet - Recipes

Search WikiMD

Ad.Tired of being Overweight? Try W8MD's physician weight loss program.
Semaglutide (Ozempic / Wegovy and Tirzepatide (Mounjaro / Zepbound) available.
Advertise on WikiMD

WikiMD's Wellness Encyclopedia

Let Food Be Thy Medicine
Medicine Thy Food - Hippocrates

WikiMD is not a substitute for professional medical advice. See full disclaimer.
Credits:Most images are courtesy of Wikimedia commons, and templates Wikipedia, licensed under CC BY SA or similar.

Contributors: Prab R. Tumpati, MD