Step 1: Calculate the first MAE
1. Calculate the Mean Absolute Error (MAE) for each feature:
- `Sex`: MAE = 0.264
- `BP`: MAE = 0.331
- `Age`: MAE = 0.44
- `Cholesterol`: MAE = 0.456
2. Select the feature with the lowest MAE: `Sex`.
Step 2: Split `Sex = Female`
Features to Consider: `Age`, `BP`, `Cholesterol`
1. Calculate the MAE for each feature:
- `Age`: MAE = 0.125
- `BP`: MAE = 0.33
- `Cholesterol`: MAE = 0.45
2. Best feature: `Age`.
Split by `Age`:
---
Step 3: Split `Age = Middle-age` (Sex = Female)
Features to Consider: `BP`, `Cholesterol`
1. Calculate the MAE for each feature:
- `BP`: MAE = 0.0 (Best split).
- `Cholesterol`: MAE = 0.5.
2. Best feature: `BP`.
---
Step 4: Split `Sex = Male`
Features to Consider: `Age`, `BP`, `Cholesterol`
1. Calculate the MAE for each feature:
- `BP`: MAE = 0.143
- `Age`: MAE = 0.44
- `Cholesterol`: MAE = 0.456
2. Best feature: `BP`.
Split by `BP`: