Lesson 40 Slope Intercept of The Regression Line by Steps
Lesson 40 Slope Intercept of The Regression Line by Steps
41 OF THE REGRESSION
LINE BY STEPS
OBJECTIVES
Identify the slope and y-intercept from the
1
equation of the regression line
I N T E R C E P T
Review:
A type of regression that finds the best-fit line
to represent a bivariate data set.
L
Review:
A type of regression that finds the best-fit line
to represent a bivariate data set.
L
Answer:
L I N E A R
Review:
The algebraic expression of a regression line.
E
Review:
The algebraic expression of a regression line.
Answer:
E Q U A T I O N
DO YOU REMEMBER?
Determine the y-intercept and slope of the line then graph it in a
Cartesian Plane.
slope
y-intercept
3
𝑚 = 𝑏 =2
4
DO YOU REMEMBER?
3
𝑚=
4
𝑏=2
REGRESSION LINE
Is the best-fitting straight line on a scatter plot of sample data.
Best-fit straight line is used to predict the value of y for a given
value of x.
REGRESSION EQUATION
^
𝑦 =𝑏𝑥 + 𝑎
where:
Linear Regression
• Linear regression is a type of best-fit line
regression that consist of finding
the best fitting line on a scatter
plot of a sample data.
• This best-fit line (also called
regression) is used to predict the
value of y for a given value of x.
2 5
−1 − 4
1
4 −1
−5 3
2
3 4
SOLVING a & b
1. Create a table with four columns
2. List the values for
3. Multiply and to get
4. Square to get
5. Get the sum of each column.
6. Substitute the solved values in the formula.
YEARS OF SERVICE
Jose made a list of his salary since he started working
length of 1 5 10 15 20 25
service (in
years)
2. -12 20.5
1
3. 87
4
How do we calculate the slope and y-intercept of a
regression line?
Formulas:
slope (b)
𝑛 ( Σ 𝑥𝑦 ) −( Σ 𝑥)( Σ 𝑦)
𝑏=
𝑛 ( Σ 𝑥 ) −¿ ¿
2
y-intercept
( Σ 𝑦 ) −𝑏 (Σ 𝑥 )
𝑎=
𝑛
Example: 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.
^
𝑦 =−1.47 𝑥 +94.77
The sign of the slope is used to determine the
trend or direction of relationship between the
dependent variable y and independent variable x.
Interpreting the Slope
Relationship Interpretation
A positive slope means positive When x-values increase, y-values
relationship between variables x also increase. When x-values
and y decrease, y-values also decrease.
A negative slope means negative When x-values decrease, y-
relationship between variables x values increase. When x-values
and y. (inverse relationship) increase, y-values decrease.
A zero slope means no There is no relationship between
relationship between variables x x and y-variables.
and y.
Example
Regression Slope Trend/ Interpretation
Equation Direction
y increases as x increases;
1. 7 Positive y decreases as x decreases
(Positive Relationship)
0 94.77
1 93.30
2 91.83
It’s Your Turn
The following data shows the number of absences and the
number of quizzes missed by five students. Find the equation
of the regression line and predict the number of quizzes
missed by a student who was absent for 6 days.
Student Number of Absences Number of Missed
(x) Quizzes (y)
1 1 1
2 1 2
3 2 4
4 3 2
5 4 4