for continuous random variables only
Suppose where is the pdf of
Let
Bijective transformation
If is differentiable at all values of and is either a decreasing/increasing function such that there is a unique inverse function , then the pdf of is
if
Non-bijective transformation
If the transformation is not one-to-one, for example , we can divide the domain of the random variable into multiple non-overlapping regions. Then we find the pdf of in each of the regions
Multivariable (joint) distributions
Suppose is a set of continuous random variables with joint pdf and let be another set of random variables.
If the functions are differentiable with respect to each of and and are one-to-one correspondent within the range of for which , then the joint pdf of is given by
where the functions are the inverse transformations
If we have less transformations () than random variables , we create new pointless transformations to ensure the Jacobian is a square matrix.
Then we can remove the leftover transformations from the pdf by integrating its marginal.
Examples
As both random variables are independent:
Jacobian:
Joint pdf of
Marginalizing:
The transformation follows a Gamma distribution with parameters