Professional Documents
Culture Documents
Correlation and Regression
Correlation and Regression
UNIT 3
CORRELATION
&
REGRESSION
• EXAMPLES:
We may be interested in finding the relationship between;
1. The performance of students in two courses
2. The amount spent on advertising and that received by
sales
3. The heights of Fathers and Sons.
4. The heights and weights of individuals.
....Linking Learners Everywhere © 2015 All Rights Reserved
GENERAL INFORMATION
• A qualitative statement of the relationship such as “ Tall
fathers will usually have tall sons” can be deduced by
anyone, but this statement is not precise enough to be of
use to decision makers.
• However, a quantitative statement will be of much
greater value and useful.
• Hence a quantitative measure of the relationship between
two variables will be more appropriate and this can be
achieved by using the Coefficient of correlation
computation.
y y
x x
y y
x x
....Linking Learners Everywhere © 2015 All Rights Reserved
SCATTER PLOT EXAMPLES CONT.
• More Relationships
Strong relationships Weak relationships
y y
x x
y y
x
x
....Linking Learners Everywhere © 2015 All Rights Reserved
SCATTER PLOT EXAMPLES CONT.
No Relationship
(continued)
No relationship
x
....Linking Learners Everywhere © 2015 All Rights Reserved
CORRELATION
y y y
x x x
r = -1 r = - 0.6 r=0
y y
r = +1
r = 0.3 x x
....Linking Learners Everywhere © 2015 All Rights Reserved
THE LINE OF REGRESSION
2
∑ xi = ∑ yi = 2 ∑ yi = ∑ xi y i =
∑ xi = n=15
220 87.76 742.93 1852.21
4626
ŷ = mx + b
where m = regression coefficient of y on x
2
Also b = ( ∑ yi ) ( ∑ xi ) – ( ∑ xi )( ∑ xi yi )
2
n ( ∑ xi ) – ( ∑ xi )2
m = n( ∑ xi yi ) – ( ∑ xi )( ∑ yi )
n ( ∑ xi 2) – ( ∑ xi )2
(i) Construct a linear regression of oxygen consumption rate on temperature on above data.
(ii) Compute the correlation coefficient to show the direction and strength of the relationship.
(iii) Calculate the coefficient of determination. Comment on your results.