Conditional Distributions¶
Discrete Random Variables¶
Conditioning on an Event¶

Conditional PMF and Expectation¶
We consider conditioning on an event \(A\). Assuming that the probability that event \(A\) occurs is positive, i.e., \(\mathbf{P}(A)>0\), the conditional PMF of a random variable \(X\) given that \(A\) occurred is
Like ordinary probabilities, it is normalized, i.e.,
The conditional expectation of \(X\) is then
Given a function of \(X\), \(g(X)\), its conditional expectation is
Total Expectation Theorem¶
If we divide the sample space into \(n\) disjoint events \(A_1,\ldots,A_n,\) then the expectation of \(X\) is
Conditioning on another Random Variable¶
We can also condition a random variable on another random variable. The conditional PMF of \(X\) given that \(Y=y\) is defined by
assuming that \(p_Y(y)>0\). We can also condition on two random variables with the conditional PMF being
Conditional Expectation¶
The conditional expectation of a random variable \(X\) conditioned on \(Y=y\) is
Moreover, for any function \(g(X)\),
Independence¶
There are several statements we can make when two random variables, \(X\) and \(Y\), are independent. First,
Moreover, \(g(X)\) and \(h(Y)\) are also independent, and
Finally, the variance of their sum is
Continuous Random Variables¶
Conditioning on an Event¶
Total Probability Theorem¶
Conditioning on another Random Variable¶
If \(f_Y(y)>0,\)
Independence¶
If \(X\) and \(Y\) are independent,