Question

In: Computer Science

Provide two classification scenarios where you can use classification tree models but not logistic regression models....

Provide two classification scenarios where you can use classification tree models but not logistic regression models. For each problem, identify a target variable and four possible predictor variables.

Solutions

Expert Solution

Both classification tree model and  regression models are able to handle continuous and categorical data just fine. It is actually difficult to predict which technique will be better. It really depends on the specific problem and the data we are having.

Logistic regression model is actually searching for a single linear decision boundary in your feature space, whereas a decision tree model is essentially partitioning your feature space into half-spaces decision boundaries. The net effect is that you have a non-linear more than one decision boundary.

Lastly, another thing to consider is that decision tree model can automatically take into account interactions between variables. With logistic regression, you'll have to manually add those interactions by  yourself.

It is  always a good idea to just try both models and do cross-validation. This will help you find out which one is more likely and suitable.

Example1: In sample of 30 students with three variables Gender (Boy/ Girl), Class (IX/ X) and Height (5 to 6 ft). 15 out of 30 play cricket in free time. Now, if we want to create a model to predict which students will be playing cricket during leisure period? In this problem, we need to segregate students who play cricket in their leisure time based on input variable among all three.

This is where decision tree model helps. It will segregate the students based on all values of three variable and identify the variable, which creates the best homogeneous sets of students.In this the target variable can be "Student will play cricket or not” either  YES or NO. All the variable that will be used to predict the target variable is a predictor variable.

Example 2: Simple decision tree for buying a car, The predictor variables could include milage, colour , space etc and the target variable will be whether to bur a car or not.

In simple terms we can conclude that predictor variable is a variable whose values will be used to predict the value of the target variable.


Related Solutions

What is the main purpose of logistic regression? Do you know other regression that can provide...
What is the main purpose of logistic regression? Do you know other regression that can provide similar estimates?
Please describe Logistic Regression classification methods and its usage?
Please describe Logistic Regression classification methods and its usage?
Predictive modeling and classification are two major areas of study in analytics. Besides logistic regression, CART,...
Predictive modeling and classification are two major areas of study in analytics. Besides logistic regression, CART, and k-NN find at least one different predictive modeling approach and one classification approach. Using scholarly citations, describe how each method is used in practice.
Predictive modeling and classification are two major areas of study in analytics. Besides logistic regression, CART,...
Predictive modeling and classification are two major areas of study in analytics. Besides logistic regression, CART, and k-NN find at least one different predictive modeling approach and one classification approach.
Use maximum likelihood to find the parameters in logistic regression, where the domain is x and...
Use maximum likelihood to find the parameters in logistic regression, where the domain is x and the sigmoid is used for the ’activation’.
Regression Trees​ Explain how classification trees works. Given a classification tree, state the classification rule for...
Regression Trees​ Explain how classification trees works. Given a classification tree, state the classification rule for a particular leaf. List the two measures of impurities that were covered in class. Why do we prune trees? What are the advantages of single classification trees? The weaknesses?
What is binary logistic regression, and how to use it?
What is binary logistic regression, and how to use it?
What is binary logistic regression, and how to use it?
What is binary logistic regression, and how to use it?
Stochastic Gradient Ascent (SGA) for Logistic Regression. In the exer- cise, you will implement logistic regression...
Stochastic Gradient Ascent (SGA) for Logistic Regression. In the exer- cise, you will implement logistic regression algorithm using SGA, similar to the logistic regression algorithm that you have seen in class. You will work with the datasets attached to the assignment and complete the lo- gisticRegression.py file to learn the coefficients and predict binary class labels. The data comes from breast cancer diagnosis where each sample (30 features) is labeled by a diagnose: either M (malignant) or B (be- nign)...
Stochastic Gradient Ascent (SGA) for Logistic Regression. In the exer- cise, you will implement logistic regression...
Stochastic Gradient Ascent (SGA) for Logistic Regression. In the exer- cise, you will implement logistic regression algorithm using SGA, similar to the logistic regression algorithm that you have seen in class. You will work with the datasets attached to the assignment and complete the lo- gisticRegression.py file to learn the coefficients and predict binary class labels. The data comes from breast cancer diagnosis where each sample (30 features) is labeled by a diagnose: either M (malignant) or B (be- nign)...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT