3.3 Regression Problem
3.3 Regression Problem
Course Outcomes:
CO1 (Apply-K3) Understand the intelligent agents and apply the various
search techniques to real-time problems
CO2 (Apply-K3) Use automated reasoning techniques to real world
problems
CO3(Apply-K3) Apply the concepts behind supervised learning and their
appropriateness
CO4(Apply-K3) Apply and build the unsupervised learning algorithms to
various real-time data.
CO5(Apply-K3) Apply the advanced learning techniques to various real
time data.
5 12/15/2024
1 2
2 4
3 5
4 4
5 5
8 12/15/2024
Find Ypred
12 12/15/2024
the blue points represent the actual y values, and the brown
points represent the predicted y values based on the model
we created.
The distances between the actual and predicted values are
known as residuals or errors.
The best-fit line should have the lowest sum of squares of
these errors, also known as “e square.”
13 12/15/2024
14 12/15/2024
Problems 2:
Consider the example below where the mass, y (grams), of a
chemical is related to the time, x (seconds), for which the chemical
reaction has been taking place according to the table:
Time, x
5 7 12 16 20
(seconds)
Mass, y
40 120 180 210 240
(grams)
solution
20 12/15/2024
Calculate b
24 12/15/2024
Calculate a
25 12/15/2024
Solutions:
We know that the equation of the least squares regression line is
28 12/15/2024