Correlations: Islamic University of Gaza Statistics and Probability For Engineers (ENGC 6310)
Correlations: Islamic University of Gaza Statistics and Probability For Engineers (ENGC 6310)
Correlations
First Semester/2019
Definition
nxy – (x)(y)
r=
n(x2) – (x)2 n(y2) – (y)2
61 – (12)(23)
r=
4(44) – (12)2 4(141) – (23)2
-32
r= = -0.956
33.466
Properties of the
Linear Correlation Coefficient r
1. –1 r 1
2. The value of r does not change if all values
of either variable are converted to a different
scale.
3. The value of r is not affected by the choice of
x and y. Interchange all x- and y-values and the
value of r will not change.
4. r measures strength of a linear relationship.
Interpreting r :
Explained Variation
The value of r2 is the proportion of the
variation in y that is explained by the linear
relationship between x and y.
Test statistic:
r
t=
1–r2
n–2
Critical values:
Conclusion:
If the absolute value of t is > critical value
reject H0 and conclude that there is a linear
correlation. If the absolute value of t ≤ critical
value, fail to reject H0; there is not sufficient
evidence to conclude that there is a linear
correlation.
Test Statistic is t
(follows format of earlier chapters)
Covariance
Measure of linear relationship between variables
If the relationship between the random variables is nonlinear,
the covariance might not be sensitive to the relationship
Slide 17
Pearson’s Correlation Coeff.
Pearson's correlation coefficient between two variables is defined
as the covariance of the two variables divided by the product of
their standard deviations:
Slide 18
Pearson correlation coefficient
The Spearman correlation coefficient is often thought
of as being the Pearson correlation coefficient
between the ranked variables. In practice, however, a
simpler procedure is normally used to calculate ρ.
The n raw scores Xi, Yi are converted to ranks xi, yi,
and the differences di = xi − yi between the ranks of
each observation on the two variables are calculated
Slide 19
Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.
A Spearman correlation of 1 results when the two variables being
compared are monotonically related, even if their relationship is not linear.
In contrast, this does not give a perfect Pearson correlation
Slide 20
Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.
When the data are roughly elliptically distributed and there are no prominent
outliers, the Spearman correlation and Pearson correlation give similar
values
Slide 21
Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.
The Spearman correlation is less sensitive than the Pearson
correlation to strong outliers that are in the tails of both samples
Slide 22
Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.