4.14 Discrete and continuous random variablesIB Maths: Analysis and Approaches HL: Revision notes
Section 1
Mean and variance of a discrete random variable
For a discrete random variable : The standard deviation is .
Example: gives , and .
Writing . Square each value before weighting: .
Section 2
Linear transformations and fair games
If and are constants: Adding shifts every value, so it changes the mean but not the spread. Multiplying by scales the standard deviation by and the variance by .
A game is fair if the player's expected gain is 0. If a player pays 8 dollars and wins 5 dollars per point, the gain is , so : not fair, it favours the player.
Writing . The constant disappears and is squared.
Section 3
Continuous random variables and pdfs
A continuous random variable is described by a probability density function (pdf) with Probabilities are areas: . For any single value, , so and give the same probability.
A pdf may be piecewise: integrate each piece over its own interval and add. For on and on : , so .
To find an unknown constant in a pdf, set the total integral equal to 1.
Reading as a probability. The height of a pdf is a density, and it can be greater than 1.
Section 4
Mode and median of a continuous random variable
The mode is the value of where is greatest. Find it by differentiating and checking for a maximum, and remember to compare with the endpoints. For : gives the mode .
The median satisfies For a piecewise pdf, first find which piece contains by working out the probability of the first piece. If the equation gives two roots, reject the one outside the domain.
For the bus pdf, , so the median is beyond 2: .
Section 5
Mean and variance of a continuous random variable
Replace sums by integrals: In practice you only integrate over the interval where . For on : , , .
The linear transformation rules hold for continuous variables too: a charge has and .
On Paper 2 you may use a GDC to evaluate these integrals, but write down the integral you are evaluating to earn the method mark.
Must know
- Discrete: , .
- ; .
- Fair game: expected gain .
- pdf: and total area 1; probabilities are integrals.
- Mode: maximum of . Median: area up to is .
- Continuous mean and variance: and .
That's the notes covered.
Carry on to the next subtopic.