Professional Documents
Culture Documents
Regression and Correlation 1
Regression and Correlation 1
S xx = x 2 −
( x ) 2
= 158 −
26 2
= 22.8.
n 5
2
S yy = y −
( y ) 2
= 504 −
482
= 43.2.
n 5
S xy = xy −
( x )( y )
= 280 −
(26)(48)
= 30.4.
n 5
S
ˆ = S xy = 30.4
22.8
= 1.3333
xx
ˆ = y − ˆ x = 9.6 − 1.3333 5.2 = 2.6667.
Alternative Computation
The estimated line of regression is given by y = ˆ + ˆ x, where
ˆ =
( x − x )( y − y )
and ˆ = y − ˆ x
(x − x ) 2
2 2
x y x−x ( x − x ) y − y ( y − y ) ( x − x )( y − y )
5 8 -0.2 0.04 -1.6 2.56 0.320
7 12 1.8 3.24 2.4 5.76 4.320
2 6 -3.2 10.24 -3.6 12.96 11.520
8 14 2.8 7.84 4.4 19.36 12.320
4 8 -1.2 1.44 -1.6 2.56 1.920
26 48 22.80 43.20 30.400
ˆ = S xy = ( x − x )( y − y ) = 30.4 = 1.333
S xx ( x − x )2 22.8
(a) If input increases by 1 unit, output will increase by 1.333 units (or if
input increases by 1,000 unit, output will increase by 1,333 units)
(b) Since the values of input and output are in thousands of units, we
multiply the value of by 1000. Thus,
ˆ = 2.667 1000 = 2667.
The fitted line of regression is
y = 2667 + 1.333x.
For a constant term (intercept) of 2,667 means that if there is no x the
value of y will be 2,667.
(c) The value of the extent of relationship is the estimate of
the correlation coefficient r.
S xy 30.4
r= = = 0.9686.
S xx S yy 22.8 43.2
( x − x )( y − y ) 30.4
r= = = 0.9686.
( x − x ) 2
( y − y ) 2 22.8 43.2
Decision rule
Two tailed test: = 0.01 0.01
2
= 0.005.
Degrees of freedom = 5 – 2 = 3.
Critical value: t0.005, 3 = 5.841.
We reject H 0 if t 5.841 or retain H 0 if t 5.841.
Computation
r −
t= = 0.9686 − 0 = 6.748.
1 − r2 1 − 0.96862
n − 2 5− 2
Decision
Since 6.748 > 5.841, we reject H 0 at the 0.01 level of
significance.
Interpretation
There is evidence of a linear association at the 1%
level of significance (for a two tail test).
1. If x and y are both observed in units of GH¢ 100 and suppose the predicted
regression equation is
yˆ = 4.1 + 8.5 x.
(a) Interpret the coefficients.
(b) Use the predicted equation to estimate y for value of GH¢ 1,100 in x.
Solution
(a) When there is no x (i.e. x = 0), the estimated y is 4.1 units (i.e. GH¢ 410)
and if x changes by 1 unit (i.e. GH¢ 100), the expected change in y is 8.5
units (i.e. GH¢ 850).
(b) Since x is in GH¢ 100’s, so GH¢ 1,100 mean that x = 11. Thus,
yˆ = 4.1 + 8.5(11) = 97.6.
Hence, the estimated y for x value of GH¢ 1,100 is GH¢ 9,760.
2. If y is observed in units of GH¢ 100 and suppose the predicted regression
equation is
yˆ = 4.1 + 8.5 x.
(a) Interpret the coefficients.
(b) Use the predicted equation to estimate y for value of 20 units in x.
Solution
(a) When there is no x (i.e. x = 0), the estimated y is 4.1 units (i.e. GH¢ 410)
and if x changes by 1 unit, the expected change in y is 8.5 units (i.e. GH¢
850).
(b) When x = 20,
yˆ = 4.1 + 8.5(20) = 174.1.
Hence, the estimated y for x value of 20 units is GH¢ 17,410.
3. If x is observed in units of GH¢ 100 and suppose the predicted regression
equation is
yˆ = 4.1 + 8.5 x.
(a) Interpret the coefficients.
(b) Use the predicted equation to estimate y for value of GH¢ 2,200 in x.
Solution
(a) When there is no x (i.e. x = 0), the estimated y is 4.1 units and if x changes
by 1 unit (i.e. GH¢ 100), the expected change in y is 8.5 units.
(b) Since x is in GH¢ 100’s, so GH¢ 2,200 mean that x = 22. Thus,
yˆ = 4.1 + 8.5(22) = 191.1.
Hence, the estimated y for x value of GH¢ 2,200 is 191.1 units.