4.9.4 · D4Probability Theory & Statistics

Exercises — Expected value, variance, standard deviation — properties

1,827 words8 min readBack to topic

Two summaries of a random variable (a number spat out by a chance experiment) run through everything below:

  • the expected value — the balance point of the probability mass;
  • the variance — the average squared distance from that balance point; and its square root the standard deviation .

The whole toolbox, on one card so you never have to scroll:


Level 1 — Recognition

Goal: spot which rule fires. No heavy algebra.

Recall Solution 1.1

(a) Expectation is linear, so the constants slide straight through: (b) For variance the shift vanishes (sliding the whole picture left/right does not change spread) and the multiplier gets squared: (c) Standard deviation is the square root: . Equivalently . ✓

Recall Solution 1.2

A 0/1 (indicator) variable has and (see Bernoulli and Binomial Distributions). Why ? Because for a 0/1 variable , so , and .

Recall Solution 1.3

(a) False. Linearity of expectation holds always — even for dependent variables. It never needs independence. (b) True (essentially). The sum rule carries an extra term . Independence forces , so the two variances simply add. (Strictly, uncorrelated is enough — but independence guarantees it.)


Level 2 — Application

Goal: crank the machine on real distributions.

Recall Solution 2.1

Recall Solution 2.2

Center of mass (each value weighted by its probability): Second moment via LOTUS with : Variance with the computational formula:

Recall Solution 2.3

Mean: Variance: the multiplier squares (so the sign disappears) and the shift does nothing: SD: The absolute value is what keeps even though is negative.

The figure below shows why the sign drops out and the shift is invisible to spread.

Figure — Expected value, variance, standard deviation — properties

Level 3 — Analysis

Goal: reason about when a rule bends, and about combined variables.

Recall Solution 3.1

, so by the scale rule Naively adding variances gives . They differ because the sum rule needs independence, and is perfectly correlated with itself. The missing piece is , and indeed . ✓

Recall Solution 3.2

Use . (a) : (b) : the cross term flips sign because : (c) If independent, , so both become . Note subtraction still adds variances — spreads accumulate whether you add or subtract random quantities.

Recall Solution 3.3

Independence lets variances add: For the average, first scale then use independence: The average is less spread than a single roll — the seed of the Law of Large Numbers: averaging many independent copies shrinks variance like .


Level 4 — Synthesis

Goal: chain several rules and standardise.

Recall Solution 4.1

Write with and . Mean: Variance: So any variable can be reshaped to mean , variance — the standard form used in the Central Limit Theorem. Subtracting centers it; dividing by rescales the spread to exactly .

Recall Solution 4.2

Equal weights. With independence the cross term is : Optimal weight. For (independent), Differentiate and set to zero (calculus finds the bottom of this upward parabola — the flat point where slope ): Minimum variance: Notice the safer asset () gets the larger weight — you lean on the calmer variable to reduce total spread.


Level 5 — Mastery

Goal: prove from the definitions; no plugging into memorised results.

Recall Solution 5.1

Let . By linearity where . Then The cancels — that is why a shift cannot change spread. Now square and take expectation: pulling the constant out by linearity.

Recall Solution 5.2

Expand with linearity, treating as a constant: This is an upward parabola in . Differentiate and set to zero: (Second derivative confirms a minimum.) Plug back in: So the mean is the single best constant predictor of under squared error, and the unavoidable leftover error is exactly the variance.

Recall Solution 5.3

By the computational formula, . Variance is an average of the non-negative quantity , hence , which gives Equality holds iff , i.e. iff with probability — meaning is a constant (no randomness at all). This is the simplest instance of Jensen's Inequality for the convex function : averaging then squaring undershoots squaring then averaging.


Recall ladder

Recall Quick self-test (hide answers)

Var(3X-2) with Var(X)=9 ::: 81 Var(X+X) with Var(X)=5 ::: 20 Var(X-Y), independent, Var(X)=4, Var(Y)=9 ::: 13 Best constant predictor c minimising E[(X-c)^2] ::: c = E[X] Divide X-mu by which quantity to make Var = 1 ::: sigma (the SD, not the variance) Value of E[X^2]-(E[X])^2 ::: Var(X), always >= 0