6.3 - Mean, variance and percentiles
A density describes a whole distribution, so it can tell you much more than the probability of one interval. In this part of 6.3, you will calculate its mean and variance, locate medians and other percentiles by area, and distinguish the distribution's average from its regions of greatest density.
Mean and variance from density
For the increasing density on , is the mean halfway along the interval? More probability is concentrated towards the right, so a mean greater than is plausible. Integration gives its exact location.
For a discrete variable you added terms . A thin strip of continuous probability has approximate area . Its weighted contribution to the mean is approximately . Adding increasingly thin contributions leads to an integral.
Continuous expectation and variance
For a density , integrate over the full support:
These finite-moment formulae require the indicated integrals to converge. Standard deviation is .
In the formula booklet, with the second-moment integral included in the variance formula.
The mean is a weighted location; variance is a weighted squared distance from it. As before, variance has squared units, and standard deviation has the original units. Keep the mean exact until its square has been subtracted.
Worked example 1: an increasing density
Question. has density for , and zero otherwise. Find its mean and variance.
Plan. Integrate and , then subtract the squared mean.
Answer. Mean , variance .
Check. The direct squared-deviation integral gives
. The mean is inside the support and lies to the right of its midpoint, as predicted.
Reflect the density in the vertical line . Its centre moves to the opposite side, but reflection preserves spread.
Worked example 2: a decreasing density
Question. has density for , and zero otherwise. Find its mean and variance.
Plan. Use the same two moment integrals with the reflected density.
Answer. Mean , variance .
Check. A value reflects . The mean locations and add to , and equal variances agree with unchanged distances from the reflected centres.
For infinite support, keep a finite upper boundary until you have evaluated the integrals. The density's total area being finite does not by itself prove that every moment is finite.
Worked example 3: moments on an infinite support
Question. has density for , and zero otherwise. Find its mean and variance.
Plan. Multiply the density by , then by , and take each infinite-endpoint limit.
Answer. Mean , variance .
Check. Direct integration of gives , using the convergent power integrals. Both moment limits are finite.
Change the power from to , with the normalising coefficient adjusted to . The faster decay puts less probability far to the right.
Worked example 4: a faster-decaying tail
Question. has density for , and zero otherwise. Find its mean and variance.
Plan. Evaluate the same two improper moment integrals for the new power.
Answer. Mean , variance .
Check. Total area is . The new mean and variance are both smaller than before, consistent with the more rapidly shrinking tail. Direct squared-deviation integration also gives .
Whether the support is bounded or infinite, calculate the two moments over its entire range before combining them.
Watch out
Integrating gives probability, integrating gives the mean, and integrating gives the second moment. The second moment is not yet the variance: subtract the square of the mean.
Apply both moment formulae to a new power-tail density.
Medians and percentiles
The median divides probability in half, rather than dividing the support's length in half. For an increasing density, more area is packed into the right-hand end, so the median lies to the right of the interval's midpoint.
Median and percentile by area
A median satisfies . A percentile leaves a specified percentage of probability below it: for , the percentile at percentage satisfies .
Find it by setting the area from the lower support boundary to the unknown value equal to the required probability. Use an improper lower-end limit if the support extends to minus infinity.
Continue this lesson.
You’re previewing NovaLearn without an account. Create a free account to read the rest.
Create free account