Can linear regression apply to more than two variables?


#1

Question

In the context of this lesson, can linear regression apply to more than two variables?

Answer

Yes, in this lesson we only considered linear regression between one dependent variable and one independent variable. However, linear regression can also be applied between one dependent variable and two or more independent variables. This is known as multiple linear regression, which you can learn more about in later lessons in the “Machine Learning” course.

Similar to linear regression, multiple linear regression finds a relationship between the dependent variable and the independent variables.

For an example, linear regression between one dependent and one independent variable would apply in a situation to find the relationship between the market price of a house with the square footage. However, with multiple linear regression, we may find the relationship of the market price, number of rooms, and location with the square footage.