SAIDS - Linear Least Squares
SAIDS - Linear Least Squares
Dependent Variable
Variable that depends on another variable (mostly independent variable) are known
as Dependent Variable. It is observed or measured.
variables.
analysis.
Types of Linear regression
• The greater the linear relationship between the independent variable and
project.
• Mean error
it is determined as follows:
Squared Method.
Loss Function
It is a calculation of loss for single
training data.
Cost Function
It is a calculation of average loss over
the entire dataset.
Regression cost function
Steps
• Our model will fit all possible
lines and find an overall
average error between the
actual and predicted values
for each line respectively.
• Selects the line which has the
lowest overall error. And that
will be the best fit line.
What is Correlation?
• Zero Correlation
This indicates that there is no relationship between two variables. It is also
known as a zero correlation. This is when a change in one variable doesn't
affect the other variable in any way.
What is Regression?
=474
1. Find the least square straight line for the following data.
X 1 2 3 4 5 6
Y 6 4 3 5 4 2
N=6, ∑x=21, ∑y=24 ∑X2=91, ∑y2=106
∑xy=75
Let the LSSL of Y on X is
y=a0 + a1x
Its normal Equation are
∑y= N a0+a1∑x
∑xy=a0∑x + a1∑x2
24=6 a0 + 21a1—-1
75=21a0+91a1—-2
a0=