Saturday, 25 July 2015

probability - Transformation of Random Variable Y=X2



I'm learning probability, specifically transformations of random variables, and need help to understand the solution to the following exercise:




Consider the continuous random variable X with probability density function f(x)={13x21x2,0elsewhere. Find the cumulative distribution function of the random variable Y=X2.




The author gives the following solution:




For 0y1:FY(y)=P(Yy)=P(X2y)?=P(yXy)=yy13x2dx=29yy.



For 1y4:FY(y)=P(Yy)=P(X2y)?=P(1Xy)=y113x2dx=19+19yy.



For y>4:FY(y)=1.






Previous to this exercise, I've managed to follow the solutions of two similar (obviously simpler) problems for a strictly increasing and strictly decreasing function of X, respectively. However in this problem, I don't understand the computations being done, specifically:





  • How does the three intervals 0y1, 1y4 and y>4 are determined? In the two previous problems I've encountered, we only considered one interval which was identical to the interval where f(x) was non-zero.

  • In the case where 0y1, why does P(X2y)=P(yXy) and not P(Xy)? I have put question marks above the equalities that I don't understand.



I think I have not understand the theory well enough. I'm looking for an answer that will make me understand the solution to this problem and possibly make the theory clearer.


Answer



Let's start by seeing what the density function fX of X tells us about the cumulative distribution function FX of X. Since fX(x)=0 for <x<1, we see that
FX(x)=xfX(t)dt0
in this range. Similarly, since fX(x)=0 in the range 2<x<, we see that

FX(x)=xfX(t)dt=fX(t)dt1
in this range. In other words, the random variable is "supported on the interval [1,2]" in the sense that P(X[1,2])=0.



Now let us consider Y=X2. This variable is clearly non-negative and since X is supported on [1,2], we must have that Y is supported on [0,max. This is intuitively clear because the variable X (with probability 1) takes values in [-1,2] and so X^2 takes values in [0,\max((-1)^2,(2)^2)]. So we only need to understand F_Y(y) in the range y \in [0,4]. Now, we always have



F_Y(y) = P(Y < y) = P(X^2 < y) = P(-\sqrt{y} < X < \sqrt{y}) = \int_{-\sqrt{y}}^{\sqrt{y}} f_X(t) \, dt



but since f_X is defined piecewise, to proceed at this point we need to analyze several cases. We already know that F_Y(y) = 0 if y \leq 0 and F_Y(y) = 1 if y \geq 4.



If 0 \leq y \leq 1 then [-\sqrt{y},\sqrt{y}] is contained in [-1,1] and on [-1,1] the density function is f_X(x) = \frac{1}{3}x^2 so we can write




F_Y(y) = \int_{-\sqrt{y}}^{\sqrt{y}} \frac{1}{3} t^2 \, dt.



However, if 1 < y \leq 4 then -\sqrt{y} < -1 and so the interval of integration splits as [-\sqrt{y}, -1] \cup [-1,\sqrt{y}]. Over the left [-\sqrt{y},-1] part, the density function is zero so the integal will be zero and we are left only with calculating the integral over the right part:



F_Y(y) = \int_{-\sqrt{y}}^{-1} f_X(t) \, dt + \int_{-1}^{\sqrt{y}} f_X(t) \, dt = \int_{-1}^{\sqrt{y}} \frac{1}{3}t^2 \, dt.


No comments:

Post a Comment

real analysis - How to find lim_{hrightarrow 0}frac{sin(ha)}{h}

How to find \lim_{h\rightarrow 0}\frac{\sin(ha)}{h} without lhopital rule? I know when I use lhopital I easy get $$ \lim_{h\rightarrow 0}...