Mean and Variance of the Common Distributions
Two numbers summarise any distribution: the mean (Definition 13.1, the first moment), which says where the distribution is centred, and the variance (Definition 13.4), which says how widely it spreads about that centre; its square root is the standard deviation. For hand computation the variance is almost always found from the computational formula (Proposition 13.3). This lesson is a consolidated reference: it collects, once and for all, the mean and variance of the four distributions you meet most often, each derived in the course's own notes. For the discrete families these are the Bernoulli with mean (Example 13.2) and variance (Example 13.9); the binomial with mean (Example 13.3) and variance (Example 13.10); and the geometric (support , p.m.f. ) with mean (Example 13.4) and variance (Example 13.12). For the continuous world we record the uniform with mean (Example 13.7) and variance (Example 13.11). Once you can name the family and read off its parameters, every mean and variance is a one-line substitution.
Before you start — give these a try
Attempting first primes your brain for the lesson — even if you miss. Nothing is graded or saved; it's just a warm-up.
Let . Find . Give your answer as a decimal to places.
Let (trials until the first success, p.m.f. for ). Find . Give your answer as a decimal to places.
What you’ll be able to do
- Recall that the mean is the first moment (Definitions 13.1-13.2) and the variance is (Definition 13.4), and compute variances through the computational formula (Proposition 13.3).
- State and apply the Bernoulli moments: has mean (Example 13.2) and variance (Example 13.9).
- State and apply the binomial moments: has mean (Example 13.3) and variance (Example 13.10).
- State and apply the geometric moments: has mean (Example 13.4) and variance (Example 13.12).
- State and apply the continuous uniform moments: has mean (Example 13.7) and variance (Example 13.11), and obtain the standard deviation .
In your course
· MATH2015 · Linear Algebra & Probability- Definition 13.1Expectation (first moment)for discrete (and for continuous ); the expectation is the first moment.
- Definition 13.3MomentsThe th moment of is ; the second moment is the mean square.
- Definition 13.4Variance and standard deviation, with .
- Proposition 13.3Computational formula for the variance.
- Proposition 13.4Mean and variance under affine mapsand .
- Example 13.2Mean of a Bernoulli random variable.
- Example 13.3Mean of a binomial random variable.
- Example 13.4Mean of a geometric random variable.
- Example 13.7Mean of a uniform random variable.
- Example 13.9Variance of a Bernoulli random variable; for an indicator, .
- Example 13.10Variance of a binomial random variable.
- Example 13.11Variance of a uniform random variable.
- Example 13.12Variance of a geometric random variable.
The mean and the variance: a distribution's two moments
The mean (or expectation, or first moment) is the probability-weighted average of the values of : a sum in the discrete case (Definition 13.1) and an integral in the continuous case (Definition 13.2). It locates the centre of the distribution. The variance (Definition 13.4) is the mean squared distance from that centre, so it measures spread; being an average of squares it is never negative, and its square root — the standard deviation — restores the original units. In practice you rarely expand directly. Instead you use the computational formula (Proposition 13.3) which trades the deviation for the second moment (the mean square, Definition 13.3) minus the square of the mean. Finally, both summaries behave predictably under an affine change of variable (Proposition 13.4): , while — shifting by moves the centre but not the spread, and scaling by multiplies the variance by .
The three discrete families: Bernoulli, binomial, geometric
Three named discrete distributions cover most discrete models, and their moments are derived in §13.1-§13.2. A Bernoulli variable is a single trial scoring with probability and otherwise; its mean is (Example 13.2) and its variance is (Example 13.9), largest at (maximum uncertainty) and zero at or (a sure outcome). A binomial variable counts the successes in such independent trials, so both moments simply scale by : (Example 13.3) and (Example 13.10). Notice , so for a binomial the variance is always the mean times . A geometric variable counts the number of independent trials up to and including the first success, with p.m.f. for ; summing the series gives (Example 13.4), and with (where ) the computational formula yields (Example 13.12). A rare success (small ) means a long, highly variable wait, which is why both and blow up as .
The continuous uniform on $[a,b]$
The continuous uniform distribution spreads probability evenly over the interval , with constant density there and outside. Its mean is found by integration (Example 13.7): exactly the midpoint of the interval, as symmetry demands. For the variance (Example 13.11) first compute the second moment and then the computational formula gives The variance depends only on the width , never on where the interval sits: sliding along the line (replacing by ) leaves the spread unchanged, in line with . The standard deviation is .
A reference table, and how to use it
The four results together form a compact lookup table. Here is a success probability, a number of trials, and the endpoints of an interval.
| Distribution | Mean | Variance | | --- | --- | --- | | | | | | | | | | | | | | | | |
Applying it is a three-step recipe. First, name the family and read off its parameters from the wording (a single yes/no trial is Bernoulli; a count of successes in a fixed number of trials is binomial; a count of trials until the first success is geometric; an evenly-spread continuous quantity on an interval is uniform). Second, substitute the parameters into the mean and variance formulas — no summation or integration needed, since the derivations are already done. Third, if a spread in the original units is wanted, take . For instance, has mean and variance ; has mean and variance ; and has mean and variance .
If with and , then In particular, for the indicator of an event , and .
If , then
If with p.m.f. for , then
If with density on , then
Worked examples
Binomial. In a quality-control batch, each of independent items is defective with probability . Let be the number of defective items, so . Find the mean, variance, and standard deviation of .
- 1
Identify the family and parameters. A count of successes (defectives) in a fixed number of independent trials, each with success probability , is binomial: with , .
- 2
Mean (Example 13.3).
- 3
Variance (Example 13.10). (Check: .)
- 4
Standard deviation.
Geometric. A game is won on each independent attempt with probability . Let be the number of attempts up to and including the first win, so . Find the mean, variance, and standard deviation of .
Continuous uniform. A bus arrives at a time spread evenly between minute and minute after you reach the stop; let be that arrival time. Find and , and cross-check the variance via the computational formula.