What's Up For Today's Session?: Regression Equation
What's Up For Today's Session?: Regression Equation
What's Up For Today's Session?: Regression Equation
4
y = a + bx
3
Week
16
1
0
0.5 1 1.5 2 2.5 3 3.5 4
16 fitting” line.
Linear Regression Analysis
The regression analysis equation is being used to predict the value of
the dependent variable. The said equation is defined by
y = a + bx
where: X – the value of any particular observations of the independent variable
Y – the value of any particular observations of the dependent variable
b – slope of the regression line
Week
a – intercept of the regression line
16
Linear Regression Analysis
In deriving the linear regression equation, compute for the b and a.
To obtain the values of the slope (b) and the intercept (a) of the linear
regression equation, we have:
b= a=
(Slope) (Intercept)
Week
16
Linear Regression Analysis
Example: A teacher desires to know whether the typing speed of a
Comsci student (in words per minute) is related to the time (in hours).
Given the speed of a student (X) and the corresponding time it will
take for him to learn the word processing program (Y), predict the time
it will take the average student who has a typing speed of 72 words per
minute to learn the word-processing program.
Speed (X) 45 68 69 45 58 55 67 75 94
16
Linear Regression Analysis
Speed (X) 45 68 69 45 58 55 67 75 94
Example: Time (Y) 85 67 56 78 68 89 92 67 54
16
94 54 5625 5025
94 54 5076
8836
576 656
Linear Regression Analysis
Speed (X) 45 68 69 45 58 55 67 75 94
Example: Time (Y) 85 67 56 78 68 89 92 67 54
Step 2: Compute for slope (b). Step 3: Compute for intercept (a).
Solution: Solution:
b= a=
Week b= a=
16
b= a=
Linear Regression Analysis
Speed (X) 45 68 69 45 58 55 67 75 94
Example: Time (Y) 85 67 56 78 68 89 92 67 54
Step 4: Substitute the values of b Step 5: Predict the time it will take the average
and a to determine the linear student who has a typing speed of 72 words per
regression equation. minute to learn the word-processing program.
16
Therefore, it will take the student 68 hours
to learn the word-processing program.
Linear Regression Analysis
Follow-up questions:
1.) How long will it take a student who has a typing
speed of 64 words per minute to learn the word-
processing program?
16
Linear Regression Analysis
Solutions:
1.) How long will it take a student 2.) How fast should a student be in typing words
who has a typing speed of 64 words in order to learn the word-processing program in
per minute to learn the word- just 50 hours?
processing program?
50 = 110.59 – 0.59(x)
Y = 110.59 – 0.59(64) 0.59(x) = 110.59 – 50
Week Y = 72.83 hours 0.59(x) = 60.59
Months JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC
Adv Exp (X) 1.20 1.40 0.50 2.10 2.00 1.60 1.00 0.60 0.80 1.80 1.90 1.50
Sales (Y) 21.20 21.80 17.00 25.50 26.20 22.50 19.50 17.30 17.50 24.00 23.80 22.30
Week
16
Do you have any questions? Is there
anything relevant to the lesson that needs
to be clarified? Do you have additional
insights about the lessons? If none, get
ready for your offline task.
Week
-End of online session-
16