Linear Regression Example Data. Published on february 19 2020 by rebecca bevans. The dependent variable is income while the independent variable is years of education.
In this case our outcome of interest is sales it is what we want to predict. Linear regression models use a straight line while logistic and nonlinear regression models use a curved line. The red line in the above diagram is termed as best fit line and can be found by training the model such as y mx c.
Revised on october 26 2020.
Simple linear regression allows us to study the correlation between only two variables. The other variable y is known as dependent variable or outcome. In statistics ordinary least squares ols is a type of linear least squares method for estimating the unknown parameters in a linear regression model. Regression models describe the relationship between variables by fitting a line to the observed data.