SERVING THE QUANTITATIVE FINANCE COMMUNITY

• 1
• 2

DoubleTrouble
Topic Author
Posts: 83
Joined: November 9th, 2010, 9:46 pm

### Basic Probability

Hi!I'm dealing with a problem in which I have to calculate Cov(X,Y) where X and Y are N(0,1) which is equivalent to calculating E[XY]. X and Y is not necessarily independent. Is there any trick for how to do this?Best regards,DT

eh
Posts: 494
Joined: March 2nd, 2010, 9:26 am

### Basic Probability

QuoteOriginally posted by: DoubleTroubleHi!I'm dealing with a problem in which I have to calculate Cov(X,Y) where X and Y are N(0,1) which is equivalent to calculating E[XY]. X and Y is not necessarily independent. Is there any trick for how to do this?Best regards,DTif you know the join density f(x,y) then
Last edited by eh on April 5th, 2011, 10:00 pm, edited 1 time in total.

DoubleTrouble
Topic Author
Posts: 83
Joined: November 9th, 2010, 9:46 pm

### Basic Probability

Yes, of course but I was hoping of there being an easier way or some kind of clever trick since the joint density is so messy!

ACD
Posts: 107
Joined: April 19th, 2004, 8:09 am

### Basic Probability

Are they from a multivariate normal distribution or are thy just marginally normally distributed?
Last edited by ACD on April 5th, 2011, 10:00 pm, edited 1 time in total.

DoubleTrouble
Topic Author
Posts: 83
Joined: November 9th, 2010, 9:46 pm

### Basic Probability

QuoteOriginally posted by: ACDAre they from a multivariate normal distribution or are thy just marginally normally distributed?They are not from a multivariate normal distribution. I have X_1, ..., X_n random variables which are all N(0,1).
Last edited by DoubleTrouble on April 5th, 2011, 10:00 pm, edited 1 time in total.

ACD
Posts: 107
Joined: April 19th, 2004, 8:09 am

### Basic Probability

QuoteOriginally posted by: DoubleTroubleQuoteOriginally posted by: ACDAre they from a multivariate normal distribution or are thy just marginally normally distributed?They are not from a multivariate normal distribution. I have X_1, ..., X_n random variables which are all N(0,1).Ok can't really help then, sorry. beyond eh's suggest the only thing I can think of is to do it by MC, if you can simulate from the joint distribution (which I would guess not as this is a fairly obvious thing to do) then you could simulate and empirically calculate the average covariance on the results as an estimate,,,

emac
Posts: 89
Joined: July 7th, 2009, 7:15 pm

### Basic Probability

What is the joint density

quantmeh
Posts: 5974
Joined: April 6th, 2007, 1:39 pm

### Basic Probability

QuoteOriginally posted by: DoubleTroubleHi!I'm dealing with a problem in which I have to calculate Cov(X,Y) where X and Y are N(0,1) which is equivalent to calculating E[XY]. X and Y is not necessarily independent. Is there any trick for how to do this?Best regards,DTdo you know what is a marginal density?to get joint probability from marginals you need additional assumptions

DoubleTrouble
Topic Author
Posts: 83
Joined: November 9th, 2010, 9:46 pm

### Basic Probability

I figured out that it must be a misprint in my instructions. I have proved that the variables must be independent or at least uncorrelated for the result to be possible!But thank you very much for taking your time to answer. I will soon have another question in basic probability!/DT

DoubleTrouble
Topic Author
Posts: 83
Joined: November 9th, 2010, 9:46 pm

### Basic Probability

Another problem that I can't solve. I need to prove that if (X,Y) is a normally distributed random vector and both X and Y have 0 mean but unknown variance (different variance for X and Y of course), then:E[X^2 Y^2] >= E[E^2]E[Y^2] i.e. X^2 and Y^2 are positively correlated.This has bothered me to insane levels. I have tried everything I can figure (even trying to use definition of expected value i.e. integrals). I think that using characteristic functions is the best way to go, but I can't get anything good!
Last edited by DoubleTrouble on April 6th, 2011, 10:00 pm, edited 1 time in total.

bearish
Posts: 6186
Joined: February 3rd, 2011, 2:19 pm

### Basic Probability

Let W and Z be two standard independent normals and write X=aW, Y=b(cW+sqrt(1-c^2)Z); where a and b are the standard deviations of X and Y, and c is the correlation between X and Y. Direct computation then gives E(X^2Y^2)=a^2b^2*(1+2c^2).

quantmeh
Posts: 5974
Joined: April 6th, 2007, 1:39 pm

### Basic Probability

QuoteOriginally posted by: DoubleTroubleE[X^2 Y^2] >= E[E^2]E[Y^2] lookup jensen's inequality

DoubleTrouble
Topic Author
Posts: 83
Joined: November 9th, 2010, 9:46 pm

### Basic Probability

QuoteOriginally posted by: bearishLet W and Z be two standard independent normals and write X=aW, Y=b(cW+sqrt(1-c^2)Z); where a and b are the standard deviations of X and Y, and c is the correlation between X and Y. Direct computation then gives E(X^2Y^2)=a^2b^2*(1+2c^2).Thank you for your reply. But if you define Y like that you will not get variance b and won't X and Y be independent if you do it like that?

DoubleTrouble
Topic Author
Posts: 83
Joined: November 9th, 2010, 9:46 pm

### Basic Probability

QuoteOriginally posted by: quantmehQuoteOriginally posted by: DoubleTroubleE[X^2 Y^2] >= E[E^2]E[Y^2] lookup jensen's inequalityI've never used it in 2-dim before. Is that okay? And also, X^2 Y^2 is not convex in R^2!

bearish
Posts: 6186
Joined: February 3rd, 2011, 2:19 pm

### Basic Probability

If you cannot work through the algebra, at least do a little experiment in Excel. X and Y will not be independent, they will have correlation c, and b is the standard deviation of Y (the square root of the variance).

Wilmott.com has been "Serving the Quantitative Finance Community" since 2001. Continued...

 JOBS BOARD

Looking for a quant job, risk, algo trading,...? Browse jobs here...

GZIP: On