Regression Ppt 1
Regression Ppt 1
ŷ= 3x-15 3 -15
2. ŷ= 20.5- 12x -12 20.5
How to calculate the slope and y-
intercept of a regression line?
Formulas:
Slope (b)
b=
y- intercept (a)
a=
Example: Consider the following
data:
a. Find the equation of the regression line.
b. Draw the graph of the regression equation on a scatter plot.
x 1 2 3 4 5 6 7
y 4 3 8 6 12 10 8
Example: Find the regression
equation using the following data.
x 5 10 20 8 15 25
y 40 26 18 30 20 15
A teacher believes that excellence is a fruit of hard work and
persistence. That’s why she wants to prove if the number of
students’ absences is related to their general average. On
her gathered data, the recorded number of absences and
general average in the recent semester are shown on the
table.
Number 1 2 3 5 7 9 10
of
absences
(x)
General 98 90 86 87 85 85 78
Average
(y)