Variance

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 16.\frac{1}{6}.

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]=μ E[X] = \mu.

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]. Var (X) = E[ ( X - \mu)^2 ].

It can also be shown, by the linearity of expectation, that

Var(X)=E[X2](E[X])2. Var (X) = E[X^2] - \left( E[X] \right)^2 .

Worked Examples

1. There are 22 bags, containing balls numbered 11 through 55. From each bag, 11 ball is removed. What is the variance of the total of the two balls?

Let XX be the random variable denoting the sum of these values. Then, the probability distribution of XX is given by

x2345678910P(X=x)125225325425525425325225125\begin{array} { | l | l | l | l | l | l | l | l | l | l l | } \hline x & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 10 & \\ \hline P(X=x) & \frac{1}{25} & \frac{2}{25} & \frac{3}{25} & \frac{4}{25} & \frac{5}{25} & \frac{4}{25} & \frac{3}{25} & \frac{2}{25} & \frac{1}{25} & \\ \hline \end{array}

We have previously calculated that E[X]=6. E[X] = 6. As such, we can see that

Var(X)=E[(Xμ)2]=(26)2×125+(36)2×225+(46)2×325+(56)2×425+(66)2×525+(76)2×425+(86)2×325+(96)2×225+(106)2×125=4. \begin{aligned} Var(X) & = E[(X - \mu)^2] \\ & = (2-6)^2 \times \frac {1}{25} + (3-6)^2 \times \frac {2}{25} + (4-6)^2 \times \frac {3}{25} \\ & + (5-6)^2 \times \frac {4}{25} + (6-6)^2 \times \frac {5}{25} + (7-6)^2 \times \frac {4}{25} \\ & + (8-6)^2 \times \frac {3}{25} + (9-6)^2 \times \frac {2}{25} + (10-6)^2 \times \frac {1}{25} \\ & = 4. \end{aligned}

 

2. 33 six-sided dice are rolled. What is the variance for the number of times a 33 is rolled? What is the variance for the total of the dice?

Let YY be the random variable representing the number of times a 33 is rolled. The below table lists the probabilities of rolling different numbers of 33s.

num 3s0123probability 12521675216152161216 \begin{array}{|c|cccc|} \hline \mbox{num 3s} & 0 & 1 & 2 & 3\\ \mbox{probability } & \frac{125}{216} & \frac{75}{216} & \frac{15}{216} & \frac{1}{216}\\ \hline \end{array}

The expected number of times a 33 is rolled is 12\frac{1}{2}, so E(Y)=12E(Y) = \frac{1}{2}. We now wish to calculate E(Y2)E(Y^2).

E(Y2)=02×125+12×75+22×15+32×1216=144216=23. E(Y^2) = \frac{0^2 \times 125 + 1^2 \times 75 + 2^2 \times 15 + 3^2 \times 1}{216} = \frac{144}{216} = \frac{2}{3}.

Therefore, Var(Y)=23(12)2=512Var(Y) = \frac{2}{3} - \left(\frac{1}{2}\right)^2 = \frac{5}{12}.

#Combinatorics #Variance #Olympiad

Note by Calvin Lin
7 years, 2 months ago

No vote yet
1 vote

  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:

  • Use the emojis to react to an explanation, whether you're congratulating a job well done , or just really confused .
  • Ask specific questions about the challenge or the steps in somebody's explanation. Well-posed questions can add a lot to the discussion, but posting "I don't understand!" doesn't help anyone.
  • Try to contribute something new to the discussion, whether it is an extension, generalization or other idea related to the challenge.
  • Stay on topic — we're all here to learn more about math and science, not to hear about your favorite get-rich-quick scheme or current world events.

MarkdownAppears as
*italics* or _italics_ italics
**bold** or __bold__ bold

- bulleted
- list

  • bulleted
  • list

1. numbered
2. list

  1. numbered
  2. list
Note: you must add a full line of space before and after lists for them to show up correctly
paragraph 1

paragraph 2

paragraph 1

paragraph 2

[example link](https://brilliant.org)example link
> This is a quote
This is a quote
    # I indented these lines
    # 4 spaces, and now they show
    # up as a code block.

    print "hello world"
# I indented these lines
# 4 spaces, and now they show
# up as a code block.

print "hello world"
MathAppears as
Remember to wrap math in \( ... \) or \[ ... \] to ensure proper formatting.
2 \times 3 2×3 2 \times 3
2^{34} 234 2^{34}
a_{i-1} ai1 a_{i-1}
\frac{2}{3} 23 \frac{2}{3}
\sqrt{2} 2 \sqrt{2}
\sum_{i=1}^3 i=13 \sum_{i=1}^3
\sin \theta sinθ \sin \theta
\boxed{123} 123 \boxed{123}

Comments

Why do you have to square the differences?

Nathan Ramesh - 7 years ago

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] E[ (X - \mu)^2] . Skew, is the third central moment, in which we take cubes instead of squares, namely E[(Xμ)3] E[ ( X - \mu)^3 ] .

Calvin Lin Staff - 7 years ago

Log in to reply

But those cubes won't always be positive....?

Nathan Ramesh - 7 years ago

Log in to reply

@Nathan Ramesh Skew doesn't need to be a positive value. A negative skew will indicate that there (is likely to be ) a longer tail on the left.

Calvin Lin Staff - 7 years ago

Log in to reply

@Calvin Lin But variance is always positive?

Nathan Ramesh - 7 years ago
×

Problem Loading...

Note Loading...

Set Loading...