University of Cebu-Banilad
College of Computer Studies
Cebu City
Linear Regression
Name: John Carl N. Rusiana____
General Instructions: Questions/Clarifications must be forwarded to the instructors only. Submission
must be an image of the manual computation done. Show your solutions. Do not forget to THINK.
Given the following sample data from the 20-item exam taken by 10 student of the QUAMETH class. The
independent variable (x) signifies the student’s individual score out of the possible 20 items test and the
dependent variable (y) is their attitude towards the test. The attitude is in percentage, the higher the
number the more positive attitude towards taking the exam.
Score(x) Attitude(y)
16 79
16 93
18 77
16 66
13 73
15 80
17 96
19 91
14 85
12 59
1. Plot the data points.
Attitude
50 55 60 65 70 75 80 85 90 95 100
10 11 12 13 14 15 16 17 18 19 20
Score
2. Calculate the slope(b1).
Score Attitude xi- x̄ yi-ȳ (xi- x̄)( yi-ȳ) (xi- x̄)2
(xi) (yi)
16 79
16 93
18 77
16 66
13 73
15 80
17 96
19 91
14 85
12 59
∑ = ________ ∑= _________ ∑= _______ ∑= _________
x̄ = ________ ȳ = ________
b1 = ______________
What does the slope tells us?
4. Calculate the y-intercept (b0). b0 = ___________________
5. What is your ŷ line or line of regression? This is your estimated regression line.
ŷ = y-intercept + slope.x
ŷ = ___________________________________
5. Using the estimated line of regression formula predict the value of y given for a given x value.
Suppose the score is = 16, what would be the predicted attitude of the student? _________
6. Compute the Coefficient of Determination.
Score Attitude Predicted Error Squared Deviation Standard
Attitude Error Deviation
Plot the points and draw the lines of ŷ and ȳ.
Give the interpretation of the computed r2.