Computing the same expected value directly from the Poisson distribution instead gives
For each fixed positive integer , the ratio test shows that this sum converges. This identity is Dobiński's formula. The case also gives if is interpreted as one in this particular moment formula.
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.
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.
For a probability density function , the mean and variance are
These formulas assume the required moments are finite; finiteness of the second moment ensures a finite mean as well.
The triangular probability density function is normalized because . It is even, so the mean integrand is odd and . Its variance is consequently its second moment:
The density is symmetric about , giving expected value . Its second moment is . Therefore
Equivalently, each equally weighted interval has variance and its centre is from the overall mean, giving by the law of total variance.
Write . The probability density function normalizes when , so . Its survival function is for ; hence, for ,
Differentiating this conditional tail gives
The value assigned at the single endpoint does not affect any probability. The memorylessness of the exponential distribution says that , conditional on , is again an exponential distribution of rate . Its first two moments are and , found by integration by parts, so translation leaves the variance unchanged:
When the relevant moments are finite, the mean and variance are
Equivalently, . The mean requires an integrable absolute first moment; finite second moment guarantees both quantities are finite.
Repeated integration by parts gives, for every nonnegative integer ,
With , the first two moments are and . Subtracting the square of the mean gives
If carries units, has inverse units of , so the mean and standard deviation have the units of and the variance has their square.
The second moment is , finite exactly for , where it equals . Subtracting the square of the mean gives
For , the mean exists but the variance is infinite. For , the ordinary centered variance is not defined because the mean is not finite. Thus there is no finite variance for any .
The three preceding probabilities satisfy
Their expected value and second moment are
Subtracting the squared mean gives
The value also follows from linearity of expectation. The variance includes the finite-population reduction caused by sampling without replacement.
The second moment is
Subtracting the squared expected value gives the variance and standard deviation:
The variance is nonnegative because . Both and have units of time. At the result reduces to , the standard deviation of a uniform distribution over one full cycle.
The expected value is not defined: the integral of over the positive half-line diverges logarithmically to , and the negative half-line gives . In particular, symmetry alone does not supply a mean. More explicitly,
The second moment also diverges because as . Thus
The symmetric Cauchy principal value of the first-moment integral is zero, but it is not an expected value and does not define a variance.
The time-independent Schrödinger equation is
Put . For , differentiation gives . Substitution cancels the terms in and leaves .
The Gaussian integral gives . Hence a normalized wave function is
Multiplication by any constant of modulus one gives the same quantum state. The position probability density is . Its first moment vanishes by oddness. Integration by parts gives , with the boundary term zero. Therefore
The moment-generating function of a real random variable is
for real for which this expected value is finite. Because the integrand is nonnegative, the extended expected value is always defined, but it may equal . We always have ; the usual uniqueness and convergence theorems require finiteness on an open interval containing zero. When this condition holds, derivatives at zero recover the moments, .
The strong law of large numbers says that, for real independent and identically distributed random variables with ,
The assertion is almost sure convergence of the entire sequence of sample means. Finite first absolute moment suffices; a finite variance is not required.