(a) Expectation is linear, so the constants slide straight through:
E[3X−2]=3E[X]−2=3(4)−2=10.(b) For variance the shift −2 vanishes (sliding the whole picture left/right does not change spread) and the multiplier 3 gets squared:
Var(3X−2)=32Var(X)=9⋅9=81.(c) Standard deviation is the square root: SD(3X−2)=81=9. Equivalently ∣3∣⋅SD(X)=3⋅9=3⋅3=9. ✓
Recall Solution 1.2
A 0/1 (indicator) variable has E[X]=p and Var(X)=p(1−p) (see Bernoulli and Binomial Distributions).
E[X]=0.2,Var(X)=0.2⋅0.8=0.16.Why p(1−p)? Because for a 0/1 variable X2=X, so E[X2]=p, and Var=E[X2]−(E[X])2=p−p2.
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 2Cov(X,Y). Independence forces Cov=0, so the two variances simply add. (Strictly, uncorrelated is enough — but independence guarantees it.)
E[X]=1(0.7)+0(0.3)=0.7.E[X2]=12(0.7)+02(0.3)=0.7(because X2=X for a 0/1 variable).Var(X)=E[X2]−(E[X])2=0.7−0.49=0.21.σ=0.21≈0.4583.
Recall Solution 2.2
Center of mass (each value weighted by its probability):
E[X]=0(0.1)+1(0.2)+2(0.3)+3(0.4)=0+0.2+0.6+1.2=2.0.Second moment via LOTUS with g(x)=x2:
E[X2]=0(0.1)+1(0.2)+4(0.3)+9(0.4)=0+0.2+1.2+3.6=5.0.Variance with the computational formula:
Var(X)=5.0−2.02=5.0−4.0=1.0.σ=1.0=1.0.
Recall Solution 2.3
Mean:E[Y]=−4E[X]+7=−4(2.0)+7=−1.Variance: the multiplier squares (so the sign disappears) and the +7 shift does nothing:
Var(Y)=(−4)2Var(X)=16⋅1.0=16.SD:σY=∣−4∣⋅σX=4⋅1.0=4.0. The absolute value is what keeps σY≥0 even though a=−4 is negative.
The figure below shows why the sign drops out and the shift is invisible to spread.
Goal: reason about when a rule bends, and about combined variables.
Recall Solution 3.1
X+X=2X, so by the scale rule
Var(X+X)=Var(2X)=22Var(X)=4⋅5=20.
Naively adding variances gives Var(X)+Var(X)=5+5=10.
They differ because the sum rule needs independence, and X is perfectly correlated with itself. The missing piece is 2Cov(X,X)=2Var(X)=2⋅5=10, and indeed 10+10=20. ✓
Recall Solution 3.2
Use Var(aX+bY)=a2Var(X)+b2Var(Y)+2abCov(X,Y).
(a)a=b=1: Var(X+Y)=4+9+2(1)(1)(−3)=13−6=7.(b)a=1,b=−1: the cross term flips sign because 2ab=2(1)(−1)=−2:
Var(X−Y)=4+9+2(1)(−1)(−3)=13+6=19.(c) If independent, Cov=0, so both become 4+9=13. Note subtraction still adds variances — spreads accumulate whether you add or subtract random quantities.
Recall Solution 3.3
Independence lets variances add: Var(S)=Var(X1)+Var(X2)=1235+1235=1270=635≈5.833.
For the average, first scale then use independence:
Var(Xˉ)=Var(21S)=41Var(S)=41⋅635=2435≈1.458.
The average is less spread than a single roll — the seed of the Law of Large Numbers: averaging many independent copies shrinks variance like 1/n.
Write Z=aX+b with a=σ1=51 and b=−σμ=−550=−10.
Mean:E[Z]=51E[X]−10=51(50)−10=10−10=0.Variance:Var(Z)=(51)2Var(X)=251⋅25=1.
So any variable can be reshaped to mean 0, variance 1 — the standard form used in the Central Limit Theorem. Subtracting μ centers it; dividing by σ rescales the spread to exactly 1.
Recall Solution 4.2
Equal weights. With independence the cross term is 0:
Var(0.5X+0.5Y)=0.52(4)+0.52(16)=0.25(4)+0.25(16)=1+4=5.Optimal weight. For W=wX+(1−w)Y (independent),
Var(W)=w2(4)+(1−w)2(16).
Differentiate and set to zero (calculus finds the bottom of this upward parabola — the flat point where slope =0):
dwd[4w2+16(1−w)2]=8w−32(1−w)=0⟹8w−32+32w=0⟹40w=32⟹w=0.8.
Minimum variance: Var(W)=0.82(4)+0.22(16)=0.64(4)+0.04(16)=2.56+0.64=3.2.
Notice the safer asset (Var=4) gets the larger weight 0.8 — you lean on the calmer variable to reduce total spread.
Goal: prove from the definitions; no plugging into memorised results.
Recall Solution 5.1
Let V=aX+b. By linearity E[V]=aμ+b where μ=E[X]. Then
V−E[V]=(aX+b)−(aμ+b)=a(X−μ).
The +bcancels — that is why a shift cannot change spread. Now square and take expectation:
Var(V)=E[a2(X−μ)2]=a2E[(X−μ)2]=a2Var(X),
pulling the constant a2 out by linearity. ■
Recall Solution 5.2
Expand with linearity, treating c as a constant:
M(c)=E[X2]−2cE[X]+c2.
This is an upward parabola in c. Differentiate and set to zero:
M′(c)=−2E[X]+2c=0⟹c=E[X].
(Second derivative M′′(c)=2>0 confirms a minimum.) Plug c=μ=E[X] back in:
M(μ)=E[X2]−2μ⋅μ+μ2=E[X2]−μ2=Var(X).
So the mean is the single best constant predictor of X under squared error, and the unavoidable leftover error is exactly the variance. ■
Recall Solution 5.3
By the computational formula, E[X2]−(E[X])2=Var(X). Variance is an average of the non-negative quantity (X−μ)2, hence Var(X)≥0, which gives
E[X2]≥(E[X])2.Equality holds iff Var(X)=0, i.e. iff (X−μ)2=0 with probability 1 — meaning X is a constant (no randomness at all). This is the simplest instance of Jensen's Inequality for the convex function g(x)=x2: averaging then squaring undershoots squaring then averaging. ■
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