Regression and Correlation - Upload Compatibility Mode
Regression and Correlation - Upload Compatibility Mode
Regression and Correlation - Upload Compatibility Mode
No correlation
)
y = a + bx - simple linear regression equation
a=
∑ y − b∑ x b= ∑ xy − nx y
2 x= ∑ x
y= ∑ y
n ∑ x 2
− nx n n
Where:
x = independent variable
y = dependent variable
n = number of ordered pairs
x = mean of the independent variable
y = mean of the dependent variable
a = intercept
b = slope
)
y = predicted value of the independent
variable
CORRELATION ANALYSIS
Correlation Analysis
Correlation is a measure of association between two
variables.
The two most popular correlation coefficients are:
Pearson's product-moment correlation coefficient.
For interval or ratio-type data, use Pearson's
technique(Pearson r).
Spearman's correlation coefficient rho
When calculating a correlation coefficient for ordinal
data, select Spearman's technique (Spearman rho)
Correlation Interpretation Guide
±1.00 Perfect +/- Correlation
±0.76 - ±0.99 Very High +/- Correlation
±0.51 - ±0.75 High +/- Correlation
±0.26 - ±0.50 Moderately Small +/- Correlation
±0.01 - ±0.25 Very Small +/- Correlation
0.00 No Correlation
r =
n ∑ xy − ∑ x ∑ y
n x )2 n y )2
∑ x2 − ( ∑ ∑ y2 − ( ∑
the coefficient of determination, r2 are
computed below:
2
a ∑ y + b ∑ xy − n y
r2 = 2
∑ y2 − ny
Example:
A 8 7
B 2 5
C 7 10
D 1 4
E 4 2
F 9 6
G 3 1
H 6 9
I 10 8
J 5 3
Solution:
Student Rank During Rank During D D2
nd
Trainee 1st Evaluation 2 Evaluation
A 8 7 1 1
B 2 5 -3 9
C 7 10 -3 9
D 1 4 -3 9
E 4 2 2 4
F 9 6 3 9
G 3 1 2 4
H 6 9 -3 9
I 10 8 2 4
J 5 3 2 4
ρ = 1−
6 ∑ D2
= 1−
6(62)
= 0.62 High
n(n2 − 1) 10(102 − 1)
correlation
2. Measure the degree of relationship of five
finalists in a certain competition as ranked by
female and male judges.
Math 4 3 5 4 6 6 8 2 6
rank 6.5 8 5 6.5 3 3 1 9 3
Physics 3 5 6 6 4 0 1 7 7
rank 7 5 3.5 3.5 6 9 8 1.5 1.5
3. Calculate the correlation between the IQ of a
person with the number of hours spent in
front of TV per week. Then Interpret.
Hours of
IQ(y) TV per x y Rx Ry D D2
week(y)
106 7
86 0
100 27
101 50
99 28
103 29
97 20
113 12
112 6
110 17
Note: When two or more observations of one
variable are the same, ranks are assigned by
averaging positions occupied in their rank
order.
Score 2 3 4 4 5 6 6 6 8
Rank 1 2 3.5 3.5 5 7 7 7 9
2. Compute the correlation between the
scores in Math and Physics of the
following students by using the spearman
rank correlation. Then interpret the
result.
Student A B C D E F G H I
Math 4 3 5 4 6 6 8 2 6
Physics 3 5 6 6 4 0 1 7 7
May your constant love be with us, Lord,
as we put our trust in you.
Ps. 33:22