A Level Further Mathematics · Chapter 44 · Further Statistics · Further Statistics 1
A probability generating function packs a whole discrete distribution into one function, so that means, variances and sums of independent variables come from simple algebra.
Listing every probability of a distribution can be clumsy, and adding two independent variables by hand is slower still. This chapter stores the probabilities as the coefficients of a power series, then lets calculus and multiplication do the hard work.
In this chapter · jump to a section
Start here
Your route through this chapter
By the end of this chapter you will be able to:
- define the probability generating function and use
- read probabilities from the coefficients of a generating function
- derive the generating functions of the binomial, Poisson, geometric and negative binomial distributions
- find the mean from and the variance from
- find the distribution of a sum of independent variables by multiplying generating functions
- find the generating function of
Time: three sessions, about 4½ hours, plus the practice ladder and the exam workshop.
You need first: discrete random variables, the binomial, Poisson and geometric distributions, and differentiation.
The big idea
The big idea
For a discrete random variable taking the values , the probability generating function is
Each probability becomes the coefficient of a power of . The variable is only a bookkeeping device, so it never has to mean anything itself.
The diagram shows the generating function of a fair die. At only the constant term survives, which is the probability of a zero. At every power of equals one, so the curve passes through height 1. The steepness at turns out to be the mean.
Why a function instead of a table?
A table of probabilities is fine for one variable. Problems start when variables are combined. The distribution of a sum needs every pair of outcomes to be considered, which is slow and error-prone. A generating function turns that whole calculation into a single multiplication. It also gives the mean and variance by differentiation, without summing a long series by hand.
Storing information in coefficients
The idea of storing a list of numbers as the coefficients of a power series is used across mathematics. Counting problems, recurrence relations and probability all use it. The function holds every number at once, and algebra on the function acts on all the numbers together. It is a little like packing a whole suitcase so that it can be carried in one hand.
A family of related tools
Generating functions are one of several transforms used in probability. Others replace the powers of with exponentials, and work for continuous variables too. The probability generating function is the simplest of the family. It works for variables that take whole-number values, which covers every discrete distribution in this course.
Why the letter t?
The letter is a marker that keeps the probabilities apart. Each probability is attached to its own power, so they never mix when the function is manipulated. At the end, choosing a value for , or differentiating and then choosing a value, pulls out exactly the information needed. The marker itself never has a meaning in the problem.
How the chapter is organised
The first two sections build generating functions and learn the standard forms. The next two find means and variances by differentiation. The last two combine variables, first by adding independent ones and then by shifting and stretching a single one. Each section adds one tool, and the examination questions usually need several tools together.
Section 1
Defining a generating function
The definition
The probability generating function of is . For a variable taking whole-number values, this is the sum of over every value. The coefficient of is the probability that equals . Because the probabilities add up to 1, every generating function satisfies
Common mistake: forgetting that the probabilities must make G(1) equal to 1. When a generating function contains an unknown constant, the condition is how to find it. Leaving it unchecked can produce a "distribution" whose probabilities add up to something other than 1.
Reading probabilities from coefficients
To find , expand the generating function and read off the coefficient of . For a polynomial this is immediate. For a closed form such as an exponential, expand it as a series first. The constant term is always , which can also be found by substituting .
Generating functions are expectations
The definition is worth remembering, not just the sum. It shows that a generating function is an ordinary expected value, of the new variable . Many results follow directly from facts about expectations. For example, the rule for sums of independent variables comes from the fact that expectations of products split when variables are independent.
Values outside zero to one
The variable can take any value for which the series makes sense. Values between 0 and 1 always work, since the series is then bounded by the sum of the probabilities. Values above 1 may make an infinite series grow without limit. Most work in this chapter uses near 1, where everything is well behaved.
Finding unknowns
A question may give a generating function with an unknown constant, such as . Set and solve for the constant. Then the remaining coefficients give the individual probabilities. Check that each probability lies between 0 and 1, which confirms that the function is a valid generating function.
A polynomial or an infinite series
If a variable takes only finitely many values, its generating function is a polynomial. If it can take infinitely many values, as a Poisson or geometric variable can, the generating function is an infinite series. Such a series usually has a neat closed form. Both kinds behave in the same way for the purposes of this chapter.
Checking validity
A function is a valid probability generating function only if every coefficient is between zero and one and the coefficients add up to one. Negative coefficients are never allowed. When a question asks whether a function could be a generating function, check both conditions. Failing either one rules the function out.
Why the definition uses an expectation
Writing the definition as an expectation makes the later results feel natural. The expectation of a function of a random variable is found by weighting each value by its probability. Here the function is raised to the power of the variable. So the definition is just a weighted sum, with the weights being the probabilities.
Sketching the curve
Between zero and one, a generating function always rises from to 1. It never dips, because every coefficient is positive. A distribution with most of its probability at zero gives a curve that starts high and stays fairly flat. One with large values starts low and climbs steeply near the end.
Generating functions in examinations
Questions often give a generating function and ask for probabilities, the mean or the variance. Others ask you to derive a standard form from the definition. A third type combines variables. Recognising which type a question is helps to choose the right tool quickly, and saves valuable time.
Worked example 1: finding a constant
The variable has generating function . Find and .
| Working | Reason |
|---|---|
| The probabilities must add up to one | |
| Solve for the constant | |
| Read the coefficient of t squared |
Generating functions from a story
Sometimes the distribution is described in words rather than given as a table. Write down each value the variable can take with its probability, then build the sum. For example, a spinner that lands on 1, 2 or 5 with given probabilities has a generating function with only those three powers. Missing powers simply have zero coefficients.
Worked example 2: a four-sided die
A fair four-sided die shows 1, 2, 3 or 4. Write down its generating function and evaluate it at .
| Working | Reason |
|---|---|
| Each score has probability one quarter | |
| Substitute the value of t | |
| Add the four terms and divide by four |
Check yourself. The variable has generating function . State and verify that .
Show the answer
The coefficient of is 0.5, so . Substituting gives , as every generating function must.
Section 2
The standard distributions
Binomial
For , with , the binomial theorem gives
A single trial has generating function , and independent trials multiply it times.
Common mistake: leaving out the factor t in the geometric generating function. A geometric variable counts trials, so it starts at 1, and every term carries at least one power of . Writing instead of describes the number of failures, a different variable.
Poisson
For , the generating function is . The derivation uses the exponential series, shown in the reveal below. The neat closed form is one reason the Poisson distribution is so convenient, and it makes results about sums of Poisson variables almost immediate.
Derivation: the Poisson generating function
Write the definition as a sum and collect the powers of t with the powers of λ.
The remaining sum is the exponential series for .
Setting gives , as required.
Geometric and negative binomial
For , the number of trials up to and including the first success, the terms form a geometric series. Summing it gives
The negative binomial counts trials up to the th success, which is the sum of independent geometric variables. So its generating function is .
Uniform on 1 to n
A discrete uniform variable on has every coefficient equal to . Its generating function is . Summing the geometric series gives a closed form, , which is valid for . The formula booklet lists the closed forms for each standard distribution.
Recognising a distribution
Different distributions have different generating functions. So if a generating function matches a standard form, the variable has that distribution. For example, a generating function of must belong to . This recognition step is what makes generating functions so useful for sums.
Where the conditions matter
The closed forms rely on series that converge. The geometric form needs , which holds near because . These conditions rarely cause trouble, but stating them shows care. Writing the condition next to the closed form is good practice in examination answers.
One trial at a time
A single trial that succeeds with probability takes the value 1 with probability and 0 otherwise. Its generating function is . Every binomial, geometric and negative binomial result can be built from this simple starting point. That is why the same letters , and keep appearing together.
The negative binomial as a sum
Waiting for the third success is the same as waiting for the first, then waiting again for the second, then again for the third. These three waits are independent geometric variables. So the generating function of the total wait is the cube of the geometric generating function. Section 5 explains why independent sums multiply.
Which geometric variable?
Some books define the geometric variable as the number of failures before the first success, starting at zero. This chapter counts trials, starting at one, which matches the formula booklet. The two versions differ by one, and their generating functions differ by a factor of . Always check which version a question uses.
Comparing the three curves
The diagram shows binomial, Poisson and geometric generating functions on the same axes. Each starts at its own probability of zero, and all three end at one. The geometric curve starts at zero because a geometric variable can never be zero. The steepest curve near one belongs to the distribution with the largest mean.
Learning the forms
It pays to know the standard forms well enough to recognise them instantly. Practise writing each one from memory, together with its mean and variance. Then, faced with an unfamiliar product, you can spot familiar pieces quickly. Fluency here makes the later sections of the chapter much easier.
Worked example 3: a Poisson coefficient
Use the generating function of to find .
| Working | Reason |
|---|---|
| Use the Poisson generating function with rate two | |
| The constant term is found by setting t to zero | |
| Evaluate the exponential on a calculator |
Using the formula booklet
The booklet lists the generating functions of the standard distributions. You may still be asked to derive them, so know where each one comes from. Using the booklet value without derivation is fine when a question just needs the function. When a question says "show that", the derivation itself earns the marks.
Spotting a sum inside a function
A generating function that is a power of a simpler one, such as , signals a sum of independent identical variables. The simpler function describes one of them, and the power counts them. This viewpoint explains the binomial and negative binomial forms, and it helps when meeting unfamiliar generating functions in a question.
Worked example 4: a geometric value
For , evaluate .
| Working | Reason |
|---|---|
| Use the geometric generating function | |
| Substitute one half for t | |
| Divide to find the value |
Check yourself. Taking , evaluate and say what it represents.
Show the answer
. This is the constant term, so it is , the probability of four failures.
Section 3
The mean from G′(1)
Differentiating the series
Differentiating term by term gives . Setting makes every power of equal to one. What remains is , which is the definition of the mean:
Common mistake: taking the mean as G′(0) instead of G′(1). At every term of vanishes except the first, leaving only . The mean needs every term to survive, and only does that.
The curve G(t) and its gradient at t = 1
- G(1), the total probability
- 1
- G(0) = P(X = 0)
- 0.047
- Mean G′(1)
- 2.4
Figure 44.1 draws with its tangent at , whose gradient is the mean. The wrong model's tangent at has gradient instead.
Reading the gradient
The gradient at measures how strongly the higher powers of dominate. A distribution with large values has big coefficients on high powers, so the curve climbs steeply through . A distribution concentrated near zero has a flat curve there. So the shape of the curve near 1 shows the mean at a glance.
Using closed forms
For a closed form, differentiate as normal. For the binomial, , so . For the Poisson, , so . These match the familiar formulas, which is a reassuring check that the method works.
The quotient rule for the geometric
The geometric generating function is a quotient, so the quotient rule is needed. Its derivative simplifies to , and at this is . Simplifying before substituting keeps the algebra short. The reveal in section 4 continues this calculation to find the variance.
When the derivative is undefined at 1
For the uniform distribution, the closed form has a zero denominator at . In that case, use the polynomial form instead, which can be differentiated without difficulty. This shows the value of knowing both forms. A polynomial is always safe to differentiate and substitute into.
Why the gradient is the mean
The derivative of is , which brings the value down in front. Each probability is then multiplied by its value, exactly as in the definition of the mean. Setting to one removes the remaining powers. So the gradient at one is a weighted average of the values, which is the mean.
Checking against known results
Generating functions give familiar results for familiar distributions. A binomial mean of , a Poisson mean of and a geometric mean of all appear from the derivative. Comparing with these known values is an excellent check. A different answer means an error in the differentiation or the substitution.
Keeping track of constants
Constants in front of a generating function stay in front when differentiating. In a function such as , the fraction multiplies every term of the derivative. Forgetting it gives a mean that is too large by a factor of six. Write the constant clearly at every step.
Worked example 5: the mean of a die
Use the generating function of a fair six-sided die to find its mean.
| Working | Reason |
|---|---|
| Differentiate the polynomial term by term | |
| Substitute one for every power of t | |
| The mean is the derivative at one |
Interpreting the mean
A mean found by differentiation is still an ordinary mean. It is the long-run average value over many repetitions. For a geometric variable with , a mean of 4 says that on average four trials are needed for the first success. Stating the meaning in context shows understanding, and some questions ask for it.
Worked example 6: the geometric mean
For , find from the generating function.
| Working | Reason |
|---|---|
| Apply the quotient rule and simplify | |
| Use one minus q equal to p | |
| Substitute the value of p |
Check yourself. Find the mean of the variable with generating function .
Show the answer
Differentiating term by term gives , so the mean is . This agrees with the direct calculation from the probabilities, which multiplies each value by its probability and adds: .
Section 4
The variance from G″(1)
The second derivative
Differentiating again gives , so . Adding back the mean gives , and then
Common mistake: leaving G′(1) out of the variance formula. The second derivative gives , not . Forgetting to add back makes the variance too small, and it can even come out negative.
The variance from G″(1)
- G′(1) = E(X)
- 2.5
- G″(1) = E(X(X − 1))
- 6.25
- Var(X) = G″(1) + G′(1) − G′(1)²
- 2.5
Figure 44.2 shows the distribution with a band one standard deviation either side of the mean. The wrong model's band, without , is too narrow or impossible.
Derivation: the mean and variance of the geometric distribution
Differentiate the generating function twice with the quotient rule.
At the denominators become powers of , so substitute into the variance formula.
So a geometric variable has mean and variance .
Why X(X − 1) appears
Each differentiation brings down one power and lowers it by one. The first gives , the second gives . So the second derivative naturally produces the product , sometimes called the second factorial moment. It is not the same as , which is why the extra term is needed.
A check that never fails
A variance can never be negative. If a calculation gives a negative variance, something has gone wrong, most often the missing . A quick sanity check against a familiar result also helps. For a Poisson variable the variance should equal the mean, so any other answer reveals an error.
Organising the working
Find and , then substitute into each. Write down and as separate numbers before combining them. This makes the method marks easy to award and the arithmetic easy to check. Simplify derivatives before substituting whenever possible.
Higher moments
Differentiating a third time gives , and so on. These higher factorial moments describe the skewness and other features of the distribution. They are rarely needed in this course, but they show that the generating function holds all the information about the distribution, not just its mean and variance.
Comparing the variance formula with the usual one
The usual formula is . The generating function version simply supplies as . So the two formulas are really the same. Seeing this connection makes the generating function version easy to remember and hard to get wrong.
When to use which method
For a short table of probabilities, the direct method may be quicker. For a closed form, such as a Poisson or geometric function, differentiation is usually much faster than summing an infinite series. In an examination, follow the method the question asks for. If it says "use the generating function", the direct method earns no marks.
Higher derivatives of products
Differentiating a product of functions, such as a negative binomial generating function, needs the product or chain rule. The algebra can become long. It often helps to differentiate a simpler form first, such as the logarithm of the function, or to expand in powers of . Careful layout prevents slips.
Standard deviation
The standard deviation is the square root of the variance. It has the same units as the variable, which makes it easier to interpret. Once the variance comes from the generating function, take the square root if the question asks about spread in the original units. Keep the variance itself for further calculations.
Worked example 7: the Poisson variance
For , find the variance from the generating function.
| Working | Reason |
|---|---|
| and | Each derivative brings down a factor of lambda |
| Apply the variance formula | |
| The variance equals the mean, as expected |
Working with a closed form
For a closed form, differentiate twice before substituting . Simplify the first derivative if possible, since that makes the second derivative shorter. Substituting early, before the second differentiation, is a common error. It turns a function into a number, and the derivative of a number is zero.
The variance of a binomial
For , the first derivative is and the second is . At these become and . The variance formula then gives , the familiar binomial result. This is a good example to practise.
Worked example 8: the variance of a die
Find the variance of a fair six-sided die using its generating function.
| Working | Reason |
|---|---|
| Sum x times x minus one over the faces | |
| Apply the variance formula with the mean | |
| Simplify the fraction and evaluate it |
Check yourself. Work out the variance for the generating function .
Show the answer
Differentiating twice leaves the constant , so , while the mean is . Adding the mean back and then subtracting its square gives the variance, , which is positive as every variance must be.
Section 5
Sums of independent variables
Multiplying generating functions
If and are independent, then and are independent too, and the expectation of their product splits:
So the generating function of a sum is the product of the generating functions. The same holds for any number of independent variables.
Common mistake: adding the generating functions instead of multiplying them. A sum of variables corresponds to a product of generating functions. Adding them gives a function with , which cannot be a probability generating function at all.
Sums of independent variables multiply generating functions
- G(1) for X + Y
- 1
- Mean of X + Y
- 3.5
- P(X + Y = 2)
- 0.185
Figure 44.3 multiplies the generating functions of two Poisson variables and compares the coefficients with a single Poisson distribution. The wrong model's added functions give probabilities totalling 2.
Sums of Poisson variables
For independent and , the product is . This is the generating function of . So the sum of independent Poisson variables is Poisson, with the rates added. Generating functions prove this in one line.
Two dice
The total of two fair dice has generating function , where is the die's generating function. Expanding the square collects the ways of making each total, as the diagram shows. The coefficient of is , because there are six ways to roll a total of seven.
Binomial sums
For independent and with the same , the product is . So . If the probabilities differ, the product does not simplify to a binomial form, and the sum is not binomial. Generating functions make this distinction clear.
Independence is essential
The product rule relies on independence. If and are linked, the expectation of the product does not split, and the rule fails. For example, is not the same as the sum of two independent copies. Always check that a question states or implies independence before multiplying.
Many variables at once
The product rule extends to any number of independent variables. The sum of independent copies of has generating function . This is how the binomial arises from single trials, and how the negative binomial arises from geometric waits. It is a quick route to the distribution of any total.
Means and variances of sums
Differentiating a product gives the familiar results that means and variances add for independent variables. Generating functions are not needed just for those. Their real power is finding the whole distribution of the sum, including individual probabilities, which the addition rules alone cannot give.
Reading probabilities from a product
To find a probability for a sum, find the coefficient of the right power in the product. For polynomials this means collecting all the pairs of powers that add to the target. For exponentials, simplify the product to a recognisable form first. Then read the probability from the standard formula.
Differences are harder
The generating function of would need negative powers of , because the difference can be negative. Probability generating functions are designed for variables taking non-negative whole numbers. So this chapter deals with sums, not differences. Differences of normal variables are handled later, with different tools.
Worked example 9: adding Poisson variables
The independent variables and are added. Find .
| Working | Reason |
|---|---|
| Multiply the generating functions | |
| So | Recognise the Poisson form |
| Use the Poisson probability formula |
Totals with different variables
The two variables in a sum need not have the same distribution. A Poisson count plus a binomial count still has a generating function equal to the product. The product may not match a standard form, but its coefficients still give the probabilities. Expanding a few terms is often enough to answer a question.
When the sum is not standard
If the product does not simplify to a standard form, the distribution is still fully described by the function. Probabilities come from coefficients, the mean from the first derivative and the variance from the second. A standard name is helpful but not necessary. The generating function holds everything needed.
Worked example 10: two dice
Find the probability that the total of two fair dice is 4, using generating functions.
| Working | Reason |
|---|---|
| Square the die's generating function | |
| Coefficient of : from , , | Count the pairs of powers adding to four |
| Three pairs out of thirty-six |
Check yourself. Suppose and are independent and are added. State the distribution of and its mean.
Show the answer
Because the variables are independent, their generating functions multiply, giving . This is the binomial form with eight trials, so . Its mean is , the sum of the two separate means.
Section 6
Linear transformations
The rule for Y = aX + b
If , then , so
The power shifts every value up by . Replacing by stretches the values by the factor .
Common mistake: writing aG(t) + b for the generating function of aX + b. Multiplying the function by and adding breaks the rule that . The shift and stretch act on the powers of , not on the function's value.
Mean and variance of a transformation
Differentiating and setting gives . The variance becomes . These are the familiar rules for linear transformations. Generating functions confirm them, and they are often the quickest route in an examination.
Identifying a distribution
A question may give a generating function and ask what distribution it represents. Compare it with the standard forms. A factor of in front signals a shift. A power of inside, such as , signals a stretch. Recognising these features lets you describe the variable completely.
Combining sums and transformations
The rules can be combined. For example, if and are independent, then has generating function . Each variable is transformed first, then the results are multiplied. This handles weighted totals, such as scores where some items count double.
Uniqueness
A key fact is that a generating function determines its distribution. Two variables with the same generating function have the same distribution. This uniqueness is what allows a distribution to be identified by its generating function. Without it, recognising a product as a Poisson function would prove nothing.
Shifting values
Adding a constant to every value moves the whole distribution along without changing its shape. In the generating function, every power of rises by , which is the same as multiplying by . The probabilities stay attached to their values, which have simply moved. The coefficients do not change, only their positions.
Stretching values
Multiplying every value by spreads the distribution out. In the generating function, becomes , which is the same as replacing by . Values that were one apart become apart. The gaps between the new values have probability zero, which shows up as missing powers.
A useful check
After transforming, substitute . The answer should still be one, because transformations do not change the total probability. The form passes this check, since . The wrong form fails it, giving instead.
Transformations in context
A game might award two points for every head plus a bonus of one point. The score is then , where is the number of heads. Its generating function follows directly from the transformation rule. Thinking about the context first makes it clear which constants are and .
Units and scaling
When values are scaled, the mean scales by the same factor but the variance scales by its square. This matches the behaviour of units: if lengths double, areas quadruple. A variance is measured in squared units, so it must respond to scaling by the square of the factor. The generating function confirms this automatically.
Worked example 11: a transformed die
A fair die shows , and . Find , and .
| Working | Reason |
|---|---|
| Shift by one and replace t by t squared | |
| Transform the mean of the die | |
| Multiply the variance by two squared |
Scaling and the Poisson
If is Poisson and , then takes only multiples of three. Its mean is three times larger but its variance is nine times larger. Since a Poisson variable has equal mean and variance, cannot be Poisson. The generating function confirms this, as it is not in the Poisson form.
Shifts and sums together
A shifted variable such as has generating function . This is the same as adding an independent variable that always equals 1, whose generating function is just . So shifts can be seen as a special case of the product rule. The two rules fit together naturally.
Worked example 12: identifying a distribution
A variable has generating function . Identify the distribution and find its mean and variance.
| Working | Reason |
|---|---|
| with , : so | Match the binomial form |
| , | Differentiate twice and substitute one |
| Apply the variance formula |
Check yourself. For and , write down and the mean and variance of .
Show the answer
. The mean is and the variance is , so is not Poisson.
Reference
Results in this chapter
| Result | What it says | When to use it | In the formula booklet? |
|---|---|---|---|
| The definition | Every question | No, learn it | |
| Probabilities add to 1 | Finding constants | No, learn it | |
| The mean | Means from generating functions | Yes | |
| The variance | Variances from generating functions | Yes | |
| Sums of independent variables | Distributions of totals | Yes | |
| Linear transformations | Shifting and scaling | Yes | |
| Standard forms | Binomial, Poisson, geometric, negative binomial | Recognising distributions | Yes |
Reasoning
Proof workshop: the variance formula
The claim
For a random variable with generating function ,
Strategy
Write as a series and differentiate it twice. Set to turn each derivative into an expectation. Then express in terms of these expectations, and substitute into .
The key step is recognising that , so the second derivative gives minus the mean. Adding the mean back recovers .
The proof
Starting from the series,
At these become and . So , and therefore
Checking every step
Term-by-term differentiation is valid for polynomials and for power series inside their interval of convergence, which includes for the standard distributions. Setting makes each power of equal to one. The expectation of splits into two expectations because expectation is linear.
A numerical check uses the die. Here and , so the formula gives . This matches the variance found directly from the probabilities.
The proof works for any distribution on the whole numbers. It does not depend on any particular closed form, which is why the same formula serves every distribution in this chapter.
It is worth noticing why the extra term appears at all. Differentiation brings down the power and then lowers it, so two differentiations produce the falling product of a value and the value below it, not the square. That product is smaller than the square by exactly the value itself. Adding the mean back repairs the gap, and only then does the usual definition of variance apply.
Your turn
Use the formula to find the variance of , given that .
Show a model proof
Here and . So the variance is , which matches .
Practice
Practice ladder
Rung 1: Recall and fluency
Q1. A generating function is . Find .
Worked solution to Q1
Set , because the probabilities of every generating function must add up to one. That gives , so . The probabilities of 0, 1 and 2 are then 0.5, 0.25 and 0.25, which all lie between zero and one.
Q2. For the generating function , find .
Worked solution to Q2
Expand the bracket with the binomial theorem to see every coefficient: . The probability of two is the coefficient of squared, which is , so . This is the chance of two heads with three fair coins.
Q3. Write down the generating function of and evaluate it at .
Worked solution to Q3
The generating function is . At only the constant survives, giving , which is the probability of no successes.
Rung 2: Application
Q4. A variable has generating function . Calculate its mean.
Worked solution to Q4
Differentiate the polynomial term by term to get . The mean is the derivative at one, where every power of becomes one, so the mean is .
Q5. Using the generating function in Q4, determine the variance.
Worked solution to Q5
Differentiating a second time leaves the constant 1.2, so . Add the mean back to this and then subtract the square of the mean, which gives the variance .
Q6. Use the generating function of to obtain its mean and variance.
Worked solution to Q6
Using the derivatives found earlier for the geometric distribution, and . The variance formula then gives , which agrees with the standard result .
Rung 3: Analysis
Q7. Arrivals and are independent, and their total is recorded. Evaluate .
Worked solution to Q7
Since the arrivals are independent, multiply their generating functions to get . This is the Poisson form with rate four, so the total is . The probability of no arrivals at all is the constant term, .
Q8. Three independent trials each succeed with probability 0.2. Use generating functions to find the probability of exactly one success.
Worked solution to Q8
Each single trial has generating function , and the trials are independent, so the number of successes has . The probability of exactly one success is the coefficient of , which is .
Q9. The variable in Q4 is transformed to . Deduce the mean and variance of .
Worked solution to Q9
The mean becomes . The variance is multiplied by two squared, giving , and the added constant has no effect on it.
Rung 4: Stretch
Q10. The number of trials to the third success, with , has and . Determine its variance.
Worked solution to Q10
Apply the variance formula, adding the mean to the second derivative and subtracting the squared mean: . This agrees with the standard negative binomial result .
Q11. A fair die numbered 1 to 4 has with . Work out its variance.
Worked solution to Q11
Substituting gives , and the mean of the die is . The variance formula then gives , which agrees with the standard uniform result .
Q12. Using generating functions, show that the probability that two fair dice total 7 is .
Worked solution to Q12
The coefficient of in counts the pairs (1, 6), (2, 5), (3, 4), (4, 3), (5, 2) and (6, 1). That is six pairs, so the probability is .
Exam practice
Exam technique and worked answer workshop
How these questions are marked
M1 marks go to the method: using , differentiating, multiplying generating functions or applying . A1 marks go to correct values and expressions. B1 marks go to recognising a distribution or stating a standard result.
For a "show that" or "prove" question, show each line of algebra, including the series and the recognition of a standard sum. Write and as separate values before combining them.
Exam question 1 (6 marks · Paper 3 · about 8 minutes)
A discrete random variable has probability generating function . Find , the mean and the variance of . (6)
Mark scheme for exam question 1
Uses M1
A1
Finds M1
A1
Uses M1
A1
Exam question 2 (5 marks · Paper 3 · about 7 minutes)
Prove that the probability generating function of is , and use it to prove that . (5)
Mark scheme for exam question 2
Writes M1
Recognises the exponential series M1
A1
M1
A1
Exam question 3 (6 marks · Paper 3 · about 8 minutes)
Show that the generating function of is , and hence show that . (6)
Mark scheme for exam question 3
Sums as a geometric series M1
A1
M1
A1
M1
A1
Exam question 4 (6 marks · Paper 3 · about 8 minutes)
The independent variables and are added. Use generating functions to identify the distribution of , and find . (6)
Mark scheme for exam question 4
Multiplies the generating functions M1
A1
So B1
Uses the Poisson formula M1
A1
A1
Exam question 5 (6 marks · Paper 3 · about 8 minutes)
Two fair four-sided dice, numbered 1 to 4, are thrown and is their total. Use generating functions to find and . (6)
Mark scheme for exam question 5
One die: B1
Squares it for the total M1
Finds the coefficient of M1
A1
M1
A1
Exam question 6 (6 marks · Paper 3 · about 8 minutes)
The variable and . Write down the generating function of , and find its mean and variance. (6)
Mark scheme for exam question 6
Uses M1
A1
M1
A1
M1
A1
Exam question 7 (6 marks · Paper 3 · about 8 minutes)
A random variable has generating function . Identify its distribution, and use the generating function to find its mean and variance. (6)
Mark scheme for exam question 7
Binomial distribution B1
, B1
Finds M1
A1
Uses in the formula M1
A1
Exam question 8 (7 marks · Paper 3 · about 10 minutes)
The number of trials needed to obtain the third success, when each trial succeeds with probability 0.4, is . Find the generating function of , and use it to find the mean and variance of . (7)
Mark scheme for exam question 8
Sum of three independent geometric variables M1
A1
Finds M1
A1
Finds M1
A1
A1
Annotated model answer: exam question 1
Setting gives , and the probabilities must add to 1. M1. So . A1. Differentiating, , so . M1. The mean is . A1.
The second derivative is , so . Then the variance is . M1. So . A1.
Annotated model answer: exam question 4
The generating functions are and , and the variables are independent, so they multiply. M1. The product is . A1. This is the generating function of , so . B1.
Then uses the Poisson formula, M1, giving . A1. This evaluates to . A1.
Connections
Synoptic link
The Poisson distribution and Geometric and negative binomial distributions supplied the standard models whose generating functions appear here. Discrete random variables introduced the expectations that generating functions package together.
Quality of tests uses distributions of counts to find the power of a test. Chi-squared tests checks whether data fit the models whose generating functions are found here.
Synoptic question 1. Customers arrive at two independent shop doors as and per minute. Explain using generating functions why the total arrivals follow a Poisson distribution, and state its mean.
Answer to synoptic question 1
The product of and is , the generating function of . So the total is Poisson with mean 5.
Recap
Recap and next step
- , with probabilities as coefficients and .
- The standard distributions have closed forms: , , and its th power.
- The mean is .
- The variance is .
- Independent sums multiply generating functions.
- For , .
Next chapter: Quality of tests, which measures how often a hypothesis test makes each kind of error.
For your exam board
This chapter covers Pearson Edexcel A Level Further Mathematics (9FM0) Further Statistics 1 section 7: probability generating functions, their use to find means and variances, the generating functions of the binomial, Poisson, geometric and negative binomial distributions, sums of independent variables and linear transformations. It is assessed on Paper 3B, Further Statistics 1. Similar content appears in AQA (7367) and OCR (H245) statistics options.