Professional Documents
Culture Documents
X 467.1 y 7,805 X y Xy 666,045: Calculations
X 467.1 y 7,805 X y Xy 666,045: Calculations
i.
X y x2 y2 xy
Calculations
n=8
x̅ =
∑ x = 467.1 =58.39
8
n
y̅ =
∑y 7,805
= =975.625
n 8
2
2 (∑ x ) 467.12
SSxx = ∑ x – = 43,622.85 - =43,622.85−27,272.80125=16,350.04875
8
n
2
2 (∑ y ) 7,8052
SSyy = ∑ y – = 10,693,725 - =10,693,725−7,614,753.125=3,078,971.875
8
n
( ∑ x )(∑ y) (467.1)(7,805)
SSxy = ∑ xy – - =210,330.5625
=666,045 8
n
SS xy 210,330.5625
β1 = = =12.86
SS xx 16,350.04875
β0 = y̅ - β1(x̅) = 975.625 -12.86(58.39) = 224.48
Therefore, the least squares estimated regression equation is;
^y =224.48+ 12.86 x
ii. for x=100 ,
y=224.48+ 12.86 (100 )=1,510.48
iii. for y=3,500
3,500=224.48+12.86 x
3,500−224.48
x= =254.71
12.86
iv.
Test
H0: β1 = 0 (no linear relationship)
H1: β1 ≠ 0 (there is a linear relationship)
Test Statistic
β1 −0
t=
S / √ SS xx
where S;
SSE = SSyy - β1(SSxy) = 3,078,971.875 – 12.86(210,330.5625) = 374,120.8413
SSE 374,120.8413
S2 = = = 62,353.47354
n−2 8−2
S = √ 62,353.47354 = 249.71
Thus;
12.86−0
t=
249.71/ √16,350.04875
= 6.59
Rejection Rule:
Decision:
Since t > t 0.05,6, Reject H0 i.e. at 5% level of significance, there is sufficient statistical evidence to
indicate a linear relationship between energy consumption, x and Gross National Product, y.
vi.
vii.
viii.
x y ^y = ( ^y − ý) ( ^y − ý)2 y− ^y ( y− ^y )2
224.48+12.86x
3.4 55 268.204 -707.421 500,444.4712 -213.204 45,455.94562
SSE=∑ ( y− ^y )2 = 3 73,234.9648
SSR
MSR = = 2,689,666.452
1
SSE 373,234.9648
MSE = = = 62,205.82747
n−2 8−2
MSR 2,689,666.452
F= = = 43.24
MSE 62,205.82747
Source of df SS MS F
variation
Regression 1 2,689,666.452 2,689,666.452 43.24