Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Random variable
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Example 4=== Suppose <math>X</math> is a random variable with a [[normal distribution]], whose density is :<math> f_X(x) = \frac{1}{\sqrt{2\pi\sigma^2}}e^{-(x-\mu)^2/(2\sigma^2)}.</math> Consider the random variable <math> Y = X^2.</math> We can find the density using the above formula for a change of variables: :<math>f_Y(y) = \sum_{i} f_X(g_{i}^{-1}(y)) \left| \frac{d g_{i}^{-1}(y)}{d y} \right|. </math> In this case the change is not [[monotonic]], because every value of <math>Y</math> has two corresponding values of <math>X</math> (one positive and negative). Differently from the previous example, in this case however, there is no symmetry and we have to compute the two distinct terms: :<math>f_Y(y) = f_X(g_1^{-1}(y))\left|\frac{d g_1^{-1}(y)}{d y} \right| +f_X(g_2^{-1}(y))\left| \frac{d g_2^{-1}(y)}{d y} \right|.</math> The inverse transformation is :<math>x = g_{1,2}^{-1}(y) = \pm \sqrt{y}</math> and its derivative is :<math>\frac{d g_{1,2}^{-1}(y)}{d y} = \pm \frac{1}{2\sqrt{y}} .</math> Then, :<math> f_Y(y) = \frac{1}{\sqrt{2\pi\sigma^2}} \frac{1}{2\sqrt{y}} (e^{-(\sqrt{y}-\mu)^2/(2\sigma^2)}+e^{-(-\sqrt{y}-\mu)^2/(2\sigma^2)}) . </math> This is a [[noncentral chi-squared distribution]] with one [[degree of freedom (statistics)|degree of freedom]].
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)