covariance and correlation Flashcards

1
Q

name two measures of association

A

covariance and correlation

when looking for a single number to describe the relationship between two variables, you would presume that the joint probability would be enough but, if you need a deeper look you need covar and corr.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

how do you examine covariance for variables X and Y ?

A

you look at this

COV(X,Y) =
(X-meanx) . (Y-meany)

if its positive then they are both either + / -

if its negative one is + and one is -

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

how do you calculate sample covariance ?

A

Sx,y = sum of ( (xi-smean) . (yi-smean) / n-1 )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

list some properties of covariance

A

can be altered by multiplication of a constant

COV(aX + c , bY + d)= abCOV(X,Y)

although it does reduce the usefulness as cov relies on scale

bounded by the product of the two variables standard deviations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

if X and Y are independent what is the covariance ?

A

COV = 0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

how do you calculate the correlation coefficient for

a. population
b. sample

A

a. CORR(X,Y) = cov/stdev1 .stdev2

b. samplecovar/ sx.sy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

list some properties of CORR?

A
invariant to units 
always same sign as COV
bounded by -1 and 1 
when corr=0, un correlated 
corr=1 perfectly positively 
corr=-1 perfectly negatively
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

how do you use joint probability to test for independence ?

A

only independent when the joint probability = the product of the marginal probabilities

if X and Y are independent

E(XY) = E(X) . E(Y) and COV =0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly