Correlation coefficient confusion

In summary, Bob is trying to find the correlation coefficient between two linear functions, Y=X1+X2 and Z=X2+X3. He is having difficulty understanding the notation and is stumped on how to proceed.
  • #1
happyg1
308
0
Hi,
Here's my question:
Determine the correlation coefficient of the random variables X and Y if var(X)=4 and Var(Y)=2 and var(X+2Y)=15
I said let Z=X+2Y and then Var(Z)=E[Z^2]-E[Z]^2
Then I multiplied the thing out:
15=Var(z)=E[X^2]+4E[XY]+4E[Y^2]-E[X]-2E[Y]
I know that Var(X)=E[X^2]-E[X]^2 and var(Y)=E[y^2]-E[y]^2
I tried plugging in the mu and sigmas for the means and variances and I also know that E[X^2]=sigma^2+mu^2
I've been going in circles and getting nowhere for awhile. I know I'm missing something, but I don't know what.
the formula for the correlation coefficient, rho= cov[XY]/(sigmaX)(sigmaY)
doesn't get me anywhere, either. I know the sigmas but I am stuck. I have 3 pages of equations going in circles.
Any hint or pointer will be greatly appreciated.
Thanks,
CC
 
Physics news on Phys.org
  • #2
Sorry...I didn't mean to post it twice. My power went out and the computer blinked on and off and I hit submit again. Please delete one of these.
Sorry sorry sorry
CC
 
  • #3
I think the equation you want to use is var(X + Y) = var(X) + var(Y) + 2 cov(X, Y).
 
Last edited:
  • #4
Ok but how do I get the cov(X,Y) just from the variances I am given? I don't see how to get the means to plug in from what I was given.
My head hurts
CC
 
  • #5
You have all the information to use the formula directly except you have var(X + 2Y) instead of var(X + Y). You need to expand out var(X + 2Y). You don't need to know the means.
 
  • #6
Ok,
I got this one at last...thank you! Where did that formula come from?
My book has dedicated only a half a page to the derivation and explanation of the correlation coefficient. My next few problems are all about the correlation coefficient. I am wondering if anyone knows a good internet source with more info on this topic. I have searched around, but I haven't found anything on my level.

My next question says X1, X2 and X3 are independent and rho12=.3, rho13=.5 and rho23=.2 and says that the variances are equal. It wants the correlation coefficient of Y=X1+X2 and Z=X2+X3. I don't know where to start. I'm really really confused and I feel like I ned to buy another book.
Any help will be appreciated.
CC
 
  • #7
I've never done anything with the correlation coefficient before, but if rho12 = the correlation coefficient between X1 and X2, then I don't understand your question. It seems like that should be 0 since the covariance between 2 independent variables is 0. Maybe you mean mu12? I don't understand the notation.
 
  • #8
Hi again,
The question reads:
Let [tex]X_1 X_2 and X_3[/tex] be random variables with equal variances but with correlation coefficients [tex]\rho_12=.3,\rho_13=.5 and \rho_23=.2[/tex] Find the correlation coefficient of the linear functions [tex]Y=X_1+X_2 and Z=X_2+X_3[/tex].
The problem doesn't say they're independent...then, as you pointed out, it makes no sense.
 
  • #9
All right (still assuming what rho12 means is cov(X1, X2)/sigma^2) what you need to do is expand out cov(X1 + X2, X2 + X3) in terms of variances and covariances, then divide by sigma^2. I found a nice formula in my book to do that but you can probably find it online.

Edit: also you'll need to find a constant to divide by since Sigma(X1 + X2) * Sigma(X2 + X3) in the denominator of the left hand side will work out to a constant times the variance.
 
Last edited:
  • #10
