Conditional Distributions and Independence of Two Random Variables
Condition first, then normalize
For discrete variables, P(X=x | Y=y) is P(X=x, Y=y)/P(Y=y), provided P(Y=y) is positive. The denominator is the probability of the condition, so the conditional probabilities over all x sum to 1.
For continuous variables, the matching density rule is fX|Y(x|y) = fX,Y(x,y)/fY(y) wherever the marginal density is positive.
Independence is stronger than zero covariance: it requires p(x,y) = pX(x)pY(y) for every supported pair, equivalently a conditional distribution that equals the corresponding marginal.
For a lesson example, if p(0,0)=0.27, p(0,1)=0.19, p(1,0)=0.21, and p(1,1)=0.33, then P(X=1|Y=1)=0.33/0.52, whereas P(X=1)=0.54; the variables are not independent.
For two discrete random variables with positive marginal probabilities on their support, which condition establishes independence?
A joint pmf has P(0,0)=0.18, P(0,1)=0.12, P(1,0)=0.42, and P(1,1)=0.28, where the first coordinate is X. What is P(X=1 | Y=1)?