Professional Documents
Culture Documents
Regression and Correlation
Regression and Correlation
Statistics In
Construction
COURSE INSTRUCTOR
VIRENDRA BALON
vbalon@nicmar.ac.in, Extension: 309
Review
I am examining differences in the mean between groups
No
Yes
?
Independent
Sample T-test ?
One-sample T-
test ?
Paired t-test
Differences or Relationships?
I am examining
I am examining
relationships
differences
between variables
between groups
SSXY
r=
( SSX )( SSY )
=
( X − X )(Y − Y )
( X − X ) (Y −Y )
2 2
−1 r 1
( X )( Y )
XY − n
=
2
−
( X)
2
Y 2 −
(Y )
2
X n n
Direction of the relationship
Variables can be positively or negatively correlated.
Positive correlation: A value of one variable increase,
value of other variable increase.
Negative correlation: A value of one variable increase,
value of other variable decrease.
No correlation: the value of r is close to 0
Strength of the relationship
The magnitude of correlation:
❑Indicated by its numerical value
❑ignoring the sign
❑expresses the strength of the linear relationship between the
variables.
Correlation Coefficient r
-1 ≤ r ≤ 1
r = 0.9
r = 0.01
r = -0.9
Degrees of Correlation
Future
Day Interest (X) Index (Y) X2 Y2 XY
1 7.43 221 55.2049 48841 1642.03
2 7.48 222 55.9504 49284 1660.56
3 8 226 64 51076 1808
4 7.75 225 60.0625 50625 1743.75
5 7.6 224 57.76 50176 1702.4
6 7.63 223 58.2169 49729 1701.49
7 7.67 223 58.8289 49729 1710.41
8 7.68 226 58.9824 51076 1735.68
9 7.59 226 57.6081 51076 1715.34
10 8.07 235 65.1249 55225 1896.45
11 8.03 231 64.4809 53361 1854.93
12 8 241 64 58081 1928
SUM 92.93 2723 720.2199 618279 21099.04
Computation of r
Economics Example (Part 2)
( X )( Y )
XY −
n
r=
( X )
2
( )
Y
2
X − n Y − n
2 2
( 92.93)( 2725)
(21,115.07) −
= 12
( 720.22) −
(
92 .93 )2
(
( 619,207) − 2725
) 2
12 12
=.815
Computation of r
Economics Example (Part 3)
38 12.5
45 12.1
35 13.6
50 10.0
60 11.2
45 12.0
30 13.4
51 13.8
53 16.8
40 15.6
43 12.3
39 12.0
41 12.7
40 13.7
50 12.0
56 12.8
52 111.6
62 14.0
39 13.0
44 11.9
Weight
Age (Y)
No (kg) (X) X2 Y2 XY
1 38 12.5 1444 156.25 475
2 45 12.1 2025 146.41 544.5
3 35 13.6 1225 184.96 476
4 10 2500 100 500
5 60 11.2 3600 125.44 672
6 45 12 2025 144 540
7 30 13.4 900 179.56 402
8 51 13.8 2601 190.44 703.8
9 53 16.8 2809 282.24 890.4
10 40 15.6 1600 243.36 624
11 43 12.3 1849 151.29 528.9
12 39 12 1521 144 468
13 41 12.7 1681 161.29 520.7
14
15
40
50
13.7
12
1600
2500
187.69
144
548
600
r=
16
17
18
56
52
62
12.8
111.6
14
3136 163.84 716.8
2704 12454.56 5803.2
3844 196 868
.17
19 39 13 1521 169 507
20 44 11.9 1936 141.61 523.6
Sum 913 357 43021 15665.94 16911.9