A team of researchers collects and publishes detailed information about factors that affect heart disease. Variables include age, sex, cholesterol levels, maximum heart rate, and more. This example is based on a public data set that gives detailed information about heart disease. The original data are from archive.ics.uci.edu.
In the example of tree creation, the researchers created a classification tree that identifies important predictors to indicate whether a patient has heart disease. The researchers want to make predictions with this tree.
| Age | 35 | 35 | |
| Rest Blood Pressure | 140 | 140 | |
| Cholesterol | 233 | 233 | |
| Max Heart Rate | 150 | 165 | |
| Old Peak | 2.3 | 2.3 | |
| Sex | Male | Female | |
| Chest Pain Type | 2 | 1 | |
| Fasting Blood Sugar | True | True | |
| Rest ECG | 0 | 1 | |
| Exercise Angina | |||
| Slope | 1 | 3 | |
| Major Vessels | 0 | 2 | |
| Thal | Normal | Normal |