Function of Random Variables¶
A random variabel \(\mathbf{X}\) with a function \(g(\cdot)\) applied to it results in a new random variable \(\mathbf{Y} = g(\mathbf{X})\). The probability density function (PDF) of the distribution cannot be applied directly to \(g(\cdot)\), instead, it must be derived using the cumulative distribution function (CDF), which results in a new CDF.
Given random variable \(\mathbf{X}\) with normal distribution \(\mathbf{X} \sim \mathcal{N}(\mu, \sigma^2)\), and a function \(g(\mathbf{X}) = a\mathbf{X}+b\). We have:
The CDF of \(\mathbf{Y}\), donated by \(F_\mathbf{Y}\):
To obtain the PDF, take the derivative of the CDF:
Thus,
Example :
Given a random variable \(\mathbf{X}\) with standart normal distribution \(\mathbf{X} \sim \mathcal{N}(0, 1)\), and the function \(g(\mathbf{X}) = \mathbf{X}^2\). The CDF of \(\mathbf{Y}\) is:
Then, the PDF of \(\mathbf{Y}\) is:
where PDF of \(f_\mathbf{X}\) is :
Subtitute \(f_\mathbf{X}\) to \(f_\mathbf{Y}\),