true

Learn Data Science from the Best Tutors

• Affordable fees
• 1-1 or Group class
• Flexible Timings
• Verified Tutors

Search in

# Decision Tree or Linear Model For Solving A Business Problem

Ashish R.
22/12/2017 0 0

When do we use linear models and when do we use tree based classification models? This is common question often been asked in data science job interview. Here are some points to remember:

We can use any algorithm. It is purely depends on the type of business problem we are solving and who is end user of the model and how he is going to consume the model’s output. Let’s look at some key factors which will help you to decide which model to use:

1. If the relationship between dependent & independent variable is well approximated by a linear model, linear regression will outperform tree based model. No doubt in this aspect. If the realationship is not linear then tree model is better to choose as lot of complicated transformation might be required on the independent variables to make the relationship linear.
2. If there is a higher degree of non-linearity between dependent & independent variables, a tree model will perform better than Linear Regression Model. How do you check the linearity? Simply create the bivariate plot of dependent variable and independent variables and study the plots to determine what kind of relationship is between Y and the chosen X variable.
3. Decision tree models do not require too much data cleaning (missing value and outlier effect). Hence easy and fast to develop and easy to explain to our customers as well.
4. If your business problem demands the possible cause or path to reach to the target variable then tree is easy to explain whereas finding the nature of relationship of the predictor variables with the target variable Linear regression is a better choice.
5. Decision tree models are even easier to interpret from a layman point of view.
0 Dislike

## Other Lessons for You

Beware Of Trainers Of Data Science.
Most of the trainers in the market are teaching DATA SCIENCE as 1) Some software tools like R/Python/SAS/Hadoop etc 2)They are spending less amount of time on Mathematics and Statistics(Mostly 10 hrs...

13 Things Every Data Scientist Must Know Today
We have spent close to a decade in data science & analytics now. Over this period, We have learnt new ways of working on data sets and creating interesting stories. However, before we could succeed,...

What are Kalman filters? Why they are popular in AI?
Imagine we are making a self-driving car and we are trying to localize its position in an environment. The sensors of the vehicle can detect cars, pedestrians, and cyclists. Knowing the location of these...
T

Tasneem

Naive Bayes Classifiers
Hello everyone, I thought to post an article on Machine learning. There are supervised classifiers which are used to classify test data in some class. For example, seeing an image if you want to predict...

Abhi S

### Looking for Data Science Classes?

Learn from Best Tutors on UrbanPro.

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

### Looking for Data Science Classes?

The best tutors for Data Science Classes are on UrbanPro

• Select the best Tutor
• Book & Attend a Free Demo
• Pay and start Learning

### Learn Data Science with the Best Tutors

The best Tutors for Data Science Classes are on UrbanPro