Expected Value, Variance, and Standard Deviation of Random Variables
In Discrete Random Variables and Probability Distribution Tables, we learned how to assign probabilities to each distinct outcome of a random experiment. A probability distribution table gives a complete blueprint of what could happen, but in practical decision-making, we need single numerical summaries to answer two central questions:
- Center (Long-Run Average): If this random experiment is repeated thousands of times, what average outcome should we expect per trial?
- Spread (Risk and Dispersion): How widely will individual outcomes scatter around that expected average?
On paper, we answer these questions using the Expected Value , the Variance , and the Standard Deviation .
1. Conceptual Meaning of Expected Value
The Expected Value of a discrete random variable , commonly written as or the Greek letter (mu), is the probability-weighted average of all possible numerical values of .
Unlike the simple arithmetic mean of raw data where each observation carries an equal weight of , the expected value multiplies each outcome by its theoretical likelihood .
[!IMPORTANT] The expected value does not have to be an outcome that can actually take. For instance, the expected value of rolling a standard 6-sided die is , even though a physical die can never show pips. It represents the arithmetic mean of the outcomes over an infinite sequence of independent trials.
2. Core Formulas on Paper
Linear Transformations of a Random Variable
When a random variable is scaled by a constant factor and shifted by a constant ():
Adding a fixed baseline constant shifts the center by , but does not change the spread (). Multiplying by stretches both the mean and the standard deviation by , which scales the variance by .
3. The Paper Notebook 4-Column Table Layout
Calculating variance using the definition requires subtracting from every outcome, squaring decimals, and re-multiplying. On paper, this is tedious and prone to arithmetic mistakes.
The standard examination technique uses the Paper 4-Column Table:
Once the two bottom sums are computed:
- Column 3 total gives .
- Column 4 total gives .
- Subtract: .
- Take the principal square root: .
4. Step-by-Step Worked Examples
Worked Example 1: The Carnival Wheel and Fair Game Analysis
Problem: A school festival booth features a spinning wheel divided into 8 equal sectors:
- 1 sector awards
- 2 sectors award
- 5 sectors award
It costs to play the game once. Let represent the gross prize payout, and let represent the player's net financial gain ().
- Construct the probability distribution table for .
- Calculate the expected gross payout .
- Calculate the expected net gain . Is the game "fair"?
- Compute the variance and standard deviation of the payout.
Step 1: Probability Distribution of
Each sector has probability .
Check probability sum: .
Step 2: 4-Column Table on Paper
Step 3: Compute Expected Values and Fair Game Status
The expected gross payout is:
Using the linear property :
[!NOTE] In mathematics, a game is strictly fair if and only if the expected net gain is zero: . Since , the game is favorable to the player (the booth loses on average per player).
Step 4: Compute Variance and Standard Deviation
Using the paper shortcut formula:
Standard deviation:
Worked Example 2: Insurance Claim Risk Assessment
Problem: An electronics insurance company covers a smartphone against accidental screen damage over a 1-year period. Let be the repair payout amount in dollars with the following paper probability distribution:
- Verify that this is a valid probability distribution.
- Find the expected repair payout .
- Determine the variance and standard deviation .
- If the company charges an annual premium of and incurs a fixed administrative cost of per policy, write the profit equation and compute and .
Step 1: Verification
All individual probabilities satisfy .
Step 2: 4-Column Paper Table Setup
- Expected payout:
Step 3: Variance and Standard Deviation
Taking the square root on paper:
Step 4: Company Profit Distribution
Using linear transformation rules:
Interpretation: The company loses an average of per customer at this premium price. The premium must be increased above to break even.
Worked Example 3: Finding an Unknown Probability and Payout
Problem: A discrete random variable has outcomes . The distribution is partially known:
- Find the value of the constant .
- Calculate .
- Determine .
Step 1: Solve for using
Thus:
Step 2: 4-Column Table
Step 3: Compute Variance
Standard deviation: .
5. Common Mistakes & Paper Traps
[!WARNING] Trap 1: Squaring the probability instead of the outcome. When computing , students sometimes calculate . This is completely wrong! Always remember: the outcome is squared, never the probability:
[!CAUTION] Trap 2: Forgetting to square in the shortcut formula. Writing instead of is one of the most frequent examination errors. If your calculated variance is negative, stop immediately: variance can never be negative! A negative result is proof that you made an arithmetic error.
[!WARNING] Trap 3: Forgetting the negative sign squared in linear transformations. If , the variance is:
Never write or . Dispersion measures ( and ) are strictly non-negative.
6. Pencil & Paper Practice
Practice 1
A fair four-sided die (tetrahedral die numbered ) is rolled once. Let be the number facing down.
- Write the probability distribution table.
- Calculate on paper.
- Calculate and find and .
??? success "Solution to Practice 1" Each outcome has probability .
Set up the paper table:
```math
\begin{array}{|c|c|c|c|}
\hline
x_i & P(X = x_i) & x_i P(X = x_i) & x_i^2 P(X = x_i) \\
\hline
1 & \frac{1}{4} & \frac{1}{4} & 1 \times \frac{1}{4} = \frac{1}{4} \\
2 & \frac{1}{4} & \frac{2}{4} & 4 \times \frac{1}{4} = \frac{4}{4} \\
3 & \frac{1}{4} & \frac{3}{4} & 9 \times \frac{1}{4} = \frac{9}{4} \\
4 & \frac{1}{4} & \frac{4}{4} & 16 \times \frac{1}{4} = \frac{16}{4} \\
\hline
\mathbf{\Sigma} & \mathbf{1} & \mathbf{\frac{10}{4} = 2.5} & \mathbf{\frac{30}{4} = 7.5} \\
\hline
\end{array}
```
1. $E(X) = \frac{10}{4} = 2.5$
2. $E(X^2) = \frac{30}{4} = 7.5$
3. Variance:
```math
\operatorname{Var}(X) = 7.5 - (2.5)^2 = 7.5 - 6.25 = 1.25 = \frac{5}{4}
```
Standard deviation: $\sigma = \sqrt{1.25} \approx 1.118$.Practice 2
Let have mean and standard deviation . Define .
- Find .
- Find .
- Find .
??? success "Solution to Practice 2"
First find the variance of :
math \operatorname{Var}(X) = \sigma^2 = 3^2 = 9
1. Expected value:
```math
E(Y) = E(4 - 2X) = 4 - 2 E(X) = 4 - 2(12) = 4 - 24 = -20
```
2. Variance:
```math
\operatorname{Var}(Y) = (-2)^2 \cdot \operatorname{Var}(X) = 4 \times 9 = 36
```
3. Standard deviation:
```math
\sigma(Y) = \sqrt{36} = 6 \quad \text{or} \quad |-2| \cdot \sigma(X) = 2 \times 3 = 6
```Test yourself
A random variable has outcomes with probabilities respectively. What is ?
For a discrete random variable , you calculated and . What is the variance ?
If random variable has variance , what is the variance of ?