SA5 - Functions of random variables
A fixed change to every outcome changes the whole probability distribution. SA5 uses expectation and variance rules for linear changes, then calculates moments of nonlinear functions, including inverse powers. You will see why transforming an average is usually different from averaging transformed outcomes.
Linear changes to mean and variance
If is equally likely to be or , why does have no spread even though does? To distinguish linear and nonlinear changes, start with a change that preserves the shape of the distribution.
Suppose . Each possible value is doubled, then shifted by 5; its probability stays attached to it. Doubling stretches distances from the mean by 2, while adding 5 moves the outcomes and their mean together, leaving those distances unchanged.
Linear transformation
For real constants and a random variable with finite mean and variance,
These general transformation formulae are required knowledge and are not printed in the formula booklet. They apply for negative and zero too.
Why does the first rule hold? In the weighted sum, , since the probabilities total 1. For the variance, let . Subtracting the transformed mean gives
Squaring this deviation introduces , proving the variance rule. A negative reverses order but still gives nonnegative squared distances. When , every outcome is , with mean , variance 0 and standard deviation 0.
Worked example 1: stretch and shift
Question. and . For , find its mean, variance and standard deviation.
Plan. Apply the linear rules, keeping the mean multiplier separate from the squared variance multiplier.
Answer. Mean 11, variance 8, standard deviation .
Check. One distribution with the stated moments has values and probabilities . Its transformed values are , with mean 11 and mean squared deviation .
Change only the sign of the multiplier. The mean changes, but the variance does not.
Worked example 2: reversing the outcomes
Question. and . For , find its mean, variance and standard deviation.
Plan. Use the signed multiplier in the mean and its square in the variance.
Answer. Mean , variance 8, standard deviation .
Check. The distribution used for the previous check now gives values . Their deviations from are , whose squared weighted average is still 8.
If a problem gives standard deviation rather than variance, square it before using the variance rule.
Watch out
Wrong: . A shift adds no spread, and the multiplier must be squared. Standard deviation uses , never a negative multiplier.
Use these rules with a different multiplier and given standard deviation.
Expectation of a function
A nonlinear change may alter the gaps between outcomes or send several values to the same result. You can still average those results using the original probabilities.
Average the transformed values
For a function defined at every possible value with positive probability,
For infinite support the expectation must exist; finite support and finite function values are sufficient. This formula is required knowledge and is not printed in the booklet. In general, .
You need not construct a new distribution first. If two original values give the same transformed value, both weighted contributions belong in the sum. To construct the new distribution instead, add their probabilities before recording that value once.
Worked example 3: square before averaging
Question. has values with probabilities . Find .
Plan. Apply to each value and use its original probability.
Answer. .
Check. takes values with probabilities ; averaging this new table also gives .
Keep the distribution and square, then add 3 to the function. This lets the general sum and the linear shift rule check one another.
Worked example 4: shift a nonlinear outcome
Question. For the same , find .
Plan. Transform every original value using , then weight.
Answer. .
Check. Treat as the random variable in the linear shift rule: .
Here , so , far from . Squaring one average loses the separate outcomes that the weighted sum needs.
Watch out
Apply to each value, not to each probability. If transformed values coincide, combine their masses rather than deleting a repeated contribution.
Average a new function of new values.
Continue this lesson.
You’re previewing NovaLearn without an account. Create a free account to read the rest.
Create free account