How to Calculate E(XY) for Random Variables X and Y?

Click For Summary

Discussion Overview

The discussion revolves around calculating the expectation of the product of two random variables, X and Y, specifically E(XY). Participants explore various formulations and conditions under which this expectation can be computed, including relationships between the expectations of X and Y and their variances.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant initially proposes that E(XY) can be calculated as E(aZ, bZ) leading to E(XY) = ab*E(Z^2), but questions the validity of this approach.
  • Another participant points out a misunderstanding regarding the nature of E(X) and suggests that there are generally no shortcuts for computing the expectation of a product of random variables.
  • A later post clarifies the problem by stating E(X) = aE(Y) with a constant a less than 1, seeking further guidance on calculating E(XY).
  • Some participants express that the information provided is insufficient to calculate E(XY) and inquire about additional necessary details.
  • Discussion includes the suggestion to compute E(XY) directly if the distributions of X and Y are known, rather than relying on derived relationships.
  • One participant suggests a method involving conditional expectations, but another challenges the assumption that E(X|Y) = aY, providing a counterexample to illustrate the point.

Areas of Agreement / Disagreement

Participants do not reach a consensus on how to calculate E(XY) due to differing views on the relationships between the random variables and the information required for the calculation.

Contextual Notes

Participants note limitations in the information available, such as the lack of distributions for X and Y, and the implications of dependencies between the variables on the calculations of expectations and covariances.

bioman
Messages
11
Reaction score
0
I have two random variables X and Y, and I need to calculate E(XY). The expectation of X, E(X) = aZ, and the expectation of Y, E(Y) = bZ, where a and b are known constants and Z is a random variable.

So the question is how would I calculate E(XY)?
I was thinking that I could do the following:
E(XY) = E(aZ,bZ)
=> E(XY) = ab*E(ZZ)
=> E(XY) = ab*E(Z^2)

Is it correct to do this?? or how would I do it?
 
Physics news on Phys.org
E(X) can't be equal to aZ: E(X) is a number, and aZ is a random variable. Are you sure you stated the problem right?


Anyways, there generally aren't short-cuts to computing the expectation of a product of random variables.
 
Yes, you're right I've stated the problem wrong! I can restate in another, much easier way.

So basically I need to calculate E(XY), where E(X) = aE(Y), where the constant a is less than 1.

So any ideas on how to go about calculating E(XY)??
Any help or directions would be great!
 
Last edited:
bioman said:
So basically I need to calculate E(XY), where E(X) = aE(Y), where the constant a is less than 1.

So any ideas on how to go about calculating E(XY)??
Can't be done with the information given.
 
What more information would I need to calculate this?
For example, I know what the E(Y) and Var(Y) is going to be, I also know what the constant a is going to be.
So I know what the mean and variance of X and Y are going to be and the constant a, so what more information do I need to get E(XY)?

Overall I'm trying to calculate the Cov(XY) = E(XY) - E(X)E(Y), and seeming as X and Y are dependent, shouldn't I be able to work out the covariance between them??
I think I have all the information necessary to get this expression, I'm probably just not supplying it to you here?
 
Do you have their distribution? You can compute E(XY) directly, rather than looking for a shortcut involving other things you can compute.
 
No unfortunately I'm unable to get the distribution of XY (if that's what you were talking about).
I just have the mean and variance of X and Y to play with and the constant a.

So when you say
You can compute E(XY) directly
Is there a general formulae for calculating E(XY) for dependent variables??
I could only find a formulae for independent variables.
 
E[XY] = \sum_{a, b} a b \mathop{\mathrm{P}}(X = a \mathrm{\ and\ } Y = b)
(Or an integral, if appropriate)
 
Last edited:
Ok thanks for that, I'll have a look into it.

Also I was thinking maybe I could do it the following way, but I'm not sure my
"random variable algebra" is correct:

So again suppose I need to calculate E(XY), where E(X) = aE(Y), where the constant a <= 1.
We have E(X|Y) = aY
=> E(YX|Y) = aYY = aY^2
=> E(XY) = E(E(YX|Y)) = E(aY^2)
=> E(XY) = aE(Y^2)

Would this be correct??
 
  • #10
bioman said:
Ok thanks for that, I'll have a look into it.

Also I was thinking maybe I could do it the following way, but I'm not sure my
"random variable algebra" is correct:

So again suppose I need to calculate E(XY), where E(X) = aE(Y), where the constant a <= 1.
We have E(X|Y) = aY
=> E(YX|Y) = aYY = aY^2
=> E(XY) = E(E(YX|Y)) = E(aY^2)
=> E(XY) = aE(Y^2)

Would this be correct??
You say you are given that E[X]=aE[Y]. This does not imply that E[X|Y]=aY. As an example, suppose X\sim N(a,1), Y\sim N(1,1), and they are independent. Then E[X]=a=a\cdot 1=aE[Y], but E[X|Y]=E[X]=a. Clearly, a\ne aY.

If you are given that E[X|Y]=aY, then your calculations are correct.
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 30 ·
2
Replies
30
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K