I was wondering if there is a shortcut or an easy way to calculate the expectation of a certain Random variable which is equal to two random variables with different probabilities.
For example: We are given random variables $X[1]$ and $X[2]$ (the numbers in the brackets are indexes) which have normal Gaussian distributions with $E(X[1])=E(X[2])=1$, $Var(X[1])=Var(X[2])=1$, and R.V $Y[1]$ and $Y[2]$ which have exponential distributions with parameter $lambda =2$, such that all of the R.V $X[1],X[2],Y[1]$ and $Y[2]$ are independent. If we define new random variables $Z[1]$ and $Z[2]$ such that $Z[i]$ equals $X[i]$ with probability $1/3$ and equals $Y[i]$ with probability $2/3$ for $i=1,2$, what is, for example, the expectation of $E(Z[1])$ and $E(Z[1]\cdot Z[2])$?
I tried finding the probability distribution of both $Z[1]\cdot Z[2]$ and $Z[1]$ and tried to calculate the respective expectations by integrating which is a rather long and gruesome procedure.
Thanks for any help in advance.
By the law of total expectation we have $$E[Z[i]]=E[E[Z[i]|X[i],Y[i]]]=E[\frac{1}{3}X[i]+\frac{2}{3}Y[i]]=\frac{1}{3}E[X[i]]+\frac{2}{3}E[Y[i]]$$ For the product, $$E[Z[1]Z[2]]=E[E[Z[1]Z[2]|X[1],Y[1],X[2],Y[2]]]=E[\frac{1}{3}X[1]X[2]+\frac{2}{3}Y[1]Y[2]]=\frac{1}{3}E[X[1]]E[X[2]]+\frac{2}{3}E[Y[1]]E[Y[2]]$$ This should solve your problem.