York University Adms2320 Chapter 16 Example
York University Adms2320 Chapter 16 Example
x 2 4 6 8 10 13
y 7 11 17 21 27 36
A)
I suggest putting the information that you require into tabular form. It allows you to
organize the information, produce the necessary statistics you need and allow you a
quick way to check the work over. The following variables will be needed:
n xi yi xi
2
yi
2
xi yi
1 2 7 4 49 14
2 4 11 16 121 44
3 6 17 36 289 102
4 8 21 64 441 168
5 10 27 100 729 270
6 13 36 169 1296 468
=
1
[1066 − 852.8333]
5
= .2 [213.1667]
= 42.6333
1⎡
= ⎢389 −
(43)2 ⎤
⎥
5 ⎢⎣ 6 ⎥⎦
= .20[389 − 308.1667]
= 16.1667
© Michael Rochon 2011 – All Rights Reserved
Cov ( x, y )
b1 =
s x2
42.6333
=
16.1667
= 2.6371
b0 = y − b1 x
= 19.8333 − 2.6371(7.1667)
= .934
yˆ = .934 + 2.6371x
© Michael Rochon 2011 – All Rights Reserved
ŷ = .934 + 2.6371(9)
= 24.6679
C) The slope of the regression line tells us that if x increases by one unit,
y on average will increase by 2.6371.
[cov( x, y )]2
R =
2
s x2 s 2y
⎡ ⎛ n ⎞ ⎤
2
⎢ ⎜⎜ ∑ y i ⎟⎟ ⎥
1 ⎢ n
⎝ i =1 ⎠ ⎥
s 2y = ⎢∑ y i −
2
⎥
n − 1 ⎢ i =1 n ⎥
⎢ ⎥
⎣ ⎦
= .2 [2925 – 2360.1667]
= 112.9667
[cov( x, y )]2
R =
2
s x2 s 2y
© Michael Rochon 2011 – All Rights Reserved
(42.6333) 2
R =2
(16.1667)(112.9667)
1817.5983
=
1826.2987
= .9952
⎛ 2 [cov( x, y )] 2 ⎞
SSE = (n − 1)⎜ s y − ⎟
⎜ s x2 ⎟
⎝ ⎠
⎛ 1817.5983 ⎞
= 5⎜112.9667 − ⎟
⎝ 16.1667 ⎠
= 5(112.9667 − 112.4285)
= 5(.5382)
= 2.691
SSE 2.691
Se = = = .8202
n−2 4
f)Testing the Slope (is the most important of our assessment techniques as
there is no subjectivity in the analysis)
Hypothesis
Rejection Region
v = n-k-1 (where k is the number of independent variables you have) so, v = 6-1-1 = 4
Alpha (given in original question) was 5% thus alpha is .05, this also means that the
confidence level is 95%.
Test Statistic
⎛ 2 [cov( x, y )]2 ⎞
SSE = (n − 1)⎜ s y − ⎟ = 2.691 (already have this)
⎜ 2 ⎟
⎝ s x ⎠
SSE
sε = = .8202 (already have this)
n−2
sε .8202
sb1 = = = .0912
(n − 1) s x2 (5)16.667
b1 − β1 2.6371 − 0
t= = = 28.9156
sb1 .0912
© Michael Rochon 2011 – All Rights Reserved
Conclusion
Reject H0.There is enough statistical evidence to infer that the number
of cigarettes play a factor in the amount of coffee a smoker drinks.
g)
Coefficent of Correlation
COV ( X , Y )
r=
sx s y
(42.6333)
=
(4.0207)(10.6286)
42.6333
=
42.7344
= .9976
Measures the strength of the association between two variables, we can only
measure r when it is 1, 0, or -1 this is why we default to using the coefficient
of determination for the assessment analysis of a model.