The variance of a random variable is a measure of the expected deviation from the average .