Question
Question: How do you derive the variance of a gaussian distribution?...
How do you derive the variance of a gaussian distribution?
Solution
The probability density function of a gaussian distribution is σ2π1e−21(σx−α)2 where α is the means of distribution and σ is the variance of standard deviation of distribution. So σ2 is the variance of distribution. If f(x) is the probability density function of any distribution, the mean of the distribution is equal to −∞∫∞xf(x)dx and −∞∫∞x2f(x)dx−(−∞∫∞xf(x)dx)2 so variance is equal to −∞∫∞x2f(x)dx−α2
Complete step by step solution:
We have to derive variance of normal distribution σ2π1e−21(σx−α)2
Variance of the distribution = −∞∫∞x2σ2π1e−21(σx−α)2dx−α2
If we put σx−α=t we get x equal to α+tσ and the limit of t is −∞ to ∞ and dx=σdt
⇒−∞∫∞x2σ2π1e−21(σx−α)2dx−α2=−∞∫∞(α+tσ)22π1e−21t2dt−α2
⇒−∞∫∞x2σ2π1e−21(σx−α)2dx−α2=−∞∫∞(α2+t2σ2+2tασ)2π1e−21t2dt−α2
⇒−∞∫∞x2σ2π1e−21(σx−α)2dx−α2=−∞∫∞α22π1e−21t2dt+−∞∫∞2π2tασe−21t2dt+−∞∫∞2πt2σ2e−21t2dt−α2
2π2tασe−21t2is an odd function, so −∞∫∞2π2tασe−21t2dt is equal to 0.
We know that −∞∫∞e−21t2 is equal to 20∫∞e−21t2 because it is an even function⇒−∞∫∞x2σ2π1e−21(σx−α)2dx−α2=20∫∞α22π1e−21t2dt+20∫∞2πt2σ2e−21t2dt−α2
0∫∞e−21t2 is equal to 21Γ21 = 2π
We can calculate 0∫∞t2e−21t2 is equal to 2Γ23 = 2π
Replacing these values, we get
⇒−∞∫∞x2σ2π1e−21(σx−α)2dx−α2=2π22α2π+2π22σ2π−α2
⇒−∞∫∞x2σ2π1e−21(σx−α)2dx−α2=α2+σ2−α2
⇒−∞∫∞x2σ2π1e−21(σx−α)2dx−α2=σ2
So the variance is equal to σ2
Note: The definition of gamma function is Γ(x)=0∫∞tx−1e−tdt gamma of any positive integer is equal to factorial of the preceding number of that number. We can define gamma as Γ(x)=(x−1)Γ(x−1) . Definition of even function is f( x ) = f( -x). The graph of an even function is always symmetric with respect to y axis and the odd function is f( x) = -f (x ). The probability density function of gaussian or normal distribution which σ2π1e−21(σx−α)2 , the curve of this function is symmetric with respect to straight line x = α.