Lesson 10 of 13 9 min · 139 words
Expectation and variance
The average value and the spread around it.
The expectation (mean) is the probability-weighted average: for discrete and for continuous variables. It is linear: , even if and are dependent.
The variance measures spread around the mean: . Its square root is the standard deviation , in the same units as . Scaling: .
Expectation shows up as risk (expected loss); variance shows up in the bias–variance trade-off and in why averaging many models (bagging) or many gradient samples (mini-batches) gives more stable results — averaging independent copies divides the variance by .
Formula to remember
Inner product
Element-wise products summed; relates to the angle between vectors.
Quick check · +5 XP