SR22, SR23 - Averages and spread from a pdf
SR22 uses a density to calculate the mean, variance and standard deviation, including the continuous uniform model. SR23 finds the median by splitting probability in half and the mode by locating the density's maximum. The three measures of centre answer different questions.
Weight each value by its density
For the density on , is the average value the point that divides the probability into two equal halves? We will find both. A steadily rising density puts more weight towards , but it does not make all sensible measures of centre coincide.
The discrete probability-weighted sum becomes an integral: a thin strip near has probability approximately , so its contribution to the mean is approximately .
You already know
A pdf is non-negative with total area one. A mean is a probability-weighted value, and variance measures squared deviations from it. Write the relevant definite integral before calculator evaluation; split it if the density changes rule.
Use the support limits, not the endpoints of a probability interval from an earlier question. Expectation uses the whole distribution.
Continuous mean and variance
For a pdf on a finite support ,
The integral of is , not .
In the formula booklet.
Standard deviation is the non-negative square root of variance. It has the variable's original units; variance has squared units. This square-root relation is in the formula booklet.
Worked example 1: a rising linear density
Question. A continuous random variable has pdf for , and zero otherwise. Find its mean, variance and standard deviation.
Plan. Calculate the first two moments, then subtract the square of the mean from the second moment.
Why this step? The density already weights the outcomes. Integrating alone would give the wrong mean.
Answer. Mean , variance , standard deviation .
Check. The mean is inside and above its midpoint, as the density increases towards . The variance is positive.
Change only the power in the density, from a linear rise to a quadratic rise; the coefficient changes to keep total area one.
Worked example 2: more weight near the upper end
Question. Find the same measures when on , and zero otherwise.
Plan. Integrate and over the unchanged support.
Why this step? Moving more probability close to raises the mean but can reduce the spread: the two measures need not rise together.
Answer. Mean , variance , standard deviation .
Check. , while . The steeper density concentrates values near the upper end.
A negative variance signals an error. Check whether you squared the mean, integrated the whole support and retained enough precision before subtracting.
Watch out
Wrong: . Right: subtract . Also is usually different from .
Increase the power once more and keep the calculations exact.
A uniform interval has a midpoint and a width
For a continuous uniform distribution on , every equal-length subinterval has the same probability. The constant density must therefore be on the interval and zero elsewhere.
Its mean is the midpoint. Its variance depends on the interval's width, so shifting the whole interval changes the mean without changing the spread.
Continuous uniform moments
If is uniformly distributed over , where ,
In the formula booklet.
The results may still need deriving if the question asks. Starting from the constant density,
The density and this derivation are not printed separately: obtain them from total area one and the supplied moment integrals.
Worked example 3: waiting within a uniform interval
Question. A waiting time , in minutes, is modelled by a continuous uniform distribution on . Find its mean, variance and standard deviation.
Plan. Use the interval midpoint and squared width.
Why this step? The spread depends on , rather than on the upper endpoint alone.
Answer. Mean , variance , standard deviation .
Check. Directly, , so the variance is .
Change only the upper endpoint from to . The midpoint moves and the interval widens.
Continue this lesson.
You’re previewing NovaLearn without an account. Create a free account to read the rest.
Create free account