Functions of a DRV
Studying this course? Keep your progress in one place.
Key facts
- takes the values with the same probabilities (add them if two values coincide).
- : apply to the values, not the probabilities.
- In general ; equality holds only for linear .
- .
- A constant multiple scales the variance by its square.
A function of a DRV
A new random variable whose values are , each with the probability of the original value.
If is a DRV and is a function, then is also a DRV. It takes the values with probability . If two values of give the same , add their probabilities.
Examples: , , , . A table with rows , and keeps the working clear.
Negative powers need .
| x = 1 | x = 2 | x = 3 | |
|---|---|---|---|
| x² | 1 | 4 | 9 |
| P(X = x) | 0.2 | 0.5 | 0.3 |
x = 1
- x²:
- 1
- P(X = x):
- 0.2
x = 2
- x²:
- 4
- P(X = x):
- 0.5
x = 3
- x²:
- 9
- P(X = x):
- 0.3
with probabilities . What is ?
Expectation of g(X)
Apply to each value, multiply by its probability and add.
Apply to each value, multiply by its probability and add. You do not need the distribution of itself.
Constant multiples come out: .
Worked example
with probabilities . Find and .
- 1
.
- 2
.
- 3
.
with probabilities . What is ?
Why E(g(X)) is not g(E(X))
Only when is linear: otherwise .
In general . For , .
The equality holds only when is a linear function, .
| Value | not | ||
|---|---|---|---|
| Equal to ? | No | No | Yes |
- Value:
- Equal to ?:
- No
- Value:
- not
- Equal to ?:
- No
- Value:
- Equal to ?:
- Yes
Worked example
with probabilities . Compare with .
- 1
, so .
- 2
.
- 3
The gap is .
with equal probabilities. Is ?
Variance of g(X)
Treat as a variable: use and .
Treat as a variable and use , where .
A constant multiple scales the variance: .
For you need : .
Worked example
with probabilities . Find .
- 1
.
- 2
.
- 3
.
- 4
.
Using the example, what is ?
Building an answer
Write the distribution as a table, add rows for , compute expectations, then apply the rules.
Context questions combine the rules: the area of a square tile with random side , and a cost , are functions of . Find the mean cost with .
Use a table method: list , and in rows so each product can be summed.
Check variance is positive; a negative value means or is wrong.
- 1
Write the distribution
as a table; find unknowns from
- 2
Add rows
for and, for variance,
- 3
Compute expectations
and
- 4
Apply the rules
- 5
Round at the end
keep exact values until the final answer
with probabilities , so . The cost is . What is ?
Try an exam question
The discrete random variable takes the values with probabilities . Find .
[5 marks]
- [1].
- [1].
- [1].
- [1].
- [1].
That's the notes covered.
Carry on to the next subtopic.
Try a question
Find .
1 mark, marked against the mark scheme
Find .
1 mark, marked against the mark scheme