Definition
Linear regression is a model that estimates the relationship (effect) between a scalar response and one or more independent variables.
In the case of just one independent variable (regressor) we call such a model Simple Linear Regression. If there are more than one regressor then we call the model Multiple Linear Regression. This term should not be confused with Multivariate Linear Regression
If the is not a scalar, rather a vector then we deal with General Linear Model
One might show a model in the following way:
where .
As far as I understood one can state the model as:
where can be a non-linear function of .
R
We use lm()
function in R to create a linear regression model.
results <- lm(Y~X) # returns parameter estimates (b0, b1, sigma)