LearningActivitySheetQ4Wk8 1
LearningActivitySheetQ4Wk8 1
LearningActivitySheetQ4Wk8 1
A scatter plot displays a group of data points that may appear to be following a straight line pointing either upward to the
right or to the left. The straight line that best illustrates the trend or direction that the data points seem to follow is called
best-fit line or line of best fit.
There is a better way on how to find the equation of the line of best fit. This equation is called the equation of the regression
line or simply regression equation.
The equation of the regression line is ŷ = a + bx
where: a = y- intercept ; b = slope
Problem 1. Shown below are the ages (x) and the systolic blood pressure numbers (y) of 9 male patients in a certain
hospital. Find the regression equation.
Solution to Problem 1.
Solving for the y-intercept a
(𝞢𝒚)(𝞢𝒙𝟐) − (𝞢𝒙)(𝞢𝒙𝒚)
a = The y- axis represents the reading of the systolic blood
𝒏(𝞢𝒙𝟐 )− (𝞢𝒙)𝟐
pressure (dependent variable) and the x- axis is the list of
=
(1212)(15439)−(361)(49344) ages (independent variable).
9(15439)− (36)2
18712068 −17813184 The computed y- intercept a is where the line hits the y-axis.
= 138951 −130321
At age 0, the systolic blood pressure reading is 104.158. This
a = 104.158
is the expected mean value of y when all x = 0.
Solving for the slope b, The slope b is the heart and soul of the equation because it
n(𝞢𝒙𝒚) − (𝞢𝒙)(𝞢𝒚)
b= 𝒏(𝞢𝒙𝟐 )− (𝞢𝒙)𝟐 tells you how much you can expect Y to change as X
=
𝟗(𝟒𝟗𝟑𝟒𝟒)−(𝟑𝟔𝟏)(𝟏𝟐𝟏𝟐) increases. In general, the units for slope are the units of the
𝟗(𝟏𝟓𝟒𝟑𝟗)−(𝟑𝟔𝟏)𝟐
𝟒𝟒𝟒𝟎𝟗𝟔 −𝟒𝟑𝟕𝟓𝟑𝟐
Y variable per units of the X variable. The value of the slope
= 𝟏𝟑𝟖𝟗𝟓𝟏 −𝟏𝟑𝟎𝟑𝟐𝟏 0.761 indicates that for every age, the systolic blood
pressure reading increases, on average, by 0.761.
b = 0.761
Problem 2. The grade of 7 students in the first and second grading periods are shown below.
a. Find the equation of the regression line.
b. Estimate the grade in the second grading period of a student who received a grade of 88 in the first grading.
(𝞢𝑦)(𝞢𝑥 2) − (𝞢𝑥)(𝞢𝑥𝑦)
a = 𝑛(𝞢𝑥 2)− (𝞢𝑥)2
The slope of +0.5 indicates between two variables is
(563)(44890)−(560)(45085) positive. If the regression line is drawn on the scatter
=
7(44890)− (560)2 plot, it will pass through 40.429 on the y-axis and it will
25273070 −25247600
be pointing to the right.
= 314230 −313600
The equation of the regression line is ŷ = 40.429 + 0.5x
a = 40.429
n(𝞢𝒙𝒚) − (𝞢𝒙)(𝞢𝒚)
b= 𝒏(𝞢𝒙𝟐 )− (𝞢𝒙)𝟐
𝟕(𝟒𝟓𝟎𝟖𝟓)−(𝟓𝟔𝟎)(𝟓𝟔𝟑)
= 𝟕(𝟒𝟒𝟖𝟗𝟎)− (𝟓𝟔𝟎)𝟐
𝟑𝟏𝟓𝟓𝟗𝟓 −𝟑𝟏𝟓𝟐𝟖𝟎
= 𝟑𝟏𝟒𝟐𝟑𝟎 −𝟑𝟏𝟑𝟔𝟎𝟎
b = 0.5
Estimating the grade of a student in second grading whose grade is 88 in the first grading.
ŷ = 40.429 + 0.5x
= 40.429 + 0.5 (88)
= 84.43
A student whose grade is 88 in the first grading can expect a grade of 84.43 in the second grading.
B. Complete Me!
Luz is selling tomatoes in Sampaloc market. She decided to change the price of her tomatoes every day for seven
days to see whether the change in the price of tomatoes would affect sales. Her collected data are shown in the following
table.
x y xy x2
45 30 1350 2025
50 25 1250 2500
55 25 1375 3025
40 40 1600 1600
52 26 1352 2704
48 35 1680 2304
60 15 900 3600
2
∑x= 350 ∑y= 196 ∑ xy=9507 ∑ x = 17758
(196)(17758)−(350)(9507)
=
7(17758)−(350)2
= ?
a= ?
n(𝞢𝒙𝒚) − (𝞢𝒙)(𝞢𝒚)
b= 𝒏(𝞢𝒙𝟐 )− (𝞢𝒙)𝟐
𝟕(𝟗𝟓𝟎𝟕)−(𝟑𝟓𝟎)(𝟏𝟗𝟔)
= 𝟕(𝟏𝟕𝟕𝟓𝟖)− (𝟑𝟓𝟎)𝟐
= ?
b = ?