A calculus of the absurd
\(\newcommand{\footnotename}{footnote}\)
\(\def \LWRfootnote {1}\)
\(\newcommand {\footnote }[2][\LWRfootnote ]{{}^{\mathrm {#1}}}\)
\(\newcommand {\footnotemark }[1][\LWRfootnote ]{{}^{\mathrm {#1}}}\)
\(\let \LWRorighspace \hspace \)
\(\renewcommand {\hspace }{\ifstar \LWRorighspace \LWRorighspace }\)
\(\newcommand {\mathnormal }[1]{{#1}}\)
\(\newcommand \ensuremath [1]{#1}\)
\(\newcommand {\LWRframebox }[2][]{\fbox {#2}} \newcommand {\framebox }[1][]{\LWRframebox } \)
\(\newcommand {\setlength }[2]{}\)
\(\newcommand {\addtolength }[2]{}\)
\(\newcommand {\setcounter }[2]{}\)
\(\newcommand {\addtocounter }[2]{}\)
\(\newcommand {\arabic }[1]{}\)
\(\newcommand {\number }[1]{}\)
\(\newcommand {\noalign }[1]{\text {#1}\notag \\}\)
\(\newcommand {\cline }[1]{}\)
\(\newcommand {\directlua }[1]{\text {(directlua)}}\)
\(\newcommand {\luatexdirectlua }[1]{\text {(directlua)}}\)
\(\newcommand {\protect }{}\)
\(\def \LWRabsorbnumber #1 {}\)
\(\def \LWRabsorbquotenumber "#1 {}\)
\(\newcommand {\LWRabsorboption }[1][]{}\)
\(\newcommand {\LWRabsorbtwooptions }[1][]{\LWRabsorboption }\)
\(\def \mathchar {\ifnextchar "\LWRabsorbquotenumber \LWRabsorbnumber }\)
\(\def \mathcode #1={\mathchar }\)
\(\let \delcode \mathcode \)
\(\let \delimiter \mathchar \)
\(\def \oe {\unicode {x0153}}\)
\(\def \OE {\unicode {x0152}}\)
\(\def \ae {\unicode {x00E6}}\)
\(\def \AE {\unicode {x00C6}}\)
\(\def \aa {\unicode {x00E5}}\)
\(\def \AA {\unicode {x00C5}}\)
\(\def \o {\unicode {x00F8}}\)
\(\def \O {\unicode {x00D8}}\)
\(\def \l {\unicode {x0142}}\)
\(\def \L {\unicode {x0141}}\)
\(\def \ss {\unicode {x00DF}}\)
\(\def \SS {\unicode {x1E9E}}\)
\(\def \dag {\unicode {x2020}}\)
\(\def \ddag {\unicode {x2021}}\)
\(\def \P {\unicode {x00B6}}\)
\(\def \copyright {\unicode {x00A9}}\)
\(\def \pounds {\unicode {x00A3}}\)
\(\let \LWRref \ref \)
\(\renewcommand {\ref }{\ifstar \LWRref \LWRref }\)
\( \newcommand {\multicolumn }[3]{#3}\)
\(\require {textcomp}\)
\(\newcommand {\LWRmarginnote }[1][]{}\)
\(\newcommand {\marginnote }[2][]{\qquad {\small \textrm {#2}}\LWRmarginnote }\)
\(\def \LWRsidenote {1}\)
\(\newcommand {\sidenotemark }[1][\LWRsidenote ]{{}^{\mathrm {#1}}}\)
\(\newcommand {\intertext }[1]{\text {#1}\notag \\}\)
\(\let \Hat \hat \)
\(\let \Check \check \)
\(\let \Tilde \tilde \)
\(\let \Acute \acute \)
\(\let \Grave \grave \)
\(\let \Dot \dot \)
\(\let \Ddot \ddot \)
\(\let \Breve \breve \)
\(\let \Bar \bar \)
\(\let \Vec \vec \)
\(\newcommand {\nicefrac }[3][]{\mathinner {{}^{#2}\!/\!_{#3}}}\)
\(\newcommand {\unit }[2][]{#1 \mathinner {#2}}\)
\(\newcommand {\unitfrac }[3][]{#1 \mathinner {{}^{#2}\!/\!_{#3}}}\)
\(\newcommand {\bm }[1]{\boldsymbol {#1}}\)
\(\require {mathtools}\)
\(\newenvironment {crampedsubarray}[1]{}{}\)
\(\newcommand {\smashoperator }[2][]{#2\limits }\)
\(\newcommand {\SwapAboveDisplaySkip }{}\)
\(\newcommand {\LaTeXunderbrace }[1]{\underbrace {#1}}\)
\(\newcommand {\LaTeXoverbrace }[1]{\overbrace {#1}}\)
\(\newcommand {\LWRmultlined }[1][]{\begin {multline*}}\)
\(\newenvironment {multlined}[1][]{\LWRmultlined }{\end {multline*}}\)
\(\let \LWRorigshoveleft \shoveleft \)
\(\renewcommand {\shoveleft }[1][]{\LWRorigshoveleft }\)
\(\let \LWRorigshoveright \shoveright \)
\(\renewcommand {\shoveright }[1][]{\LWRorigshoveright }\)
\(\newcommand {\shortintertext }[1]{\text {#1}\notag \\}\)
\(\newcommand {\vcentcolon }{\mathrel {\unicode {x2236}}}\)
\(\newcommand {\Var }{\operatorname {Var}}\)
\(\newcommand {\Expected }{\operatorname {E}}\)
\(\newcommand {\abs }[1]{\left \lvert #1\right \rvert }\)
\(\newcommand {\norm }[1]{\left \lVert #1\right \rVert }\)
\(\newcommand {\rbrackets }[1]{\left (#1\right )}\)
\(\newcommand {\sbrackets }[1]{\left [#1\right ]}\)
\(\newcommand {\cbrackets }[1]{\left \{#1\right \}}\)
\(\newcommand {\RE }{\operatorname {Re}}\)
\(\newcommand {\IM }{\operatorname {IM}}\)
\(\newcommand {\Span }{\operatorname {span}}\)
27.6 Transformations of continuous random variables
Imagine we have a random variable \(X\), with probability density function
\(\seteqnumber{0}{27.}{5}\)
\begin{equation}
f_X(x) = \begin{cases} 4x^3 & 0 < x \leqq 1 \\ 0 & \text {otherwise} \end {cases}
\end{equation}
and we want to find the probability density function for the random variable
\(\seteqnumber{0}{27.}{6}\)
\begin{equation}
Y = \frac {1}{X^4}
\end{equation}
The first thing to do is to find the cumulative probability function for \(X\), (by integrating)
\(\seteqnumber{0}{27.}{7}\)
\begin{align}
F_X(x) & = \begin{cases} 0 & x \leqq 0 \\ \int _0^{x} 4x^3 dx & 0 < x \leqq 1 \\ 1 & x > 1 \end {cases} \\ & = \begin{cases} 0 & x \leqq 0 \\ x^4 & 0 < x \leqq 1 \\ 1 & x > 1 \end {cases}
\end{align}
Then, we can find the cumulative probability function for \(Y\) in terms of the cumulative probability function for \(X\). From the definition of the cumulative probability function we know that
\(\seteqnumber{0}{27.}{9}\)
\begin{equation}
F_Y(y) = P(Y \leqq y)
\end{equation}
Then as \(Y=\frac {1}{X^4}\) we can substitute \(X\) for \(Y\)
\(\seteqnumber{0}{27.}{10}\)
\begin{equation}
P(Y \leqq y) = P(\frac {1}{X^4} < y)
\end{equation}
We can then manipulate this into some function of \(P(X < g(y))\) (where \(g(y)\) is a function we need to determine).
\(\seteqnumber{0}{27.}{11}\)
\begin{align}
P\left (Y \leqq y\right ) & = P\left (\frac {1}{X^4} < y\right ) \\ & = P\left (X^4 > \frac {1}{y}\right ) \\ & = P\left (X > \sqrt [4]{\frac {1}{y}}\right ) \\ & = 1- P\left (X < \sqrt [4]{\frac {1}{y}}\right
)
\end{align}
Note that in the second step we flipped the inequality because we took the reciprocal of both functions, and the reciprocal function makes bigger values smaller (and vice-versa) so to keep the inequality true, we had to flip the signs. From here, we plug into \(F_X(x)\).
\(\seteqnumber{0}{27.}{15}\)
\begin{align}
P\left (Y \leqq y\right ) & = 1- P\left (X < \sqrt [4]{\frac {1}{y}}\right ) \\ & = 1- F_X\left (\sqrt [4]{\frac {1}{y}}\right ) \\ & = \begin{cases} 1 - 0 & x \leqq 0 \\ 1 - \left (\sqrt [4]{\frac {1}{y}}\right )^4
& 0 < x \leqq 1 \\ 1 - 1 & x > 1 \end {cases} \\ & = \begin{cases} 1 & x \leqq 0 \\ 1- \frac {1}{y} & 0 < x \leqq 1 \\ 0 & x > 1 \end {cases}
\end{align}
We also need to rewrite bounds in terms of \(y\), rather than \(x\). As \(Y=\frac {1}{X^4}\) we can write
\(\seteqnumber{0}{27.}{19}\)
\begin{equation}
X = Y^{-\frac {1}{4}}
\end{equation}
And thus that
\(\seteqnumber{0}{27.}{20}\)
\begin{align}
P\left (Y \leqq y\right ) & = \begin{cases} 1 & y^{-\frac {1}{4}} \leqq 0 \\ 1- \frac {1}{y} & 0 < y^{-\frac {1}{4}} \leqq 1 \\ 0 & y^{-\frac {1}{4}} > 1 \end {cases} \\ & = \begin{cases} 1 & y \geqq \infty
\\ 1- \frac {1}{y} & y < \infty \text { and } y \geqq 1 \\ 0 & y < 1 \end {cases} \\ & = \begin{cases} 1- \frac {1}{y} & y \geqq 1 \\ 0 & y < 1 \end {cases}
\end{align}
Note that here it is assumed that \(\frac {1}{0} = \infty \) (it makes it nice and easy to work with the bounds).
As we now have the cumulative probability function for \(Y\), the final step is to differentiate to get the probability density function.
\(\seteqnumber{0}{27.}{23}\)
\begin{align}
\frac {d}{dx} \left [P\left (Y \leqq y\right )\right ] & = \begin{cases} \frac {d}{dx} \left [1- \frac {1}{y}\right ] & y \geqq 1 \\ 0 & y < 1 \end {cases} \\ & = \begin{cases} \frac {d}{dx} \left [ - y^{-1} \right ]
& y \geqq 1 \\ 0 & y < 1 \end {cases} \\ & = \begin{cases} y^{-2} & y \geqq 1 \\ 0 & y < 1 \end {cases} \\ & = f_Y(y)
\end{align}