Find the variance of discrete random variables, work with probability density functions (including piecewise ones), and find the mode, median, mean and variance of continuous random variables and of aX + b.
Each is in the Maths AA glossary, with every other term in the subject.
A random variable that can take any value in an interval of real numbers, such as a time or a length. Its probabilities are areas under a probability density function, and for any single value .
The distribution of a continuous random variable whose probability density function is constant,
With a free account, Augment remembers where you stopped and what you have practiced.
The value that splits the area under the probability density function into two halves, so that .
The value of at which the probability density function takes its greatest value on the domain.
A function describing a continuous random variable , with for all and , so that .
The square root of the variance of a random variable, , measured in the same units as .
The expected squared distance of a random variable from its mean, . It measures the spread of the distribution.
The expected value of a discrete random variable (4.7) describes where its distribution is centred, but two random variables with the same mean can behave very differently. A game that pays every time and a game that pays once in a hundred plays both have an expected prize of , yet the second is far riskier. The variance of a random variable measures this difference in spread.
Many quantities are not counted but measured: the time a customer waits, the lifetime of a component, the mass of a bag of flour. These are continuous random variables, which can take any value in an interval. Their probabilities are described by a curve, the probability density function, and found as areas under it by integration. The same ideas of mean, median, mode and variance then apply, with sums replaced by integrals.
For a set of data, the variance is the mean of the squared deviations from the mean (4.3). A random variable has a variance defined in the same way, with probabilities in place of relative frequencies. Squaring the deviations makes every term positive, so that values above and below the mean do not cancel, and gives more weight to values far from the mean.
For the two games, let be the prize in the first and the prize in the second. with certainty, so every deviation is 0 and .
Subtracting from every value is slow and leads to awkward decimals. Expanding the bracket gives a quicker formula. Using and
Here is the expected value of
Variance is measured in squared units (dollars squared, for example), which are hard to interpret. Taking the square root returns to the units of .
A discrete random variable takes separate values, each with a positive probability. A measured quantity such as a waiting time can take any value in an interval, and there are infinitely many values in any interval, so they cannot each have a positive probability. The probability that a bus arrives after exactly minutes, to infinitely many decimal places, is 0. Probabilities are given instead to intervals of values, such as "between 4 and 5 minutes".
A histogram of many measured waiting times, drawn with relative frequency density on the vertical axis, has total area 1. As more data are collected and the class widths shrink, the tops of the bars approach a smooth curve. That curve is the model for the random variable, and the area under it over an interval is the probability that falls in that interval.
In practice is non-zero only on a finite interval, called its domain, and everywhere else. The infinite integral then becomes an ordinary definite integral over the domain. The two conditions match those for a discrete distribution: probabilities are never negative, and the total probability is 1.

The value is a probability density, not a probability. It can be greater than 1, as long as the total area is 1: the pdf for
Both conditions must be checked. A function whose integral over its domain is 1 can still fail to be a pdf if it takes negative values.
The simplest pdf is constant on an interval. If buses leave a stop exactly every 10 minutes and a passenger arrives at a random time, every waiting time from 0 to 10 minutes is equally likely, and the pdf is a horizontal line.
The area under a uniform pdf is a rectangle, so probabilities can be found without integrating. For the bus, the probability of waiting more than 7 minutes is .
A pdf can be defined by different formulas on different parts of its domain. To find a probability over an interval that crosses a boundary between pieces, split the integral at the boundary and add the parts. The condition that the total area is 1 then involves every piece.
The mode of a data set is its most common value. For a continuous random variable, the corresponding idea is the value where the probability is most densely packed, the highest point of the pdf.
The maximum of is found with the methods of calculus. It may be a stationary point, where and
The median splits a data set into two halves. For a continuous random variable, it splits the area under the pdf into two halves, each of area .
To find , integrate from the lower end of the domain to , set the result equal to and solve for . The equation is often a quadratic or a polynomial of higher degree. Only a solution inside the domain can be the median; the others must be rejected. When the equation cannot be solved by hand, a GDC solver or graph gives .
For a piecewise pdf, first decide which piece contains the median by finding the area of the first piece. In the help-desk example, the area from 0 to 2 is
For a discrete random variable, weights each value by its probability. For a continuous random variable, the probability that lies in a narrow interval of width near
The second form of the variance is the continuous version of , with
When the pdf is symmetric about a line , the mean (and the median) is , with no integration needed. The pdf
For the component lifetime pdf , the three measures of centre are all different, and their order shows the shape of the distribution. The mode was found by differentiation. The mean and the median need integration.