OK,
I worked the whole thing out like this:
cov(X1+X2,X2+X3)=cov(X1,X2)+cov(X1,X3)+cov(X2,X2)+cov(X2,X3)
the third term is zero, and I plugged in the [tex]\rho[/tex] values that I was given. This leads to:
[tex]\rho_{X1+X2,X2+X3}=\frac{.3\sigma^2+.5\sigma^2+.2\sigma^2}{\sigma_{X1+X2}\sigma_{X2+X3}}[/tex]
I solved for the variances in the denominator by using
[tex]\sigma_{X1+X2}=Var(X1+X2)=Var(X1)+2cov(X1,X2)+var(X2)=\sigma^2+2(.3\sigma^2)+\sigma^2=2.6\sigma^2[/tex]
and similarly for [tex]\sigma_{X2+X3}=2\sigma^2+.4\sigma^2[/tex]
Since all of the variances of X1 X2 X3 are equal. I plug it into my equation for [tex]\rho_{X1+X2,X2+X3}[/tex]
I got:
[tex]\rho_{X1+X2,X2+X3}=\frac{.3 \sigma^2+.5 \sigma^2+.2 \sigma^2}{\sqrt {(2.6\sigma^2)(2.4\sigma^2)}}[/tex]
Which gives me:
[tex]\frac{\sigma^2}{\sigma^2(2.497999199...)}=.400320384[/tex]
BOB says that the answer should be .801, so I'm off by a factor of 2 and i can't FIND IT!
Help
CC
 
Last edited:
  • #11
cov(X2, X2) = ?
 
Last edited:
  • #12
ok,
cov(X2,X2)=var(X2)...which is another[tex]\sigma^2[/tex]? and not zero?
 
  • #13
Yep, and everything else works out correctly (except for a notational quibble about sigma(X1 + X2) instead of sigma^2(X1 + X2))
 
Last edited:
  • #14
Wait wait
I thought that the denominator was supposed to be the standard deviations mulitplied together. Is that what you mean?
 
  • #15
Yes it should be and you took the square root correctly, but you wrote sigma(X1 + X2) = var(X1 + X2) and sigma(X2 + X3) = var(X2 + X3) at one point. Not that it mattered.
 
Last edited:
  • #16
And here's the next one:(It took me all day to get that last one, but dang it, I LEARNED something)
Find the variance of the sum of 10 random variables if each has variance 5 and if each pair has correlation coefficient .5.
Now, before I start messing up lots of sheets of paper, Is this just an expansion of the last one?...and does that mean that [tex]\rho_{X1,X2}=\rho_{X1,X3}=...\rho_{X1,X10}[/tex] and similarly for each pair?
Shove me in the right direction please.
THANK YOU SO MUCH for your pointers on the last one. This stuff is really hard for me.
And I see what you mean about my error.
CC
 
  • #17
Yes, I guess that's what it would mean. But it may be easier to find the covariance between each pair instead of the correlation coefficient before you start expanding. It's not quite the same as the last since you're expanding a variance instead of a covariance, but since var(X) = cov(X, X) you can use the same expansion formula.
 
  • #18
aall right,
Here's what I am doing:
I am using this formula:
[tex]Var\left(\sum_{i=1}^{10} X_i\right)=\sum_{i=1}^{10}Var(X_i)+2\sum\sum_{i<j}Cov(X_i X_j)[/tex]
and I know from what I am given that:
[tex]\rho_{i,j}=.5=\frac{Cov(X_i,X_j)}{\sigma_{i,j}=\sqrt 5}=>(.5 \sqrt 5)=Cov(X_i,X_j)[/tex]
So ultimately I got:
[tex]((10(5)) + .5 \sqrt 5 (9+8+7+6+5+4+3+2+1))=95[/tex]
Is that remotely correct? It seems to be quite large. I don't know what I'm supposed to get, i.e. no BOB answer his time.
Any guidance or hints will be appreciated.
Thanks,
CC
 
Last edited:
  • #19
The 10(5) is right but I don't know what you're doing in the second part. First thing, remember that the definition of the correlation coefficient is the covariance of the two variables divided by the _product_ of the two standard deviations. I don't see how you're summing 9 + 8 + ... + 1 and you forgot the factor of 2.

