AIML ppt1
AIML ppt1
SUBMITTED TO SUBMITTED BY
Mrs.Suchitra Apoorva K Gowda
Asst.Professor 1JV21CS006
Dept of CSE 5th Sem CSE
CONTENTS
Linear Regression
Representing Linear Regression Model
Least Square Method
Linear Regression
• Linear Regression is a supervised machine learning algorithm.
• The simplest mathematical relationship between two variables x and y is a linear
relationship. In a cause and effect relationship, the independent variable is the cause, and the
dependent variable is the effect.
• Least squares linear regression is a method for predicting the value of a dependent variable
Y, based on the value of an independent variable X.
Representing Linear Regression Model
Linear regression model represents the linear relationship between a dependent variable and
independent variable(s) via a sloped straight line.
The sloped straight line representing the linear relationship that fits the given data best is
called as a regression line.
It is also called as best fit line.
The first order linear model
Y= b + b₁ X+€
Y = dependent variable
X = independent variable
b = Y-intercept
b₁ = slope of the line
e = error variable
2. The difference between the predicted and true values is called an error. The error is
also mutually independent with the same distributions such as normal distribution with
zero mean and constant variables.
βο = Y' - β₁x’
• .The regression line takes the form: = a + b*X, where a and b are both constants,
(pronounced y-hat) is the predicted value of Y and X is a specific value of the
independent variable.
It turns out that with any two variables X and Y, there is one equation that produces the
"best fit" linking X to Y.
We use the criterion is called the least squares criterion to measure best.
THANK YOU