PDF of X^2: General Method & Question Answered

  • MHB
  • Thread starter nacho-man
  • Start date
  • Tags
    Pdf Writing
In summary, to find the PDF of Y, which is X^2, in terms of the PDF of X, you need to take the derivative of the CDF of Y, which is the integral of the PDF of X from 0 to the square root of y, and then multiply it by the derivative of the upper boundary, which is the square root of y. This general method can be applied to find the PDF of any function of a continuous random variable.
  • #1
nacho-man
171
0
I just started this topic and have a question:

For a positive continuous random variable X, write down the PDF of Y = X^2 in terms of the PDF of X.

So; writing the PDF of X, I get

P(0<X<∞) =integral from 0 to ∞ fx(x)dx

Is this correct? For Y=X^2, wouldn't the pdf be the exact same thing, since the question asks for positive continuous random variables anyway?

Is there a general method, approach I should have about this. I find pdfs to be confusing, the textbooks are heavy on jargon.
 
Last edited by a moderator:
Physics news on Phys.org
  • #2
nacho said:
I just started this topic and have a question:

For a positive continuous random variable X, write down the PDF of Y = X^2 in terms of the PDF of X.

So; writing the PDF of X, I get

P(0<X<∞) =integral from 0 to ∞ fx(x)dx

Is this correct? For Y=X^2, wouldn't the pdf be the exact same thing, since the question asks for positive continuous random variables anyway?

Is there a general method, approach I should have about this. I find pdfs to be confusing, the textbooks are heavy on jargon.

Welcome to MHB, nacho! :)

Since your questions were sufficiently different to warrant their own threads, I have taken the liberty to split them into 2 threads. We prefer 1 question per thread here (unless the questions are parts of the same problem statement).
Now to address your problem, to find a PDF, the general method is to look at the CDF and take its derivative.

In your case the CDF of Y is:
$$P(Y < y) = P(X^2 < y) = P(X < \sqrt y) = \int_{0}^{\sqrt y} f_X(x) dx$$
Note that the lower boundary can be zero, since X is given to be positive.

To find the PDF of Y, you need to differentiate its CDF.
$$f_Y(y) = \frac{d}{dy}P(Y < y)$$
Now supposed $F_X(x)$ is the anti-derivative of $f_X(x)$, which is actually the same as the CDF of X, then you get:
$$f_Y(y) = \frac{d}{dy}P(Y < y) = \frac{d}{dy}\int_{0}^{\sqrt y} f_X(x) dx
=\frac{d}{dy}\Big(F_X(\sqrt y) - 0\Big) = f_X(\sqrt y) \frac{d}{dy}(\sqrt y)$$

Does that answer your question?
 
Last edited:

FAQ: PDF of X^2: General Method & Question Answered

What is the PDF of X^2?

The PDF of X^2 is a probability distribution function that describes the probability of obtaining a specific value of X^2 (chi-squared) in a statistical experiment. It is commonly used in hypothesis testing and goodness-of-fit tests.

How is the PDF of X^2 calculated?

The PDF of X^2 is calculated using the chi-squared distribution formula, which is a function of the degrees of freedom (df) and the observed value of X^2. It can also be calculated using statistical software or tables.

What is the general method for finding the PDF of X^2?

The general method for finding the PDF of X^2 involves determining the degrees of freedom (df) based on the number of variables in the experiment, calculating the chi-squared statistic, and then using the chi-squared distribution formula to find the probability of obtaining that value or a more extreme value.

What is the significance of the PDF of X^2 in hypothesis testing?

The PDF of X^2 is used to determine the probability of obtaining a certain result or a more extreme result if the null hypothesis is true. This allows researchers to assess the likelihood of the observed data and make decisions about the validity of the null hypothesis.

Can the PDF of X^2 be used for any type of data?

The PDF of X^2 is typically used for categorical data, such as counts or frequencies, that can be grouped into categories or bins. It is not suitable for continuous data. However, there are other probability distribution functions that can be used for different types of data.

Back
Top