A random variable is a variable that whose value can change under different outcomes. For example, the result of flipping a standard 6-sided die is a random variable that takes each of the values from 1 to 6 with probability 61.
A random variable contains a lot of information. In Expected Value, we learned that the weighted average of all possible outcomes gives one way of understanding the random variable. Recall that E[X]=μ.
The variance of a random variable measures how far the random variable deviates from its mean, by calculating the expected value of the square deviation from the mean. In mathematical symbols, we have
Var(X)=E[(X−μ)2].
It can also be shown, by the linearity of expectation, that
Var(X)=E[X2]−(E[X])2.
Worked Examples
1. There are 2 bags, containing balls numbered 1 through 5. From each bag, 1 ball is removed. What is the variance of the total of the two balls?
Let X be the random variable denoting the sum of these values. Then, the probability distribution of X is given by
xP(X=x)2251325242535254625572548253925210251
We have previously calculated that E[X]=6. As such, we can see that
Var(X)=E[(X−μ)2]=(2−6)2×251+(3−6)2×252+(4−6)2×253+(5−6)2×254+(6−6)2×255+(7−6)2×254+(8−6)2×253+(9−6)2×252+(10−6)2×251=4.
2. 3 six-sided dice are rolled. What is the variance for the number of times a 3 is rolled? What is the variance for the total of the dice?
Let Y be the random variable representing the number of times a 3 is rolled. The below table lists the probabilities of rolling different numbers of 3s.
num 3sprobability 021612512167522161532161
The expected number of times a 3 is rolled is 21, so E(Y)=21. We now wish to calculate E(Y2).
E(Y2)=21602×125+12×75+22×15+32×1=216144=32.
Therefore, Var(Y)=32−(21)2=125.
#Combinatorics
#Variance
#Olympiad
Easy Math Editor
This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.
When posting on Brilliant:
*italics*
or_italics_
**bold**
or__bold__
paragraph 1
paragraph 2
[example link](https://brilliant.org)
> This is a quote
\(
...\)
or\[
...\]
to ensure proper formatting.2 \times 3
2^{34}
a_{i-1}
\frac{2}{3}
\sqrt{2}
\sum_{i=1}^3
\sin \theta
\boxed{123}
Comments
Why do you have to square the differences?
Log in to reply
We are interested in measuring how spread out the data is. Squaring allows us to emphasize large differences while reducing the impact of small differences.
Variance, is defined as the second central moment, which is why we take it as E[(X−μ)2]. Skew, is the third central moment, in which we take cubes instead of squares, namely E[(X−μ)3].
Log in to reply
But those cubes won't always be positive....?
Log in to reply
Log in to reply