SD4, SD5 - Continuous expectation and variance
SD4 uses a density to find a continuous variable's mean, variance and standard deviation. SD5 extends those calculations to functions of the variable, including changes of scale and inverse powers. You will connect weighted sums to integrals and check that the moments you calculate actually exist.
First and second moments as integrals
If has density on , does doubling its values double its variance? First we need to measure the distribution's centre and spread.
For a discrete variable, expectation is a weighted sum of values: multiply each value by its probability and add. A continuous density distributes probability over small intervals instead. Near , a strip of width has probability approximately . Its contribution to the mean is approximately . Adding strips and taking a limit gives an integral.
Continuous moments
For a variable with pdf ,
The first is the first moment or mean; the second is the second moment, not the variance. Use the whole support, splitting into pieces if needed. These formulae are required knowledge and are not printed in the AQA formula booklet.
A finite mean requires . A finite second moment requires . All nonnegative integer powers of a bounded variable have finite moments, but unbounded supports or functions that grow without bound need convergence checks. A formal subtraction of divergent integrals is not an expectation.
Worked example 1: moments of a rising density
Question. has pdf for , zero otherwise. Find and .
Plan. Weight the density once by and once by , using its full support.
Answer. , .
Check. On , . The answers obey . The mean is above , consistent with density concentrated towards 1.
Stretch the same triangular shape to twice the horizontal range. The density must become lower so its area remains 1.
Worked example 2: stretching the support
Question. has pdf for , zero otherwise. Find and .
Plan. Repeat the moment integrals with the new density and new upper bound.
Answer. , .
Check. Put in these two integrals. They become twice and four times the corresponding integrals in Worked example 1: and .
The mean is a balance point of the probability distribution. It is not obtained by dividing by the support width: the probability weights already total 1. Integrating alone finds total probability, not a mean.
Watch out
Wrong: . The first weights squared values; the second squares one average. In Worked example 1 they are and , which differ.
Compute both moments for a fresh density.
Mean, variance and standard deviation
Spread measures distances from the mean. Squaring those distances avoids cancellation between values on opposite sides of it.
Variance and standard deviation
When the second moment is finite, the variance is
The standard deviation is the nonnegative square root,
These random-variable moment formulae are required knowledge and are not printed in the AQA formula booklet.
Why does the computational shortcut work? Expand the square, integrate, and use the facts that the total probability is 1 and the first moment is :
All integrals here cover the whole support. The original squared-distance expression proves that variance cannot be negative. If you obtain a small negative result numerically, retain more precision in the moments; a substantial negative value signals an error.
Worked example 3: finding spread from moments
Question. A variable has pdf on , zero otherwise. Its moments are and . Find its variance and standard deviation.
Plan. Subtract the square of the mean from the second moment, then take the square root.
Answer. Variance , standard deviation , approximately .
Check. Directly integrating squared distances gives
Return to the stretched density from Worked example 2. Only the horizontal scale changes, allowing a direct comparison of spread.
Worked example 4: spread after stretching
Question. A variable has pdf on , zero otherwise. Its moments are and . Find its variance and standard deviation.
Plan. Apply the same subtraction without rounding either moment.
Answer. Variance , standard deviation .
Check. Substitute in the squared-distance integral:
The standard deviation doubles, while the variance quadruples.
If values are measured in centimetres, the mean and standard deviation are in centimetres but the variance is in square centimetres. This units difference helps explain why a scale factor is squared in variance.
Watch out
Wrong: subtract instead of , or report the variance as the standard deviation. Keep exact moments until the final subtraction and take a nonnegative square root.
Use supplied moments to focus on that distinction.
Continue this lesson.
You’re previewing NovaLearn without an account. Create a free account to read the rest.
Create free account