The order mean median mode is typical of a distribution with a long tail to the left (negative skew). The pdf has its long tail to the right, and the order is reversed: mode
The variance of a uniform distribution grows with the length of its interval, as the spread of equally likely values grows.
A random variable is often converted to new units or to a new quantity by a linear formula: a temperature in degrees Celsius to degrees Fahrenheit, a score to a prize of per point minus a stake. The new random variable has a mean and variance that follow directly from those of .
The rule for the mean follows from the definition. For a discrete random variable,
and the continuous case is the same with integrals. For the variance, every deviation from the mean is multiplied by , because . Squaring multiplies each squared deviation by
Adding moves the whole distribution along by without changing its spread, so does not appear in the variance.
Questions on probability density functions bring together integration, solving equations and the properties of distributions. Non-calculator questions use pdfs that integrate exactly; calculator questions often use piecewise pdfs and ask for a median or variance that needs a GDC.
I can calculate and the standard deviation for a discrete random variable.
I can explain why
26 exam-style questions on this subtopic, written in the style of the IB papers. The first has its markscheme open. Counted on
Two machines, A and B, cut wire into pieces of nominal length 100 cm. The error, mm, in the length of a piece is the actual length minus the nominal length.
For pieces cut by machine A, has probability density function , for .
For pieces cut by machine B, has probability density function , for .
Show that .
2 marks
A continuous random variable has probability density function given by
The table below shows the probability distribution of a discrete random variable . The values and are unknown.
One of 39 short multiple-choice questions on 4.14. Pick an answer to see why it's right or wrong.
is a continuous random variable with probability density function . What is ?
The entries of the mathematics: analysis and approaches formula booklet that 4.14 uses. Each opens in the explained booklet.
For a discrete random variable, .
In words, the variance is "the mean of the squares minus the square of the mean".
Next find by squaring each value and weighting by :
Then
The standard deviation is (3 s.f.).
(a) Given that , find and .
(b) Hence find and the standard deviation of .
(a) The probabilities add up to 1, so . The mean gives , so . Substituting gives , so and .
(b) "Hence" means use the values just found. Find :
Then
The standard deviation is (3 s.f.).
Probabilities are areas under its graph:
This is not true for discrete random variables, where and usually differ.
(a) Find the value of .
(b) Find .
(c) Write down .
(a) The total area under is 1:
so .
(b) Integrate the pdf from 1 to 2:
(c) The graph of is a parabola symmetric about , so half the area lies to the right of 2: . "Write down" signals that no calculation is expected.
(b) for , and otherwise.
(a) The integral is
but for (for example
(b) for all in the domain, and
so is a valid pdf, even though for
(a) Find the value of .
(b) Find the probability that a customer waits less than 3 minutes.
(c) Find the probability that a customer waits more than 4 minutes.
(a) Both pieces equal at , so the graph is a triangle with base from 0 to 6 and height . Its area is , so .
The pdf is therefore for and
(b) The interval crosses the join at 2, so split the integral:
(c) Only the second piece is involved:
You can check (c) with the area of the small triangle from 4 to 6:
Find the mode of .
Write and differentiate:
at and
so is a maximum. The mode is
(a) Write down the mode of .
(b) Find the median of .
(a) The graph of is a straight line falling from to , so its greatest value is at the end point: the mode is .
(b) Set the area from 0 to equal to :
Multiply by :
The value lies outside the domain
and the variance is
In practice, integrate over the domain only, since outside it.
By symmetry . Find :
Then
and the standard deviation is (3 s.f.).
(a) find
(b) find
(c) find the median lifetime
(d) find the probability that a component lasts more than 4 years.
(a) Integrate over the domain:
The mean lifetime is 3 years.
(b) Integrate over the domain:
So , and the standard deviation is 1 year.
(c) The median satisfies
a quartic equation. Solve it with a GDC, choosing the root in : years (3 s.f.).
(d) Integrate the pdf from 4 to 5:
The pdf is symmetric about , so .
The standard deviation is minutes (3 s.f.).
The standard deviation of is times the standard deviation of .
For the score on a fair die, and . Apply the rules with and :
The expected gain is per game, so the game favours the player. The does not affect the variance.
The standard deviation is multiplied by : . The variance is .
The mean is and the standard deviation . The 32 moves the mean but has no effect on the spread.
(a) Show that . [2]
(b) Find . [2]
(c) Write down the median and the mean of . [2]
(d) Show that . [5]
(a) The total area is 1:
(b) Integrate the pdf from 0 to :
(c) The graph of on is symmetric about
(d) Find
Evaluate from 0 to :
So , and
where and are positive constants. The function is continuous at .
(a) Show that . [1]
(b) Hence find the values of and . [3]
(c) Find . [2]
(d) Write down the mode of . [1]
(e) Find the median of . [3]
(f) Find and . [4]
The cost, in dollars, of a repair that takes hours is .
(g) Find and . [2]
(a) Continuity at means both pieces give the same value: , so and .
(b) The total area is 1:
So and
(c) Split the integral at 2:
(d) increases on and decreases on , so the mode is .
(e) The area of the first piece is
Since ,
(f) Using a GDC to evaluate the integrals:
(g) and
I can check whether a function is a valid pdf and find an unknown constant from .
I can find by integration, splitting the integral for a piecewise pdf.
I can find the mode of a continuous random variable from a stationary point, an end point or a join.
I can find the median by solving and rejecting roots outside the domain.
I can find , and the standard deviation of a continuous random variable by integration.
I can use and .
A1
AG
For a piece cut by machine A, show that , for .
3 marks
For a piece cut by machine B, find an expression for , for .
2 marks
(M1)
A1
Note: Accept a geometric method using the areas of two triangles.
Machine A cuts 60% of the pieces and machine B cuts the rest. A piece is rejected if .
Find the probability that a randomly chosen piece is rejected.
2 marks
(M1)
A1
Given that a piece is rejected, find the probability that it was cut by machine A.
2 marks
(M1)
A1
Show that the probability that a piece was cut by machine A, given that , is , for .
3 marks
Find the value of for which this probability is 0.65.
2 marks
(M1)
A1
where is a positive constant.
Find the value of .
3 marks
Find the mode of .
2 marks
Find .
3 marks
It is given that .
Find the value of and the value of .
3 marks
Find .
3 marks
Find and .
2 marks
A1
A1
AG
Note: Accept verification by expanding for the final A1.
dividing by , which is non-zero for : A1
A1
AG