Deriving the chi-square density function

In summary, to derive the density function of a chi-square random variable ||\mathbf{X}||^2, one should perform three steps: 1) For n = 1, the PDF is f_{X^2_1}(x) = \frac{1}{\sqrt{2\pi x}}\exp\left(-\frac{x}{2}\right); 2) For any n, the PDF satisfies the recursive relation f_{X_{n+2}^2}(x) = \frac{x}{n}f_{X_n^2}(x); and 3) Using the recursive relation and the PDFs for n = 1 and n = 2, the density for n ≥
  • #1
jone
6
0
Homework Statement
Consider a standard i.i.d. Gaussian random vector [itex]\mathbf{X} = [X_1 \cdot \cdot \cdot X_n]^T[/itex] and its squared magnitude
[itex]||\mathbf{X}||^2 = \sum_{i = 1}^nX_i^2[/itex].
According to my textbook, to derive the density function of a chi-square random variable [itex]||\mathbf{X}||^2 [/itex], one should perform three steps:

1. For n = 1, show that the PDF is
[itex]
f_{X^2_1}(x) = \frac{1}{\sqrt{2\pi x}}\exp\left(-\frac{x}{2}\right)
[/itex]

2. For any n, show that the PDF satisfies the recursive relation
[itex]f_{X_{n+2}^2}(x) = \frac{x}{n}f_{X_n^2}(x)[/itex]

3. Using the recursive relation as well as the PDF:s for n = 1 and n = 2, find the density for n ≥ 3.

The attempt at a solution

I did step 1 using the CDF-method, so I don't need any help with that. I was thinking step 2 could be proven by induction and this is where I'm stuck. To prove by induction I first show the recursive relation for n = 1:
[itex]f_{X_3^2}(x) = xf_{X_1^2}(x) = \squrt{\frac{x}{2\pi}}\exp\left(-\frac{x}{2}\right)[/itex].
I tried to do that using the CDF method:
[itex]
P(X_1^2 + X_2^2 + X_3^2 < x) = \int_{x_1^2 + x_2^2 + x_3^2<x}\frac{1}{(2\pi)^{3/2}}\exp\left(-\frac{x_1^2 + x_2^2 + x_3^2}{2}\right)dx_1dx_2dx_3
[/itex]

Changing to spherical coordinates and integrating I get
[itex]
P(X_1^2 + X_2^2 + X_3^2 < x) = \frac{2}{\sqrt{2\pi}}\int_0^{\sqrt{x}}\exp\left(-\frac{r^2}{2}\right)r^2dr
[/itex]

Differentiating back gives
[itex]
f_{X_3^2}(x) = \frac{2x}{\sqrt{2\pi}}\exp\left(-\frac{x}{2}\right)
[/itex]
But this is not what the recursive relation gives, and I don't see why. Although I didn't obtain the correct result, next I have to show that
[itex]f_{X_{m+1+2}^2}(x) = \frac{x}{m+1}f_{X_{m+1}^2}(x)[/itex].
I'm not sure I know how to prove that. Maybe there is another way to show the recursive relation.
 
Last edited:
Physics news on Phys.org
  • #2
Can you help me with this?

Hi there,

Thank you for sharing your attempt at solving this problem. It seems like you are on the right track, but there are a few things that could be improved to reach the desired result.

Firstly, in your attempt at step 2, you are using the CDF method to find the PDF. While this can work in some cases, it is not the most efficient way to prove the recursive relation. Instead, I would recommend using the definition of the PDF, which is the derivative of the CDF. This will allow you to directly manipulate the PDF and show the recursive relation.

Secondly, in your attempt at showing the recursive relation for n=1, there are a few errors. The first one is that the equation you wrote down is not the correct CDF for n=1. The correct CDF for n=1 is P(X_1^2<x) = \frac{1}{\sqrt{2\pi}}\int_0^{\sqrt{x}}\exp\left(-\frac{t^2}{2}\right)dt. Notice that I have replaced the x's in your equation with t's, as the integration variable should be different from the variable of the function you are integrating.

The second error is that you have used the wrong integration limits when changing to spherical coordinates. The correct limits are r=0 to \sqrt{x}, \theta=0 to \pi, and \phi=0 to 2\pi. I would recommend reviewing the process of changing to spherical coordinates to make sure you understand it fully.

Finally, to prove the recursive relation for n=m+1, you can use the result you have obtained for n=m. This will involve integrating over the variable x_m+1, and then using the result for n=m in the remaining integral. This should lead you to the desired result.

I hope this helps and good luck with your proof! Let me know if you have any further questions.
 

1. What is the chi-square density function?

The chi-square density function is a probability distribution that is used to determine the likelihood of obtaining a certain set of values from a sample. It is often used in statistical analysis to test the significance of relationships or differences between variables.

2. How is the chi-square density function derived?

The chi-square density function is derived by taking the sum of squared deviations from the expected values and dividing it by the expected values. This is then multiplied by a constant factor to create a standardized distribution.

3. What is the significance of the degrees of freedom in the chi-square density function?

The degrees of freedom in the chi-square density function represent the number of independent variables in the data set. This value is used to determine the critical values for the chi-square test, which is used to determine the significance of the relationship between variables.

4. How is the chi-square density function used in hypothesis testing?

The chi-square density function is used in hypothesis testing by comparing the calculated chi-square value with the critical value from a chi-square table. If the calculated value is greater than the critical value, it indicates that there is a significant relationship between the variables being tested.

5. Are there any limitations to using the chi-square density function?

Yes, there are some limitations to using the chi-square density function. It is most effective when the sample size is large and the expected values are at least 5 for each category. Additionally, it assumes that the data follows a normal distribution, so it may not be suitable for skewed data.

Similar threads

  • Calculus and Beyond Homework Help
Replies
2
Views
651
  • Calculus and Beyond Homework Help
Replies
19
Views
908
Replies
1
Views
567
  • Calculus and Beyond Homework Help
Replies
4
Views
220
  • Calculus and Beyond Homework Help
Replies
9
Views
787
  • Calculus and Beyond Homework Help
Replies
6
Views
1K
  • Calculus and Beyond Homework Help
Replies
1
Views
454
  • Calculus and Beyond Homework Help
Replies
2
Views
1K
  • Calculus and Beyond Homework Help
Replies
20
Views
442
  • Calculus and Beyond Homework Help
Replies
7
Views
797
Back
Top