Jacobian

Obtaining the pdf of a transformed variable (using a one-to-one transformation) is simple using the Jacobian (Jacobian of inverse) Y=g(X)X=g1(Y)fY(y)=fX(g1(y))|dxdy|

The modulus ensures that the probability density is positive when the transformation is either increasing or decreasing.

For the two variable case, let X=(X1,X2) denote the random vector. Suppose we have a one-to-one transform (and its inverse) defined as follows Y=T(X)Y=(Y1,Y2)Y1=u1(X1,X2)Y2=u2(X1,X2)T1=(w1(Y1,Y2),w2(Y1,Y2))X1=w1(Y1,Y2X2=w2(Y1,Y2

Then, the pdf is given by the expression fY(y)=fX(w1(y1,y2),w2(y1,y2))|J|J=|x1y1x1y2x2y1x2y2|

If A denotes the support of X, then B=T(A) will denote the support of Y. Everywhere else, the value of pdf for Y will be zero. Refer to the exercises section for a demonstration of this method.

This method is powerful and applies to change of variables when doing integrals as well. fX(x1,x2)dx1dx2=fY(w1(y1,y2),w2(y1,y2))|J|dy1dy2 where J is the same as defined earlier.

The two variable expression extends to multiple variables as well. Suppose the transformations are given by Yi=ui(X1,Xn)i=1,2,,nXi=wi(Y1,Yn)i=1,2,,nfY(y)=fX(w1(y),,wn(y))|J|withJ=|x1y1x1ynxny1xnyn|

However, we may not be always have a one-to-one transformation. The simplest case is Y=X2. In such scenarios, we will partition the space so that each has a one-to-one transform.

For instance, in the above example the partitions will be <x<0 and 0x<. Then, we individually calculate the pdf for Y in all the partitions. If the partitions have an overlap (from the view of support of y), we will sum up the corresponding pmf to get the final pmf.

Continuing with the same example, both the partitions map to 0<≤y<. Hence, after finding the pmf in each partition, we can simply sum it up (due to symmetry of the transform). Refer to the exercises for an illustration of this principle.