Gradient LabSign up free

ML glossary › Variance

What is variance in machine learning?

How spread out numbers are: the average squared distance from the mean.

Where it shows up

Math toolkit

Mean, variance and the normal curve

Square each distance so nothing is negative, then average them: (9+1+1+1+0+0+4+16) / 8 = 4. That is the variance. Its square root, 2, is the standard deviation: how far a typical point sits from the middle.

Generalization

Bias and variance

A too-flexible model changes a lot depending on which data it saw. Its darts are centered on average, but scattered everywhere. That is high variance, and it’s what overfitting looks like.

See variance in motion. The lesson animates it step by step, free.

Open the lesson

Related terms