Hi quick question:(adsbygoogle = window.adsbygoogle || []).push({});

Suppose you have a function of random variables given in the following way

Z=X if condition A

Z=Y if condition B

where both X and Y are random variables, and conditions A & B are disjoint.

Then would the expectation of Z be

E[Z]=E[X]*Pr(A)+E[Y]*Pr(B)?

Thanks in advance.

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# E[f(X)] - Expectation of function of rand. var.

**Physics Forums | Science Articles, Homework Help, Discussion**