Uniform Distribution Transformation

Click For Summary

Homework Help Overview

The discussion revolves around finding the distribution of a transformed random variable Y = X^2, where X is uniformly distributed on the interval [-1, 1]. Participants explore the implications of the non-monotonic nature of the transformation function and its impact on deriving the cumulative distribution function and probability density function.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning, Assumption checking

Approaches and Questions Raised

  • Participants discuss the challenges posed by the non-monotonic transformation and consider using a generalization of a theorem for transformations of random variables. They also explore direct computation methods for the distribution of Y.

Discussion Status

Some participants have successfully derived the probability density function and are discussing the expected value and variance of Y. There is acknowledgment of potential issues with limits in the calculations, and guidance has been provided regarding the proper handling of the probability density function across its defined range.

Contextual Notes

Participants are navigating the constraints of the problem, including the need to consider the behavior of the transformation function over the specified intervals and the implications for calculating expected values and variances.

Oxymoron
Messages
868
Reaction score
0

Homework Statement


A random variable X is distributed uniformly on [-1,1]. Find the distribution of X^2, its mean and variance.

The Attempt at a Solution


Define a transformation of random variable as Y=X^2. Problem is that the transformation function is not monotonic on the range. If it was just on [0,1] or [-1,0] then it would be monotonic and I could find inverses and hence define the cumulative distribution function, then differentiate to find the distribution.

Is this a correct deduction? Or is there more to it?
 
Physics news on Phys.org
This is correct. So you can not apply the theorem directly because the square function is not increasing or decreasing on [-1,1].

There are two ways around this:
- Using a generalization of the theorem. Maybe you seen this:

Let X have pdf fX, let Y=g(X). Let S be the sample space. Suppose there is a partition of A0,...,Ak of S such that P(X\in A_0)=0 and that fX is continuous on each Ai. Further, suppose that there exists functions g1,...,gk on A1,..., Ak such that
  • g(x)=gi(x) for x in Ai.
  • gi(x) is monotone on Ai.
  • The range Y=gi(Ai) is the same for each i
  • gi-1 has a continuous derivative on Y

Then f_Y(y)=\sum_{i=1}^k{f_X(g_i^{-1}(y))\left|\frac{d}{dy}g_i^{-1}(y)\right|} for y in Y and 0 otherwise.

Apply this theorem with A_0=\emptyset,~A_1=[-1,0],~A_2=[0,1] and g(x)=x2.

- If you haven't seen this theorem, then a direct computation of the distribution of Y=X^2 is also possible:

F_Y(y)=P(Y\leq y)=P(X^2\leq y)=P(-\sqrt{y}<X\leq \sqrt{y})=F_X(\sqrt{y})-F_X(-\sqrt{y})

Now differentiate it to get the pdf.
 
Okay, so when I differentiate I get
f_Y(y) = \frac{\mbox{d}}{\mbox{d}y}F_Y(y) = \frac{\mbox{d}}{\mbox{d}y}F_X(\sqrt{y})\cdot\frac{1}{2\sqrt{y}}-\frac{\mbox{d}}{\mbox{d}y}F_X(-\sqrt{y})\cdot\frac{1}{-2\sqrt{y}}
=f_X(\sqrt{y})\cdot\frac{1}{2\sqrt{y}}-f_X(-\sqrt{y})\cdot\frac{1}{-2\sqrt{y}}
=\frac{1/2}{2\sqrt{y}}-\frac{1/2}{-2\sqrt{y}}
=\frac{1}{2\sqrt{y}}

and this is a PDF since

\int_{0}^{1}\frac{1}{2\sqrt{y}}\mbox{d}y = 1

I can change the limits of the integral because I have already imposed that this integral exists on the partition 0\leq y < 1.
 
Last edited:
I also tried using the theorem and got the same answer.

What about the expected value?

By definition:

E[Y] = \int_{-\infty}^{\infty}y\frac{1}{2\sqrt{y}}\mbox{d}y = \infty

But can I change the limits to 0 and 1 so that

E[Y] = \int_0^1y\frac{1}{2\sqrt{y}}\mbox{d}y = \frac{1}{3}

is this something I can do? Or is the mean (and hence the variance) actually infinity for Y?
 
Oxymoron said:
Okay, so when I differentiate I get
f_Y(y) = \frac{\mbox{d}}{\mbox{d}y}F_Y(y) = \frac{\mbox{d}}{\mbox{d}y}F_X(\sqrt{y})\cdot\frac{1}{2\sqrt{y}}-\frac{\mbox{d}}{\mbox{d}y}F_X(-\sqrt{y})\cdot\frac{1}{-2\sqrt{y}}
=f_X(\sqrt{y})\cdot\frac{1}{2\sqrt{y}}-f_X(-\sqrt{y})\cdot\frac{1}{-2\sqrt{y}}
=\frac{1/2}{2\sqrt{y}}-\frac{1/2}{-2\sqrt{y}}
=\frac{1}{2\sqrt{y}}

This is not entirely correct, you have said f_X(\sqrt{y})=1/2, but this is only true if y\leq 1. So for y>1, you would have f_Y(y)=0. So your density would actually be f_Y(y)=\frac{1}{2\sqrt{y}} if y\in [0,1] and 0 otherwise.<br /> <br /> This fixes your paradox with the calculation of the mean.
 
Yes it does. Thank you micromass, I should be able to go on and calculate the expected value and variance of this pdf.
 
Also note that you don't necessairily need to know the pdf to calculate the variance and the mean, since you have

E[X^2]=\int{x^2f_X(x)dx},~Var(X^2)=E[X^4]-E[X^2]^2=\int{x^4f_X(x)dx}-\left(\int{x^2f_X(x)}\right)^2

Here we have essentially used the more general formula

E[g(X)]=\int{g(x)f_X(x)dx}

which is often called "the law of the lazy statistician" :smile:
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
3K
Replies
5
Views
1K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
7
Views
1K
Replies
9
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
Replies
9
Views
4K
Replies
2
Views
2K
Replies
6
Views
2K
Replies
2
Views
1K