Decision Trees Example

Decision Trees Example

Problem Statement

We have collected data on several different models of cars with respect to several parameters. Create a decision tree model to predict car mileage. Use a conditional tree with a confidence level of 95%.

How to perform analysis

Step 1: Open Sigma Magic
  1. Click on the Sigma Magic button on the Excel toolbar.
  2. Click on the New button to create a new project.
Step 2: Add the analysis template
  1. Click on the Tool Wizard to add the analysis template.
  2. Click on Analytics and then Decision Trees.

Step 3: Specify analysis options
A new worksheet will be added to your workbook. Analysis Setup will be automatically openedin the setup tab specify the survey results.


Click on Data to specify the data required for this analysis. 


Click on the Train the software will let you pick the options for training the given model. Training is a step where we split the data into groups a train data set and a test data set.  



Click on the Tuning to identifying the best set of hyperparameters that gives the best fit for the given model.



Click the Verify tab to ensure all the inputs are okay and shown in a green checkmark.


Step 4: Generate analysis result
Click OK and then click Compute Outputs to get the final results.



 Interpretation of Results

  • The Conditional Inference Tree model has a Root Mean Squared Error (RMSE) of 3.45, indicating the average deviation of predictions from actual values.
  • The model was trained on 32 samples with 8 predictor variables (disp, drat, hp, qsec, vs, gear, etc.).
  • No preprocessing was applied to the data before training.
  • Bootstrapped resampling with 3 different sample sizes (32, 32, 32) was used to estimate model performance.
  • RMSE values were evaluated for different hyperparameter settings.
  • The optimal model was chosen based on the lowest RMSE, which was found at a mincriterion value of 0.93.
  • A Variable Importance Plot was included, showing which predictors significantly impacted the model.
  • Certain variables, such as hp and wt, played a major role in decision-making.
  • The model successfully analyzed the dataset and provided predictions.
  • The final Conditional Inference Tree consists of 3 terminal nodes, indicating a relatively simple structure.
  • The model can be further improved by refining hyperparameters or using additional preprocessing techniques.
    • Related Articles

    • Decision Tress Overview

      A decision tree is a graphical representation of possible outcomes, decisions, and their associated consequences. It is widely used in decision-making, machine learning, and business analytics to map out various options and determine the most optimal ...
    • Decision tree frequently asked questions

      What is a Decision Tree? A Decision Tree is a graphical tool used to visualize decision-making processes. It helps break down complex problems into a tree-like structure, making it easier to analyze outcomes and optimize decisions. What are the key ...
    • FMEA Example

      Problem Statement Create an FMEA analysis for implementation of SPC charts in a work area. Some example of potential failures are shown below. However, you will need to brainstorm with your team and fill in the missing information. Typical Failure ...
    • Word Cloud Example

      Problem Statement Do a word-search on Google on a topic (for example Six Sigma) and use Excel to count the frequency of the most commonly occurring words and then create a word cloud for this exercise. How to perform analysis Step 1: Open Sigma Magic ...
    • Bagging Models Example

      Problem Statement Develop a model to predict the gear of the car based on other predictor variables. How to perform analysis Step 1: Open Sigma Magic Click on the Sigma Magic button on the Excel toolbar. Click on the New button to create a new ...