Linear regression is used to predict the relationship between two variables or factors. One variable (independent variable) is used to predict the value for another variable (dependent variable).
Regression is a method of modeling a target value based on independent predictors.
Linear Regression is a supervised machine learning algorithm. It predicts the value within a continuous range of numbers.
Simple linear regression uses traditional slope-intercept form to produce the most accurate predictions. x
represents our input data and y
represents our prediction.
The motive of the linear regression algorithm is to find the best values for m
and c
in the equation y = mx + c
.
Multiple linear regression has one dependent variable and two or more independent variables.
There are a few assumptions we make when using linear regression:
Linear regression can be used for: