Regression Tutorial
Regression Tutorial
Dr. G. Bhardwaja Kumar / Prof. Tulasi Prasad Sariki, SCSE, VIT University, Chennai.
Regression Guide Hands on Datamining & Machine Learning with Weka
Regression output
sellingPrice=(-26.6882*houseSize)+(7.0551*lotSize)+(43166.0767*bedrooms)+
(42292.0901*bathroom)-21661.1208
sellingPrice = 222,921
Dr. G. Bhardwaja Kumar / Prof. Tulasi Prasad Sariki, SCSE, VIT University, Chennai.
Regression Guide Hands on Datamining & Machine Learning with Weka
Step4: Interpret the patterns and conclusions that our model tells us
• Granite doesn't matter :It will throw out and ignore columns that don't help in creating a
good model. So this regression model is telling us that granite in your kitchen doesn't affect
the house's value.
• Bathrooms do matter: Since we use a simple 0 or 1 value for an upgraded bathroom, we
can use the coefficient from the regression model to determine the value of an upgraded
bathroom on the house value. The model tells us it adds $42,292 to the house value.
• Bigger houses reduce the value: Model is telling us that the bigger our house is, the lower
the selling price? This can be seen by the negative coefficient in front of the houseSize
variable. The model is telling us that every additional square foot of the house reduces its
Dr. G. Bhardwaja Kumar / Prof. Tulasi Prasad Sariki, SCSE, VIT University, Chennai.
Regression Guide Hands on Datamining & Machine Learning with Weka
price by $26? That doesn't make any sense at all. How should we interpret this? The house
size, unfortunately, isn't an independent variable because it's related to the bedrooms
variable, which makes sense, since bigger houses tend to have more bedrooms. So our
model isn't perfect. But we can fix this. On the Preprocess tab, you can remove columns
from the data set. Remove the houseSize column and create another model. How does it
affect the price of my house? How does this new model make more sense? (My amended
house value: $215,554).
Dr. G. Bhardwaja Kumar / Prof. Tulasi Prasad Sariki, SCSE, VIT University, Chennai.