Professional Documents
Culture Documents
Data Science Simpli-Ed Part 4: Simple Linear Regression Models
Data Science Simpli-Ed Part 4: Simple Linear Regression Models
Data Science Simpli-Ed Part 4: Simple Linear Regression Models
Pradeep Menon
Jul 30, 2017 · 9 min read
Model:
Parameters:
Concept
Linear regression models provide a simple
approach towards supervised learning. They
are simple yet eCective.
y = mx + c
Formulation
Let us go through an example to explain the
terms and workings of a Linear regression
model.
Model
Recall the earlier discussion, on how the data
needs to be split into training and testing set.
The training data is used to learn about the
data. The training data is used to create the
model. The testing data is used to evaluate the
model performance.
β0 is estimated as -6870.1
β1 is estimated as 156.9
Interpretation
Evaluation
The model is built. The robustness of the model
needs to be evaluated. How can we be sure that
the model will be able to predict the price
satisfactory? This evaluation is done in two
parts. First, test to establish the robustness of
the model. Second, test to evaluate the
accuracy of the model.
Conclusion
Voila!! Fernando has a good model now. It
performs satisfactorily on the training data.
However, there is 25% of data unexplained.
There is room for improvement. How about
adding more independent variable for
predicting the price? When more than one
independent variables are added for predicting
a dependent variable, a multivariate
regression model is created i.e. more than one
variable.
587 claps
WRITTEN BY
Pradeep Menon
Follow
Follow