
you are here 4 219
using discrete probability distributions
E(aX + b) = aE(X) + b
Var(aX + b) = a
2
Var(X)
We can generalize this for any random variable. For any
random variable X
This is called a linear transform, as we are dealing with
a linear change to X. In other words, the underlying
probabilities stay the same but the values are changed into
new values of the form aX + b.
Square the a and multiply it
by the variance of X (drop
the b).
Q:
Do a and b have to be constants?
A: Yes they do. If a and b are variables, then this result won’t hold
true.
Q:
Where did the b go in the variance?
A: Adding a constant value to the distribution makes no difference
to the overall variance, only to the expectation.
When you add a constant to a variable, it in effect moves the
distribution along while keeping the same basic shape. This means
that the expectation shifts along by b, but as the shape remains
unchanged, the variance says the same.
Q:
I’m surprised I have to multiply the variance by a
2
. Why’s
that?
A: When you multiply a variable by a constant, you multiply all its
underlying values by that constant.
When you calculate the variance, you perform calculations based
on the square of the underlying values. And as these have been
multiplied by a, the end result is that you multiply the variance by a
2
.
Q:
Do I really have to remember how to do linear transforms?
Are they important?
A: Yes, they are. They can save you a lot of time in the long
run, as they eliminate the need for you to have to calculate the
expectation and variance of a probability distribution every time the
values change. Rather than calculating a new probability distribution,
then calculating the expectation and variance from scratch, you can
just plug the expectation and variance you already calculated into the
equations above.
Knowing linear transforms can also help you out in exams. First of
all, you can save valuable time if you know what shortcuts you can
take. Furthermore, exam papers don’t always give you the underlying
probability distribution. You might be told the expectation of variable,
and you may have to transform it based on very basic information.
Q:
I tried calculating the expectation and variance the long
way round and came up with a different answer. Why?
A: You’ve seen by now that it’s easy to make mistakes when you
calculate expectations and variances. If you calculate these longhand,
there’s a good chance you made a mistake somewhere along the line.
You’re always better off using statistical shortcuts where possible.
General formulas for linear transforms
Multiply the expectation by a, and
then add b.