06 Correlation and Regression
06 Correlation and Regression
Regression
Correlation
Reliability
Age of Car
No relation
Variance vs Covariance
■ Do two variables change together?
Variance:
• Gives information on variability of a
single variable.
Covariance:
• Gives information on the degree to
which two variables vary together.
• Note how similar the covariance is to
variance: the equation simply
multiplies x’s error scores by y’s error
scores as opposed to squaring x’s error
scores.
Covariance
x y xi − x yi − y ( xi − x )( yi − y )
0 3 -3 0 0
2 2 -1 -1 1
3 4 0 1 0
4 0 1 -3 -3
6 6 3 3 9
x =3 y=3 ∑=7
• If r = l = perfect correlation.
How to compute the simple
correlation coefficient (r)
ch X and Y vary together
r = degree to which X and Y vary separately
Numerators of
variance
How to compute the simple correlation
coefficient (r)
:Example
A sample of 6 children was selected, data about their
age in years and weight in kilograms was recorded as
shown in the following table . It is required to find the
correlation between age and weight.
r = - 0.94
∑ di2=64
Comment:
There is an indirect weak correlation
between level of education and income.
Exercise
Regression Analyses
b
Regression Equation
Regression equation
describes the
regression line
mathematically
■ Intercept
■ Slope
Linear Equations
Hours studying and grades
Regressing grades on hours
=112.13 + 0.4547 x
for age 25
B.P = 112.13 + 0.4547 * 25=123.49 = 123.5 mm hg
Multiple Regression