aNet.ai
Machine Learning/Learning path
0day streak0XP · Lv 1
← 2. Mathematical Foundations
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

Which property states d(A, B) ≤ d(A, C) + d(C, B)?

Practice this topic
Saved in this browser as you type.
aNet.ai · Introduction to Machine Learning · NewUU course outlineProgress saved in this browser