Conditional expectation
Definition (conditional expectation)
open_in_new
For a non-negative of integrable random variable $X$ and an event $B$ of positive probability, define the condition expectation of $X$ given $B$ by $$ \expect(X|B) = \frac{\expect(X1_B)}{\prob(B)}. $$
Law of total expectation
open_in_new
Given disjoint events $(B_n: n\in\N)$ of positive probabilities such that $\bigcup_n B_n = \Omega$, we have $$ \expect(X) = \sum_n \expect(X|B_n) \prob(B_n). $$