Theory 1

PMF of (any) function of two discrete variables

Suppose W=g(X,Y) and X,Y are discrete RVs.

The PMF of W:

PW(w)=g(x,y)=w(x,y) s.t.PX,Y(x,y)

CDF of (continuous) function of two continuous variables

Suppose W=g(X,Y) and X,Y are continuous RVs, and g is a continuous function.

The CDF of W:

FW(w)=P[Ww]=g(x,y)wfX,Y(x,y)dxdy

If desired, one can then compute the PDF of W by differentiating the continuous CDF:

fW(w)=ddwFW(w)