You're using a more complicated formula than you need to. That's the one my book gives, but if you use the generalized way of expanding the covariance it is easier to understand. Summarizing that again, an expression like var(X1 + X2 + ... + Xn) = cov(X1 + X2 + ... + Xn, X1 + X2 + ... + Xn) is expanded similar to if you were multiplying out (X1 + X2 + ... + Xn)(X1 + X2 + ... + Xn). For each term on the left, you take the covariance of that term and each term on the right, just as you do when expanding the product of two polynomials, except with covariance instead of multiplication.
 
  • #20
Ok,
I think I understand what you're saying, and I do see that I forgot my 2.
Here's how I got the sum(1+2+...+9):
[tex]Var\left(\sum_{i=1}^{10} X_i\right)=\sum_{i=1}^{10}Var(X_i)+2\sum\sum_{i<j}Cov(X_i X_j)[/tex]
gives:
[tex]10(5)+2(cov(X_1X_2)+Cov(X_1 X_3)+Cov(X_1 X_4)+...+Cov(X_1 X_{10})[/tex] nine terms, all [tex]\sqrt 5(.5)[/tex]
continuing on to i=2,
[tex]Cov(X_2 X_3)+Cov(X_2 X_4)+...+Cov(X_2,X_10)=>[/tex]8 terms, all [tex]\sqrt 5(.5)[/tex]
Continuing, when i=3, there are 7 terms, all [tex]\sqrt 5(.5)[/tex]
and so on until i=9 where there's only one term.
factor out the common [tex]\sqrt 5(.5)[/tex]
That's how I got the sum, which is 45, the total number of terms in my expansion there.
My revised total is 150.62, which still seems wrong.
tell me what you think.
CC
 
Last edited:
  • #21
Okay, I get what you're saying about the 1 + ... + 9. I did it a different way.

Your problem is you still don't have the right covariances. This is what you need to use:

cov(x1, x2) / (sigma(x1) * sigma(x2)) = rho
 
  • #22
OOOhhhhhh,
I'm using [tex]\sigma_{i,j}[/tex] when it needs to be [tex]\sigma_i \sigma_j[/tex] which will give me [tex]Cov(X_i X_j)=(.5)(\sqrt 5)(\sqrt 5)=2.5[/tex] which will be:
[tex]10(5)+2(45)(2.5)=275[/tex]
I can't believe that this algebra is messing me up so much. 275 is even bigger. I hope it's right.
CC
 
  • #23
Well, 275 is the answer I got.
 

1. What is a correlation coefficient?

A correlation coefficient is a statistic that measures the strength and direction of the relationship between two variables. It is usually denoted as r and ranges from -1 to 1, with a value of 0 indicating no correlation and values closer to -1 or 1 indicating a stronger correlation.

2. How is a correlation coefficient calculated?

A correlation coefficient is calculated by dividing the covariance of the two variables by the product of their standard deviations. This can be done manually or using statistical software.

3. What does a correlation coefficient of 0 mean?

A correlation coefficient of 0 indicates no linear relationship between the two variables. However, there could still be a non-linear relationship or other types of relationships that are not captured by the correlation coefficient.

4. Can a correlation coefficient be negative?

Yes, a correlation coefficient can be negative, indicating a negative or inverse relationship between the two variables. This means that as one variable increases, the other decreases.

5. How can correlation coefficient be misinterpreted?

Correlation coefficient should not be interpreted as causation. Just because two variables have a strong correlation does not mean that one causes the other. Other factors or variables may be responsible for the observed relationship.

Similar threads

  • Calculus and Beyond Homework Help
Replies
8
Views
1K
  • Calculus and Beyond Homework Help
Replies
7
Views
946
  • Calculus and Beyond Homework Help
Replies
2
Views
948
  • Calculus and Beyond Homework Help
Replies
1
Views
463
  • Calculus and Beyond Homework Help
Replies
18
Views
1K
  • Calculus and Beyond Homework Help
Replies
8
Views
876
  • Calculus and Beyond Homework Help
Replies
7
Views
501
  • Calculus and Beyond Homework Help
Replies
6
Views
855
  • Calculus and Beyond Homework Help
Replies
9
Views
2K
  • Calculus and Beyond Homework Help
Replies
2
Views
544
Back
Top