For a random variable with a continuous probability distribution and probability density function , the mean and variance are
A finite mean requires . A finite variance additionally requires the second moment to be finite; without that condition the nonnegative integral for the variance may be infinite.
Expand the square and use linearity of expectation, together with and :
This proof applies whenever the second moment is finite, and does not require the random variable to be continuous.
Normalization of the probability density function and the specified mean give two equations:
Dividing the second by the first gives . Consequently
Both are positive, as required for the stated probability density function.
The second moment is
Using the mean , the variance is therefore
Since is nonnegative, its cumulative distribution function is zero for . For ,
The last equality uses the symmetry of the standard normal distribution. Thus
Differentiate the cumulative distribution function for , using and . The probability density function is
Its value at zero can be assigned arbitrarily without changing any probability. Although this probability density function diverges as , and there is no point mass at zero. Equivalently, has a gamma distribution with shape and rate one.
The probability density function must integrate to one, so
Also, linearity of expectation and the mean and variance of the standard normal distribution give
Using the probability density function to compute this expected value gives
These are the values and of the gamma function.

Articles by others on the same topic (0)

There are currently no matching articles.