The variance of a random variable
Summary
Discrete random variable
- If X is a discrete random variable with range x1,x2,…,xn , probability mass function f(x) and expected value μ then the variance of X is defined as
Var(X)=n∑i=1(xi−μ)2f(xi)
Continuous random variable
- If X is a continuous random variable with range [a,b] , probability density function f(x) and expected value μ then the variance of X is defined as
Var(X)=∫ba(x−μ)2f(x)dx
About the variance
- Var(X) is always greater than or equal to zero.
- Do not confuse the variance (which is a property of a random variable) with the sample variance (which is computed from a sample of n observations).
- The standard deviation of a random variable is defined as
SD(X)=√Var(X)
- A common symbol for Var(X) is σ2 and a common symbol for SD(X) is σ .