
An easy way is to plot y against each explanatory variable x_j and visually inspect the scatter plot for signs of non-linearity.
#Different ways to show simple linear regression equation how to#
How to test the linearity assumption using Python the portion of y that X is unable to explain. Where y is the dependent variable vector, X is the matrix of explanatory variables which includes the intercept, β is the vector of regression coefficients and ϵ is the vector of error terms i.e. After all, if you have chosen to do Linear Regression, you are assuming that the underlying data exhibits linear relationships, specifically the following linear relationship:

Let’s look at the four assumptions in detail and how to test them.

It has a nice closed formed solution, which makes model training a super-fast non-iterative process.Ī Linear Regression model’s performance characteristics are well understood and backed by decades of rigorous research.

Linear Regression is the bicycle of regression models.
