Linear regression

With linear regression, we model the relationship between the dependent variable, y, and an explanatory variable or independent variable, x. When there is one independent variable, it is called simple linear regression, and in the case of multiple independent variables, the regression is called multiple linear regression. The predictor function in the case of linear regression is a straight line (refer to figure 4 for an illustration). The regression line defines the relationship between x and y. When the value of y increases when x increases, there is a positive relationship between x and y. Similarly, when x and y are inversely proportional, there is a negative relationship between x and y. The line should be plotted on ...

Get Artificial Intelligence for Big Data now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.