What Is the PDF of X^2 for a Uniformly Distributed Variable X?

In summary, the conversation discusses the probability distribution function of a random variable X with a uniform distribution between [0,2] and how to calculate the probability distribution function of X^2. The two methods mentioned are using logical reasoning and applying the change-of-variables rule for PDFs.
  • #1
Tamis
8
0
Oke this is a simple question but it has me a bit stumped.

Given a random variable [itex]X[/itex] with a uniform probability distribution between [0,2].

What is the probability distribution function (pdf) of [itex]X^2[/itex] ?
 
Last edited:
Physics news on Phys.org
  • #2
Caclulate the cumulative distribution of [itex] X^2 [/itex] by integration. Then find it's pdf by differentiating its cumulative.
 
  • #3
Tamis said:
Oke this is a simple question but it has me a bit stumped.

Given a random variable [itex]X[/itex] with a uniform probability distribution between [0,2].

What is the probability distribution function (pdf) of [itex]X^2[/itex] ?

Well, let's think through it logically. According to what you have said, the probability distribution function for ##X## is ##P(X=k)=\left\{\begin{matrix} 1/2 & k\in [0,2] \\ 0 & k\not\in [0,2] \end{matrix}\right.##

If ##X## is between 0 and 2, then ##X^2## is between 0 and 4. Since we square the stochastic variable, we square its pdf to attain the probability distribution.

Thus, our new pdf is given by ##P(X^2=k)=\left\{\begin{matrix} 1/4 & k\in [0,4] \\ 0 & k\not\in [0,4] \end{matrix}\right.##.
 
  • #4
we square its pdf to attain the probability distribution.
That isn't correct. Do the integration instead.

[itex] P(X^2 \le x) = P( 0 \le X \le \sqrt{x}) [/itex] since, in this particular problem, [itex] X [/itex] has zero probability of being in [itex] [-\sqrt{x},0] [/itex].
For [itex] 0 \le x \le 4 [/itex] , the cumulative is given by:
[itex] P(X^2 \le x) = \int_0^{\sqrt{x}} \frac{1}{2} dx [/itex]
 
  • #5
Thnx Stephen! that was exactly what i was looking for!
 
  • #6
Stephen Tashi said:
That isn't correct. Do the integration instead.

[itex] P(X^2 \le x) = P( 0 \le X \le \sqrt{x}) [/itex] since, in this particular problem, [itex] X [/itex] has zero probability of being in [itex] [-\sqrt{x},0] [/itex].
For [itex] 0 \le x \le 4 [/itex] , the cumulative is given by:
[itex] P(X^2 \le x) = \int_0^{\sqrt{x}} \frac{1}{2} dx [/itex]
That makes sense...but why doesn't my answer work? I'm off by a factor of ##\frac{1}{\sqrt{x}}##. :confused:

Edit: Derp. The square root of a positive real number greater than 1 is a smaller positive real number. Thus, there is a skew. Sorry. Ignore me while I sit in the corner of shame.:-p
 
Last edited:
  • #7
This problem is an example of the fact that the pdf f(x) of a continuous random variable X doesn't really have the interpretation "f(x) is the probability that X = x".

If it did have that interpretation then we could claim "the probability that X^2 = x) = the probability that X = sqrt(x) or x = - sqrt(x)), which in this problem is the probability that X = sqrt(x), which is the constant 1/2 for x in [0,4]".

Even though thinking about a pdf in such a manner gives the wrong answer in this problem, there are many other situations in probability theory where thinking about the pdf in that wrong way does suggest the correct formula.
 
  • #8
Another way to solve this type of problem is the change-of-variables rule for PDFs.

The method Stephen Tashi described is also useful. IMO it is a very good idea to do some simple practice problems (like this one) with both methods.
 

Related to What Is the PDF of X^2 for a Uniformly Distributed Variable X?

1. What is a random variable?

A random variable is a numerical value that is assigned to each outcome of a random event. It is used to represent uncertain or random quantities in a mathematical model.

2. What is the difference between a discrete and continuous random variable?

A discrete random variable can only take on a finite or countable number of values, while a continuous random variable can take on any value within a certain range. For example, the number of heads in 10 coin flips is a discrete random variable, while the height of a person is a continuous random variable.

3. How is a probability distribution related to random variables?

A probability distribution is a mathematical function that describes the likelihood of each possible outcome of a random variable. It assigns a probability to each possible value of the random variable, and the sum of all probabilities is equal to 1.

4. What is the expected value of a random variable?

The expected value of a random variable is the average value that we would expect to obtain if we repeated the random experiment an infinite number of times. It is calculated by multiplying each possible outcome by its probability and summing them all together.

5. Can you give an example of a real-life application of random variables?

One example of a real-life application of random variables is in predicting the stock market. Stock prices are influenced by many random factors, making them a perfect example of a random variable. By using probability and statistical models, we can make predictions about the future performance of stocks.

Similar threads

  • Set Theory, Logic, Probability, Statistics
Replies
30
Views
3K
  • Set Theory, Logic, Probability, Statistics
Replies
7
Views
834
  • Set Theory, Logic, Probability, Statistics
Replies
3
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
6
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
8
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
3
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
1
Views
523
  • Set Theory, Logic, Probability, Statistics
Replies
1
Views
239
  • Set Theory, Logic, Probability, Statistics
Replies
5
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
1
Views
1K
Back
Top