Regression
What is a Regression
• In Regression, we plot a graph between the variables which best fit the given
data points. The machine learning model can deliver predictions regarding the
data. In naïve words, “Regression shows a line or curve that passes through
all the data points on a target-predictor graph in such a way that the
vertical distance between the data points and the regression line is
minimum.” It is used principally for prediction, forecasting, time series modeling,
and determining the causal-effect relationship between variables.
Types of Regression models
[Link] Regression
[Link] Linear Regression
Linear Regression
• Linear regression is a quiet and simple statistical regression method used for
predictive analysis and shows the relationship between the continuous variables.
Linear regression shows the linear relationship between the independent variable (X-
axis) and the dependent variable (Y-axis), consequently called linear regression. If
there is a single input variable (x), such linear regression is called simple linear
regression. And if there is more than one input variable, such linear regression is
called multiple linear regression. The linear regression model gives a sloped straight
line describing the relationship within the variables.
• The graph presents the linear relationship
between the dependent variable and
independent variables. When the value of x
(independent variable) increases, the value of
y (dependent variable) is likewise increasing.
The red line is referred to as the best fit straight
line. Based on the given data points, we try to
plot a line that models the points the best.
• To calculate best-fit line linear regression uses a traditional slope-
intercept form.
y= Dependent Variable.
x= Independent Variable.
a0= intercept of the line.
a1 = Linear regression coefficient.
Need of a Linear regression