Linear transformations of random variables (HL)
Suppose your teacher gave you mark on an internal assessment, then using linear regression, IB moderates your mark to . This is a linear transformation of a random variable.
Last updated 2025-08-09.
Formulas
The scaling and shifting effects on a random variable do appear on the expected value. Whereas standard deviations are scaled but variance is scaled twice. Shifts do not affect either variance or standard deviation, as they quantify how the values are dispersed around the expected value.
What linear transformation is not
Suppose you earn a grade in group 5 mathematics. Your total subject grades across six subjects is not , rather each subject grade may be different. Your total subject grades would instead be . This is linear combination, which has its own formulas for expected value and variance beyond the scope of this course.
Bonus: distribution of random variables under linear transformations
Example: Let .
a) Find .
b) Find .
c) Characterize the distribution of .
a)
b)
c)
In other words, every normal distribution is a linear transformation of the standard normal. Similarly, every linear transformation of any normal distribution is also a normal distribution.
In general, for some continuous random variable with probability density function , the probability density function of is
This is essentially linear transformations of a function. The vertical transformation keeps the area equal to 1. The transformations apply to linear transformations of any continuous random variable, though normal distribution is a special case in that the transformations are also normal.
You can visualize different , where , use this Desmos playground. The mean and variance of are also provided.
Linear transformation of a discrete random variable behaves similarly, but there is no need to transform the as they are already probability.
Suppose we have a discrete random variable defined over , and probability mass function , then has pmf
For instance, if you have following , then has non-zero probabilities over the even numbers from to .