Variance (Random Variable)
Measure of spread for a random variable.
This public page keeps the free explanation visible and leaves premium worked solving, advanced walkthroughs, and saved study tools inside the app.
Core idea
Overview
Variance characterizes the spread of a random variable by calculating the average of the squared differences from the mean. This specific formula, known as the computational formula for variance, simplifies calculations by using the first and second moments of the distribution.
When to use: Apply this formula when analyzing the volatility of a dataset or when the raw moments of a distribution are provided. It is the standard method for determining the dispersion of discrete or continuous random variables in statistical modeling.
Why it matters: Variance is foundational in portfolio theory to measure financial risk and in scientific research to determine the reliability of experimental results. It allows for the derivation of the standard deviation, which translates spread back into the original units of the data.
Symbols
Variables
Var(X) = Variance, E(X^2) = E(X^2), \mu = Mean E(X)
Walkthrough
Derivation
Derivation of Variance of a Random Variable
Variance measures expected squared deviation from the mean. Expanding the definition gives the useful identity Var(X) = E() − [E(X)]^2.
- X is a discrete random variable.
- E(X) exists.
Start from the Definition:
Variance is the expected value of squared deviations from the mean .
Expand the Square:
Expand before applying expectation.
Use Linearity of Expectation:
Expectation distributes over sums. Since is constant, .
Substitute E(X)=μ and Simplify:
Replace with and simplify.
Final Identity:
Variance equals the mean of squares minus the square of the mean.
Result
Source: Edexcel A-Level Mathematics — Statistics (Random Variables)
Free formulas
Rearrangements
Solve for
Variance (Random Variable)
This formula defines the variance of a random variable X in terms of its expected value, often expressed using the mean symbol .
Difficulty: 2/5
The static page shows the finished rearrangements. The app keeps the full worked algebra walkthrough.
Visual intuition
Graph
Graph unavailable for this formula.
The graph of variance against the expected value of a random variable forms a downward-opening parabola. This parabolic shape arises because the variance is defined by the difference between the mean of the squares and the square of the mean, resulting in a quadratic relationship with respect to the expected value.
Graph type: quadratic
Why it behaves this way
Intuition
Imagine a histogram or probability distribution curve for a random variable; the variance quantifies the 'width' of this distribution, with a larger variance indicating a flatter, more spread-out shape, and a smaller
Signs and relationships
- -(E(X))^2: The subtraction of (E(X))^2 from E() is essential because E() measures the average of the squared values from the origin. By subtracting the square of the mean, we effectively shift the reference point from the
Free study cues
Insight
Canonical usage
The variance of a random variable X will have units that are the square of the units of X, ensuring dimensional consistency within the equation.
Common confusion
Confusing the units of variance (squared units of the random variable) with the units of standard deviation (original units of the random variable).
Dimension note
If the random variable X is dimensionless (e.g., a count, a probability, a ratio, or an index), then its variance Var(X) will also be dimensionless.
Unit systems
One free problem
Practice Problem
A discrete random variable has an expected value of 5 and the expected value of its square is 34. Calculate the variance of this distribution.
Solve for:
Hint: Subtract the square of the mean from the expected value of X².
The full worked solution stays in the interactive walkthrough.
Where it shows up
Real-World Context
Variance of dice rolls.
Study smarter
Tips
- Subtract the square of the mean, not just the mean itself.
- Variance must be zero or positive; a negative result indicates a calculation error.
- Remember that the units of variance are the square of the original units.
Avoid these traps
Common Mistakes
- Squaring E(X) first then subtracting.
- Negative variance (impossible).
Common questions
Frequently Asked Questions
Variance measures expected squared deviation from the mean. Expanding the definition gives the useful identity Var(X) = E(X^2) − [E(X)]^2.
Apply this formula when analyzing the volatility of a dataset or when the raw moments of a distribution are provided. It is the standard method for determining the dispersion of discrete or continuous random variables in statistical modeling.
Variance is foundational in portfolio theory to measure financial risk and in scientific research to determine the reliability of experimental results. It allows for the derivation of the standard deviation, which translates spread back into the original units of the data.
Squaring E(X) first then subtracting. Negative variance (impossible).
Variance of dice rolls.
Subtract the square of the mean, not just the mean itself. Variance must be zero or positive; a negative result indicates a calculation error. Remember that the units of variance are the square of the original units.
References
Sources
- Wikipedia: Variance
- A First Course in Probability by Sheldon Ross
- Probability and Statistics for Engineers and Scientists by Walpole, Myers, Myers, and Ye
- A First Course in Probability (Sheldon Ross)
- Ross, Sheldon M. A First Course in Probability. 8th ed. Pearson Prentice Hall, 2010.
- Edexcel A-Level Mathematics — Statistics (Random Variables)