Professional Documents
Culture Documents
STATISTICS AND
PROBABILITY
Quarter 4 – Module 3
Regression Analysis
Republic Act 8293, section 176 states that: “No copyright shall subsist in any
work of the Government of the Philippines. However, prior approval of the government
agency or office wherein the work is created shall be necessary for exploitation of such
work for profit. Such agency or office may, among other things, impose as a condition
the payment of royalties.
Borrowed materials included in this module are owned by their respective
copyright holders. Effort has been exerted to locate and seek permission to use these
materials from the respective copyright owners. The publisher and author do not
represent nor claim ownership over them.”
Development Team:
Chairperson: Dr. Arturo B. Bayocot, CESO III
Regional Director
Cover Page i
Copyright Page ii
Title Page iii
Table of Contents iv
Introduction v
Lesson 1: Calculation and Interpretation of the Slope &
y-intercept of the Regression Line 1
What you need to know 1
What I know 1
What’s In 2
What’s New (Equation of a Regression Line) 2
What is it 3
What’s more 5
What I have learned 5
What can I do 5
Assessment 6
Answer key 7
Lesson 2: Solving Problems Involving Regression Analysis 8
What you need to know 8
What I know 8
What’s In 9
What’s New (Activity) 9
What is it (Solution) 11
What’s more 11
What I have learned 12
What can I do 12
Assessment 13
Answer key 14
References 15
Writer’s Profile 16
Lesson 1 Calculation and Interpretation of the Slope and Y-
intercept of a Regression Line
What I Know
Direction: Read the following questions carefully and choose the letter of your answer.
You may use a separate sheet of paper.
3. Which of the following scenarios could give you a meaningful regression analysis?
a. There is no linear relationship between the variables
b. The value of 𝑟 is not significant
c. There is a strong negative linear relationship between the variables
d. Correlation will be done after the regression analysis
4. In a regression line, how do you call the magnitude of the change in one variable
when the other variable changes at a unit?
a. Unit change c. marginal change
b. Variable change d. regression change
1
5. If the equation of the regression line is 𝑦 ′ = 5 + .123𝑥, how can it be interpreted?
a. Every unit of change in the value of 𝑥, the value of 𝑦 also changes at 5 units
on average
b. Every unit of change in the value of 𝑦, the value of 𝑥 also changes at 5 units
on average
c. Every unit of change in the value of 𝑥, the value of 𝑦 also changes at .123 unit
on average
d. The slope of the line is .123
What’s In
In the previous lessons, you learned that when we study variable relationships, we
first need to collect our data and use correlation to determine if linear relationships exist.
The most commonly used is the Pearson Correlation Coefficient 𝒓. If ever we find that
a relationship is existing between the variables, we then need to test if such relationship
is significant. And if it is tested to be significant, we can proceed to determining the
equation of the regression line.
What’s New
The regression line is also called as the line of best fit. Its significance is in
enabling us to interpret data trends and help us in making predictions based on that data,
the latter which is to be discussed further in the next lesson.
Again, please take note that in doing regression, you first need to consider the
following assumptions:
a. There exists a relationship between the variables; and
b. The relationship is tested to be significant.
The stated conditions are necessary to be first met, otherwise doing a regression
analysis would be totally pointless.
A scatterplot is one way of illustrating a line of best fit. The figure below shows a
scatterplot of a data of two variables. Notice that several lines can be drawn on the graph
near the points. With this, you should be able to draw the line of best fit. Best fit means
that the sum of the squares of the vertical distances from each point to the line is at a
minimum.
2
The Equation of a Regression Line
Going back in our algebra concepts, an equation of a line is given by 𝑦 = 𝑚𝑥 + 𝑏,
where 𝑚 stands for the slope and 𝑏 for the y-intercept. Similarly, an equation of a
regression line is given by 𝑦 ′ = 𝑎 + 𝑏𝑥, where 𝑏 is the slope and 𝑎 is the y-intercept.
Furthermore, the corresponding formulas for the y-intercept 𝑎 and the slope 𝑏 are
as follows:
(∑ 𝑦)(∑ 𝑥 2 )−(∑ 𝑥)(∑ 𝑥𝑦)
𝑎= 2
𝑛(∑ 𝑥 2 )−(∑ 𝑥)
𝑛(∑ 𝑥𝑦)−(∑ 𝑥)(∑ 𝑦)
𝑏= 2
𝑛(∑ 𝑥 2 )−(∑ 𝑥)
What is it
Activity 1
Given the data below, find the equation of the regression line and provide an
interpretation of the results.
Solution
Before we can successfully proceed to solving for the equation of the regression
line, we need to solve first for the necessary summations. As such, a completed table like
the one shown below would be of great help.
3
No. of Study Final Grade in
Student 𝒙𝒚 𝒙𝟐
Hours (𝒙) Math(𝒚)
A 2 79 158 4
B 3 83 249 9
C 5 85 425 25
D 9 88 792 81
E 11 89 979 121
F 15 93 1395 225
45 517 3998 465
Interpretation
Marginal change is the magnitude of the change in one variable when the other
variable changes exactly one unit. In the problem, the value of the slope 𝑏, which is .945,
is the marginal change. This means that for every change in the value of 𝑥, which is the
number of study hours, the value of 𝑦 which is the grade also changes at .945unit on the
4
average. Similarly, the value of the y–intercept 𝑎 is 79.078. This means that the grade of
a student would be 79.078 if he/she has zero hours of study.
What’s more
Given the data below, find the equation of the regression line and provide an
interpretation of the results.
What can I do
1. Think of any pair of data (𝑥 𝑎𝑛𝑑 𝑦) that may appeal to you (e.g., age and
number of sleep hours, etc.).
2. Conduct an interview to at least five (5) persons in your household by
recording their respective responses to your chosen data.
3. Present the results in tabular form and find the corresponding equation of
the regression line.
4. Provide an interpretation of the results.
5
Assessment
Direction: Read the following questions carefully and choose the letter of
your answer. You may use a separate sheet of paper.
6
ANSWER KEY
What I know
What’s more
Assessment
7
Lesson 2 Solving Problems Involving
Regression Analysis
- Prediction of the value of the dependent variable given the value of the
independent variable; and
- Solving problems involving regression analysis
What I Know
Direction: Read the following questions carefully and choose the letter of your
answer. You may use a separate sheet of paper.
1. What is the value of the equation 𝑦 = 3 + 4𝑥 if the value of 𝑥 is twice the slope?
a. 7 b. 11 c. 19 d. 35
′
2. If the linear regression equation is 𝑦 = 103 − 1.7𝑥, what would be the value of 𝑦′
when 𝑥 = 10?
a. 101.3 b. 86 c. 93 d. 106
3. Which of the following scenarios could not possibly give us an acceptable prediction
using the equation of regression?
a. Predicting the future company revenue based on past sales
b. Predicting the crop yield of a farm depending on rainfall days
c. Predicting the number of hospital patients based on the season
d. Predicting the age of a student based on his/her grade
8
4. In a study involving number of student tardy days and their corresponding quiz
scores, the resulting regression equation is 𝑦 = 43 + .756𝑥. What would be the
corresponding score if a student never committed any tardy day?
a. 41 b. 43 c. 42 d. 44
5. In a study involving the number of assists in a basketball game (independent) and
the total points (dependent), find the total points of a game when the number of
assists is 30. Use 𝑦′ = 2.693 + 1.962𝑥.
a. 61 b. 63 c. 62 d. 64
What’s In
In the previous lesson, you have learned how to identify the dependent and
independent variables of a data set. You also learned that the equation of a regression
line is in the form 𝑦 ′ = 𝑎 + 𝑏𝑥, where 𝑏 is the slope and 𝑎 is the y-intercept. Similarly, you
learned how to interpret a regression line equation.
What’s New
Today, you will be learning on how to use the equation of a regression line to make
predictions on the value of the dependent variable. That’s right! You heard it properly –
prediction, or shall I say estimation of a value of a dependent variable in which the value
of the independent variable is not present in your data given the circumstances that you
have found.
To give you an idea on how to do such prediction (or estimation), let me start by
showing you a sample problem.
Activity 1
Below is a sample data about the top achieving students of a school given their
number of study hours (𝑥) and their score in the math final exam (𝑦). Find the equation
of the regression line and predict the value of the dependent variable if the value of the
independent one is 14.
Before we proceed with our initial computation, we must remember that in making
regression analysis, the data must be correlated and that the correlation must be
9
significant. For the sake of this discussion let us just have the assumption that such
requirements have been met.
Now, like what we did in the previous module, we first need to solve for the
necessary values in finding the slope 𝑎 and the y-intercept 𝑏. Hence, we should come up
with the following:
No. of
Score out
Student Study xy x^2
of 100 (y)
Hours (x)
A 5 83 415 25
B 7 87 609 49
C 8 89 712 64
D 11 93 1023 121
E 13 96 1248 169
44 448 4007 428
Interpretation
In the regression line equation, our slope 𝑏 is 1.583 which means that for every
change in the value of 𝑥, which is the number of study hours, the value of 𝑦 which is the
10
score also changes at 1.583 unit on the average. Similarly, the value of the y–intercept 𝑎
is 75.667. This means that the score of a student would be 75.667 if he/she has zero
hours of study.
What is it
Now, since our main objective is to predict the value of 𝑦 when the value of 𝑥 is
14, we will now use our newfound equation. We will replace 𝑥 with 14.
𝑦 ′ = 75.667 + 1.583𝑥
′
𝑦 = 75.667 + 1.583(14)
𝑦 ′ = 75.667 + 22.162
𝑦 ′ = 97.829
Hence, if a student’s study hours is 14, his/her expected score in the math exam
would be 97.829.
What’s more
The data below shows the ages of students 𝑥 in a certain school, and the
corresponding number of them having smartphones 𝑦. Find the equation of the regression
line and predict the number of students with smartphones with the age of 20. Consider
the variables to be correlated and that the correlation is significant.
No. of Students
Age
with Smartphones
(x)
(y)
13 19
14 32
16 37
17 45
19 49
11
What I have learned
Answer the following in your answer sheet.
1. Why it is dangerous to make predictions beyond the scope of what you have
observed in your data set?
2. Give at least two examples of situations wherein prediction of the value of the
dependent variable using the equation of the regression line would be
meaningless.
What can I do
There has been a study saying that the speed of a vehicle before it met an
accident can be estimated by measuring the distance of the skid marks it has created
during full braking. Consider the table below.
12
Assessment
Direction: Read the following questions carefully and choose the letter of
your answer. You may use a separate sheet of paper.
1. What is the value of the equation 𝑦 = 4 + 5𝑥 if the value of 𝑥 is twice the slope?
a. 7 c. 19
b. 11 d. 54
2. If the linear regression equation is 𝑦 ′ = 103 − 1.7𝑥, what would be the value
of 𝑦′ when 𝑥 = 20?
a. 101.3 c. 93
b. 86 d. 99.6
4. In a study involving number of student tardy days and their corresponding quiz
scores, the resulting regression equation is 𝑦 = 34 + .756𝑥. What would be
the corresponding score if a student never committed any tardy day?
a. 41 c. 34
b. 43 d. 44
13
Key Answers
Pretest Enrichment Activity
Post test
14
Reference
Bluman, Alan. (2012) Elementary Statistics: A Step by Step Approach. New York:
McGraw Hill
15
Writer’s Profile
Name: ARIEL A. TARUCAN
Position: Teacher III
Educational Attainment:
Master of Science in Teaching Mathematics (CAR)
Bachelor of Secondary Education Major in Mathematics
Module Title: Module 2 – Regression Analysis
Division: Misamis Oriental
School: Talisayan National High School – Senior High School
District: Talisayan
16