How Do You Calculate E[(x+1)^2(y-1)^2] for Independent Variables?

Samwise_geegee
Messages
6
Reaction score
0

Homework Statement


Let x and y be independent random variables with E[x]=1, E[y]=-1, var[x]=1/2, var[y]=2
Calculate E[(x+1)2(y-1)2]


Homework Equations



E[x]=1=μ
E[y]=-1=μ
var[x]=1/2 =E[(x-μ)2]
var[y]=2=E[(x-μ)2]




The Attempt at a Solution



Since x and y are independent,
E[(x+1)2(y-1)2]=E[(x+1)2]*E[(y-1)2]

var[x]=1/2=E[(x-1)2]

var[y]=2=E[(y+1)2

The signs in the equation I need to solve are throwing me off. I feel like I'm missing something simple. Any help is appreciated!
 
Physics news on Phys.org
Samwise_geegee said:

Homework Statement


Let x and y be independent random variables with E[x]=1, E[y]=-1, var[x]=1/2, var[y]=2
Calculate E[(x+1)2(y-1)2]


Homework Equations



E[x]=1=μ
E[y]=-1=μ
var[x]=1/2 =E[(x-μ)2]
var[y]=2=E[(x-μ)2]




The Attempt at a Solution



Since x and y are independent,
E[(x+1)2(y-1)2]=E[(x+1)2]*E[(y-1)2]

var[x]=1/2=E[(x-1)2]

var[y]=2=E[(y+1)2

The signs in the equation I need to solve are throwing me off. I feel like I'm missing something simple. Any help is appreciated!

Sometimes the easiest approach is to use the standard result
\text{Var}(Y) = E(Y^2) - (E Y)^2,
which is true for any random variable having finite mean and variance. (At some point in your life, you should prove it.) You can expand out ##(Y-1)^2## and go on from there.
 
  • Like
Likes 1 person
Thanks Ray!

Thank you for the hint! Does this look right?

E[(x+1)2]*E[(y-1)2]

=(E[X2]+2E[X]+E[1])(E[Y2]-2E[Y]+E[1])

=(Var[X]+E[X]2+2E[X]+E[1])(Var[Y]+E[Y]2-2E[Y]+E[1])

=(.5+1+2+1)(2+1+1+1)=18
 
Last edited:
Thread 'Use greedy vertex coloring algorithm to prove the upper bound of χ'
Hi! I am struggling with the exercise I mentioned under "Homework statement". The exercise is about a specific "greedy vertex coloring algorithm". One definition (which matches what my book uses) can be found here: https://people.cs.uchicago.edu/~laci/HANDOUTS/greedycoloring.pdf Here is also a screenshot of the relevant parts of the linked PDF, i.e. the def. of the algorithm: Sadly I don't have much to show as far as a solution attempt goes, as I am stuck on how to proceed. I thought...
Back
Top