🔢 Statistics Basics

Variance in Statistics Explained

Discover what variance really measures, why it matters, and how to calculate it — step by step.


🕐 9 min read  |  Class 9–12  |  FBISE · CBSE · IGCSE · O-Levels · IB

If standard deviation tells you how far data points typically stray from the mean, variance is the stepping stone that gets you there. Variance is the average of the squared differences from the mean — it quantifies spread in a mathematically precise way that makes it indispensable in advanced statistics, machine learning, and scientific research. Understanding variance unlocks your understanding of standard deviation, statistical tests, and data analysis at every level.

What Is Variance?

Variance measures how far each value in a data set lies from the mean, on average. Unlike range, which only looks at two extreme values, variance uses every data point. The squaring step ensures that negative and positive deviations don't cancel each other out, and it also gives extra weight to values that are far from the mean.

Population Variance: σ² = Σ(x − μ)² / N

Sample Variance: s² = Σ(x − x̄)² / (n − 1)

Notice that variance is always the square of standard deviation — that is why variance is written as σ² and sample variance as s². For school-level problems, use the population formula unless the question explicitly says "sample."

Step-by-Step Example

The monthly rainfall (in mm) for six months was: 30, 45, 20, 60, 35, 50. Find the variance.

📋 Calculating Variance
1

Calculate the mean:

x̄ = (30+45+20+60+35+50) ÷ 6 = 240 ÷ 6 = 40 mm
2

Calculate each deviation (x − x̄):

30−40=−10 | 45−40=5 | 20−40=−20 | 60−40=20 | 35−40=−5 | 50−40=10
3

Square each deviation (x − x̄)²:

100 | 25 | 400 | 400 | 25 | 100
4

Sum the squared deviations:

100+25+400+400+25+100 = 1050
5

Divide by N (population variance):

σ² = 1050 ÷ 6 = 175 mm²

The variance is 175 mm². To get standard deviation, simply take the square root: σ = √175 ≈ 13.23 mm.

Variance vs Standard Deviation — Which Should You Report?

Property Variance (σ²) Standard Deviation (σ)
Units Squared units (e.g., mm²) Same units as data (e.g., mm)
Interpretability Less intuitive Directly interpretable
Used in Mathematical proofs, ANOVA Everyday data description
Always ≥ 0? Yes Yes
💡 Variance is the foundation of many advanced statistical techniques such as ANOVA (Analysis of Variance) and regression. Even if you report standard deviation, the computation always passes through variance first.

Real-Life Applications

  • 📡
    Signal processing: Engineers minimise signal variance to reduce noise in communications and audio systems.
  • 🌾
    Agriculture: Agronomists measure variance in crop yield across fields to identify which soil conditions produce consistent results.
  • 🏦
    Portfolio management: Financial analysts minimise the variance of a portfolio's returns — the mathematical basis of Modern Portfolio Theory.
  • 🔬
    Scientific experiments: Variance tells researchers how repeatable their measurements are. Low variance = high precision.

Common Mistakes Students Make

⚠️ Not squaring the deviations. If you just average the raw deviations (without squaring), you always get zero — positive and negative differences cancel out perfectly.
⚠️ Reporting variance when the question asks for standard deviation. The two are related but different. Always check which one is requested.
⚠️ Using n − 1 for a population. Unless the data is explicitly described as a sample from a larger population, divide by N (the full count).
⚠️ Forgetting that variance has squared units. If data is in metres, variance is in m², not m. This matters when labelling your answer.

Frequently Asked Questions

Squaring has nicer mathematical properties — it is differentiable (useful for calculus-based statistics) and penalises large deviations more heavily. Mean absolute deviation is a valid alternative, but variance and SD are mathematically preferred in formal statistics.
Yes, but only if every value in the data set is identical. In that case, every deviation is zero, every squared deviation is zero, and variance = 0. This is the only situation where variance equals zero.
Variance is more commonly tested at the IB and A-Level stage. FBISE and O-Level papers typically ask for standard deviation directly, though understanding variance is essential to calculating it correctly.

Try the Variance Calculator

Enter your data set and get instant variance and standard deviation — with a full step-by-step breakdown so you can see exactly how the answer is reached.

🧮 Open the Calculator →