

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


STAT 301 TA : Lisa Chung [email protected]
(Nov. 8. 2004)
The correlation coefficient, denoted by r, is a measure of strength of the linear relation between the x
and y variables.
r =
xy
√
Sxx
Syy
where
Sxy =
(x − x¯)(y − ¯y)
xx
(x − x¯)
2
yy
(y − y¯)
2
∗ Correlation Coefficient (Alternative way)
xy
(x i
)(y i
) − n(¯x)(¯y)
xx
(x i
2 − n(¯x)
2
Syy =
(yi)
2 − n(¯y)
2
Example 1 For a data set of (x, y) pairs, one find that
n = 26,
x i
y i
(x i
2 = 66831,
(y i
2 = 59059,
x i
y i
Calculate the correlation coeffcient.
Example 2 The following table gives the federal deficit and the number of golfers in the United
States.Determine the correlation between number of golfers and the federal deficit.
β 1 =
Sxy
Sxx
β 0 =
β 1
Example 3 Given five pairs of values,
Off. Hour: W 1:00-3:00 p.m. 1 1275A MSC, 262-
STAT 301 TA : Lisa Chung [email protected]
(a) Calculate ¯x, y, S¯ xx
xy
, andS yy
(b) Calcualte the least squares estimates
β 0 and
β 1.
(c) Determine the fitted line.
Off. Hour: W 1:00-3:00 p.m. 2 1275A MSC, 262-