LBSRE1021 Data Interpretation: Correlation and Regression
LBSRE1021 Data Interpretation: Correlation and Regression
Interpretation
Lecture 11
1 23 58
2 17 50
3 24 54
4 35 64
5 10 40
6 16 43
7 15 42
8 24 50
9 18 53
10 30 62
The scatter diagram of the data would appear
as below:
70
65
60
55
50
45
40
5 10 15 20 25 30 35 40
Alternatively a negative correlation would
appear as below:
50
40
30
20
10
0
5 10 15 20 25 30 35 40
Alternatively data with no correlation may
appear as below:
60
50
40
30
20
10
0
0 5 10 15 20 25 30 35 40
Correlation Scale
-1 0 +1
x y xy x y
23 58 1334 529 3364
17 50 850 289 2500
24 54 1296 576 2916
∑ 212 516 11452 5000 27242
Pearson’s product moment
correlation coefficient (r) (2)
= 5128
√ 5056 x 6164
= 0.9186
Linear Regression
Need to establish a ‘line of best fit’
The ‘freehand method’ has many
drawbacks.
65
The equation for this line is Y = 30.10 + 1.014X
60
55
50
45
40
5 10 15 20 25 30 35 40
Linear Regression (3)
The equation of this line is Y =30.10 +1.014X
But how is this obtained?
n ∑ x - (∑ x)
b = 1.0142405
Linear Regression Equations (2)
And
a = y – b.x
a = 30.098101
1 20
2 23
3 26
4 28
5 35