Law of the Unconscious Statistician — Definition, Formula & Example
The Law of the Unconscious Statistician (LOTUS) is a shortcut for finding the expected value of a function of a random variable, such as or . You weight each value by the probability of itself. You never need to work out the distribution of .
Let be a random variable and a function. If is discrete with probability mass function , then . If is continuous with probability density function , then . In both cases the sum or integral must converge absolutely. The result is a theorem, not a definition. By definition, uses the distribution of the new variable , and LOTUS shows you get the same number using the distribution of . The name is a joke: people use it so naturally that they forget it needs proof.
Key Formula
Where:
- = The original random variable
- = The function applied to X, such as squaring
- = Probability mass function of X (discrete case)
- = Probability density function of X (continuous case)
- = Expected value of the transformed variable g(X)
Worked Example
Problem: A machine cuts square floor tiles. The side length (in inches) is 1, 2, or 3 with probabilities 0.5, 0.3, and 0.2. Find the expected area of a tile.
Step 1: The area is a function of the side length, so set . You want .
Step 2: Apply LOTUS. Square each side length and weight it by that length's own probability. You do not need a separate table for the area.
Step 3: Check against the tempting shortcut of squaring the mean. It gives a different, incorrect value.
Answer: The expected tile area is 3.5 square inches.
Why It Matters
LOTUS is the standard way to compute variance, , and moment generating functions, , in a college probability course. Actuaries and engineers use it to find the expected cost or payoff when only the distribution of the underlying quantity is known.
Common Mistakes
Mistake: Computing as , for example squaring the mean to get an expected area of .
Correction: In general . The two agree for every distribution only when is linear, . Apply to each value first, then average with the probabilities.
