S7-SA3-0321
What is the Variance of a Random Variable?
Grade Level:
Class 12
AI/ML, Physics, Biotechnology, FinTech, EVs, Space Technology, Climate Science, Blockchain, Medicine, Engineering, Law, Economics
Definition
What is it?
The Variance of a random variable tells us how spread out its possible values are from the average (mean). It measures how much the values typically 'vary' or differ from the expected value. A higher variance means the values are more spread out, while a lower variance means they are closer to the mean.
Simple Example
Quick Example
Imagine two cricket batsmen. Batsman A scores 50, 52, 48, 50, 50 in five matches. Batsman B scores 10, 90, 20, 80, 50. Both have an average (mean) score of 50. However, Batsman A's scores are very close to 50, meaning his variance is low. Batsman B's scores are all over the place, so his variance is high, showing inconsistency.
Worked Example
Step-by-Step
Let's find the variance for the number of 'likes' on your friend's last 5 Instagram posts: 10, 12, 8, 10, 15.
1. **Find the Mean (Average):** Add all values and divide by the count.
Mean = (10 + 12 + 8 + 10 + 15) / 5 = 55 / 5 = 11
2. **Subtract the Mean from Each Value:** Find the difference for each value.
(10 - 11) = -1
(12 - 11) = 1
(8 - 11) = -3
(10 - 11) = -1
(15 - 11) = 4
3. **Square Each Difference:** This makes all values positive and emphasizes larger differences.
(-1)^2 = 1
(1)^2 = 1
(-3)^2 = 9
(-1)^2 = 1
(4)^2 = 16
4. **Sum the Squared Differences:** Add up all the squared values.
Sum = 1 + 1 + 9 + 1 + 16 = 28
5. **Divide by the Number of Values:** (For a population, divide by N; for a sample, divide by N-1. Here, we'll use N for simplicity, assuming it's a population).
Variance = Sum / 5 = 28 / 5 = 5.6
Answer: The Variance is 5.6.
Why It Matters
Variance is crucial in AI/ML to understand data spread, helping models make better predictions. In FinTech, it helps evaluate the risk of investments, as higher variance means higher risk. Engineers use it to ensure product quality, like making sure the thickness of a mobile screen is consistent, ensuring less variation.
Common Mistakes
MISTAKE: Forgetting to square the differences from the mean. | CORRECTION: Always square (multiply by itself) each difference (value - mean) before adding them up. This ensures all values are positive and correctly reflects spread.
MISTAKE: Confusing variance with standard deviation. | CORRECTION: Variance is the average of the squared differences. Standard deviation is the square root of the variance, giving a value in the original units, making it easier to interpret.
MISTAKE: Incorrectly calculating the mean. | CORRECTION: Always double-check your mean calculation. The variance calculation depends entirely on a correct mean, so any error here will make the final variance wrong.
Practice Questions
Try It Yourself
QUESTION: Find the variance for the daily number of samosas sold at a small shop for 3 days: 20, 22, 18. | ANSWER: Mean = (20+22+18)/3 = 60/3 = 20. Differences: 0, 2, -2. Squared differences: 0, 4, 4. Sum = 8. Variance = 8/3 = 2.67 (approx).
QUESTION: A student's scores in 4 math tests were 70, 80, 60, 90. Calculate the variance of these scores. | ANSWER: Mean = (70+80+60+90)/4 = 300/4 = 75. Differences: -5, 5, -15, 15. Squared differences: 25, 25, 225, 225. Sum = 500. Variance = 500/4 = 125.
QUESTION: The number of minutes a delivery rider waited for orders at a cafe over 5 instances were: 5, 10, 0, 15, 5. Calculate the variance. If the cafe wants to reduce this variance, what does that mean for their service? | ANSWER: Mean = (5+10+0+15+5)/5 = 35/5 = 7. Differences: -2, 3, -7, 8, -2. Squared differences: 4, 9, 49, 64, 4. Sum = 130. Variance = 130/5 = 26. Reducing variance means the waiting times would become more consistent and closer to the average, making the service more predictable for riders.
MCQ
Quick Quiz
What does a high variance indicate about a set of data values?
The values are very close to each other.
The values are widely spread out from the mean.
The mean of the values is very high.
The data set contains only positive values.
The Correct Answer Is:
B
A high variance means the data points are far from the mean and from each other, indicating a wide spread. Option A describes low variance. Options C and D are not directly related to the concept of variance.
Real World Connection
In the Real World
Imagine a food delivery app like Swiggy or Zomato. They collect data on delivery times. If the variance of delivery times is high, it means some deliveries are very fast, and some are very slow. The company would want to reduce this variance to ensure consistent, reliable service for all customers, leading to happier users and better reviews.
Key Vocabulary
Key Terms
MEAN: The average of a set of numbers, found by adding them all up and dividing by the count. | SPREAD: How far apart the values in a dataset are from each other. | RANDOM VARIABLE: A variable whose value is determined by the outcome of a random phenomenon. | SQUARED DIFFERENCE: The result of subtracting the mean from a value and then multiplying that result by itself.
What's Next
What to Learn Next
Great job understanding variance! The next step is to learn about 'Standard Deviation'. It's closely related to variance and will help you interpret the 'spread' of data in a more intuitive way, using the same units as your original data. Keep exploring!


