The 365 Data Science team is proud to invite you to our own community forum. A very well built system to support your queries, questions and give the chance to show your knowledge and help others in their path of becoming Data Science specialists.
Anybody can ask a question
Anybody can answer
The best answers are voted up and moderated by our team

Regression on 1.04. Real-life example.csv

Regression on 1.04. Real-life example.csv


I wanted to perform regression on 1.04. Real-life example.csv file without removing the models column. So I created dummy for all variables after removing the empty values. Before regression I performed F Regression to find out which variables are useful. I found out that for 25% of dummy variables of model variable the P value was less than 0.05 indicating that these are significant for regression however for other 75% dummy variables of model P value was greater than 0.05. So does this indicate that Model field in not essential for regression ?

1 Answer

365 Team

Hi Adit,
If a dummy variable for Model is insignificant this does not mean that the dummy is useless.
Say that one such dummy is Audi A3. Let’s also assume you have dropped the dummy for Mercedes A-Class. Therefore, Mercedes A-class is the baseline category. All other dummies are compared to it.
If the dummy for Audi A3 is significant it means that it is distinctively different from a Mercedes A-Class when it comes to predicting an outcome using the model. 
If the dummy for Audi A3 is insignificant, it means that it has practically the same effect as the baseline dummy (Mercedes A-Class).
What this means for you model is that 25% of the dummies are practically the same as the baseline dummy in terms of effect on the outcome. The rest of the dummies, however, are different. Therefore, all dummies should stay in the model.
Note that if all dummies (no exceptions) are insignificant, this means that the whole variable is insignificant. 
If even one dummy is significant, all dummies should remain in the model.

Online Data Science Training
SAVE 60%