Protective index: Difference between revisions

From formulasearchengine
Jump to navigation Jump to search
en>Edgar181
m {{LD50}}
 
en>Dewritech
clean up, typo(s) fixed: , → , , et al → et al. using AWB
 
Line 1: Line 1:
I’m Therese from Kristiansund N studying Computer Science. I did my schooling, secured 72% and hope to find someone with same interests in Auto audiophilia.<br><br>Review my weblog :: [http://office-2013keys.blogspot.com/2014/08/microsoft-office-2013-product-key.html microsoft office 2013 product key]
{{main|Chi-squared distribution}}
 
The following are proofs of several characteristics related to the [[chi-squared distribution]].
 
== Derivations of the pdf ==
 
===Derivation of the pdf for one degree of freedom===
Let random variable ''Y'' be defined as ''Y'' = ''X''<sup>2</sup> where ''X'' has [[normal distribution]] with mean 0 and variance 1 (that is ''X''&nbsp;~&nbsp;''N''(0,1)).  
 
Then,<br />
<math>
\begin{alignat}{2}
\text{for} ~ y < 0, & ~~ P(Y<y) = 0 ~~ \text{and} \\
\text{for} ~ y \geq 0, & ~~ P(Y<y) = P(X^2<y) = P(|X|<\sqrt{y}) = \\
~~ & = F_X(\sqrt{y})-F_X(-\sqrt{y})= F_X(\sqrt{y})-(1-F_X(\sqrt{y}))= 2 F_X(\sqrt{y})-1
\end{alignat}
</math>
 
: <math>
\begin{align}
f_Y(y) & = 2 \frac{d}{dy} F_X(\sqrt{y}) - 0 = 2 \frac{d}{dy} \left( \int_{-\infty}^\sqrt{y} \frac{1}{\sqrt{2\pi}} e^{\frac{-t^2}{2}} dt \right) \\
& = 2 \frac{1}{\sqrt{2 \pi}} e^{-\frac{y}{2}} (\sqrt{y})'_y = 2 \frac{1}{\sqrt{2}\sqrt{\pi}} e^{-\frac{y}{2}} \left( \frac{1}{2} y^{-\frac{1}{2}} \right) =
\frac{1}{2^{\frac{1}{2}} \Gamma(\frac{1}{2})}y^{\frac{1}{2}-1}e^{-\frac{y}{2}}
\end{align}
</math>
 
Where <math>F</math> and <math>f</math> are the cdf and pdf of the corresponding random variables.
 
Then <math>Y = X^2 \sim \chi^2_1.</math>
 
===Derivation of the pdf for two degrees of freedom===
To derive the chi-squared distribution with 2 degrees of freedom, there could be several methods.
Here presented is one of them which is based on the distribution with 1 degree of freedom.
 
Suppose that <math>x</math> and <math>y</math> are two independent variables satisfying <math>x\sim\chi^2_1</math> and <math>y\sim\chi^2_1</math>, so that the probability density functions of <math>x</math> and <math>y</math> are respectively:
 
: <math>
f(x)=\frac{1}{2^{\frac{1}{2}}\Gamma(\frac{1}{2})}x^{-\frac{1}{2}}e^{-\frac{x}{2}}
</math>
and
: <math>
f(y)=\frac{1}{2^{\frac{1}{2}}\Gamma(\frac{1}{2})}y^{-\frac{1}{2}}e^{-\frac{y}{2}}
</math>
 
Simply, we can derive the joint distribution of <math>x</math> and <math>y</math>:
 
: <math>
f(x,y)=\frac{1}{2\pi}(xy)^{-\frac{1}{2}}e^{-\frac{x+y}{2}}
</math>
 
where <math>\Gamma(\frac{1}{2})^2</math> is replaced by <math>\pi</math>. Further, let <math>A=xy</math> and <math>B=x+y</math>, we can get that:
 
: <math>
x = \frac{B+\sqrt{B^2-4A}}{2}
</math>
and
: <math>
y = \frac{B-\sqrt{B^2-4A}}{2}
</math>
 
or, inversely
 
: <math>
x = \frac{B-\sqrt{B^2-4A}}{2}
</math>
and
: <math>
y = \frac{B+\sqrt{B^2-4A}}{2}
</math>
 
Since the two variable change policies are symmetric, we take the upper one and multiply the result by 2. The Jacobian determinant can be calculated as:
 
: <math>
\operatorname{Jacobian}\left( \frac{x, y}{A, B} \right)
        =\begin{vmatrix}
                -(B^2-4A)^{-\frac{1}{2}}                    & \frac{1+B(B^2-4A)^{-\frac{1}{2}}}{2}            \\
                (B^2-4A)^{-\frac{1}{2}}                    & \frac{1-B(B^2-4A)^{-\frac{1}{2}}}{2}            \\
          \end{vmatrix}
      = (B^2-4A)^{-\frac{1}{2}}
</math>
 
Now we can change <math>f(x,y)</math> to <math>f(A,B)</math>:
 
: <math>
f(A,B)=2\times\frac{1}{2\pi}A^{-\frac{1}{2}}e^{-\frac{B}{2}}(B^2-4A)^{-\frac{1}{2}}
</math>
 
where the leading constant 2 is to take both the two variable change policies into account. Finally, we integrate out <math>A</math> to get the distribution of <math>B</math>, i.e. <math>x+y</math>:
 
: <math>
f(B)=2\times\frac{e^{-\frac{B}{2}}}{2\pi}\int_0^{\frac{B^2}{4}}A^{-\frac{1}{2}}(B^2-4A)^{-\frac{1}{2}}dA
</math>
 
Let <math>A=\frac{B^2}{4}\sin^2(t)</math>, the equation can be changed to:
 
: <math>
f(B)=2\times\frac{e^{-\frac{B}{2}}}{2\pi}\int_0^{\frac{\pi}{2}} \, dt
</math>
 
So the result is:
 
: <math>
f(B)=\frac{e^{-\frac{B}{2}}}{2}
</math>
 
=== Derivation of the pdf for ''k'' degrees of freedom ===
 
Consider the ''k'' samples <math>x_i</math> to represent a single point in a ''k''-dimensional space. The chi square distribution for ''k'' degrees of freedom will then be given by:
 
:<math>
P(Q) \, dQ = \int_\mathcal{V} \prod_{i=1}^k (N(x_i)\,dx_i) = \int_\mathcal{V} \frac{e^{-(x_1^2 + x_2^2 + \cdots +x_k^2)/2}}{(2\pi)^{k/2}}\,dx_1\,dx_2 \cdots dx_k
</math>
 
where <math>N(x)</math> is the standard [[normal distribution]] and <math>\mathcal{V}</math> is that elemental shell volume at ''Q''(''x''), which is proportional to the (''k''&nbsp;&minus;&nbsp;1)-dimensional surface in ''k''-space for which
 
: <math>Q=\sum_{i=1}^k x_i^2</math>
 
It can be seen that this surface is the surface of a ''k''-dimensional ball or, alternatively, an [[n-sphere]] where ''n''&nbsp;=&nbsp;''k''&nbsp;-&nbsp;1 with radius <math>R=\sqrt{Q}</math>, and that the term in the exponent is simply expressed in terms of ''Q''. Since it is a constant, it may be removed from inside the integral.
 
:<math>
P(Q) \, dQ = \frac{e^{-Q/2}}{(2\pi)^{k/2}} \int_\mathcal{V} dx_1\,dx_2\cdots dx_k
</math>
 
The integral is now simply the surface area ''A'' of the (''k''&nbsp;&minus;&nbsp;1)-sphere times the infinitesimal thickness of the sphere which is
 
:<math>dR=\frac{dQ}{2Q^{1/2}}.</math>
 
The area of a [[n-sphere|(''k''&nbsp;&minus;&nbsp;1)-sphere]] is:
 
:<math>
A=\frac{kR^{k-1}\pi^{k/2}}{\Gamma(k/2+1)}
</math>
 
Substituting, realizing that <math>\Gamma(z+1)=z\Gamma(z)</math>, and cancelling terms yields:
 
:<math>
P(Q) \, dQ = \frac{e^{-Q/2}}{(2\pi)^{k/2}}A\,dR= \frac{1}{2^{k/2}\Gamma(k/2)}Q^{k/2-1}e^{-Q/2}\,dQ
</math>
 
[[Category:Article proofs]]

Latest revision as of 16:41, 13 December 2013

Mining Engineer (Excluding Oil ) Truman from Alma, loves to spend time knotting, largest property developers in singapore developers in singapore and stamp collecting. Recently had a family visit to Urnes Stave Church.

The following are proofs of several characteristics related to the chi-squared distribution.

Derivations of the pdf

Derivation of the pdf for one degree of freedom

Let random variable Y be defined as Y = X2 where X has normal distribution with mean 0 and variance 1 (that is X ~ N(0,1)).

Then,

Where and are the cdf and pdf of the corresponding random variables.

Then

Derivation of the pdf for two degrees of freedom

To derive the chi-squared distribution with 2 degrees of freedom, there could be several methods. Here presented is one of them which is based on the distribution with 1 degree of freedom.

Suppose that and are two independent variables satisfying and , so that the probability density functions of and are respectively:

and

Simply, we can derive the joint distribution of and :

where is replaced by . Further, let and , we can get that:

and

or, inversely

and

Since the two variable change policies are symmetric, we take the upper one and multiply the result by 2. The Jacobian determinant can be calculated as:

Now we can change to :

where the leading constant 2 is to take both the two variable change policies into account. Finally, we integrate out to get the distribution of , i.e. :

Let , the equation can be changed to:

So the result is:

Derivation of the pdf for k degrees of freedom

Consider the k samples to represent a single point in a k-dimensional space. The chi square distribution for k degrees of freedom will then be given by:

where is the standard normal distribution and is that elemental shell volume at Q(x), which is proportional to the (k − 1)-dimensional surface in k-space for which

It can be seen that this surface is the surface of a k-dimensional ball or, alternatively, an n-sphere where n = k - 1 with radius , and that the term in the exponent is simply expressed in terms of Q. Since it is a constant, it may be removed from inside the integral.

The integral is now simply the surface area A of the (k − 1)-sphere times the infinitesimal thickness of the sphere which is

The area of a (k − 1)-sphere is:

Substituting, realizing that , and cancelling terms yields: