Maths4UBETA

Transformations and dependence

Distinguish changing one outcome from combining independent outcomes.

Try the quick check →
Lesson 4 of 5

Section 1 of 6 · Core · about 6 min

Why does a shift multiply by a power?

Adding a fixed integer to every value raises every exponent by that integer.

Worked example

Move every exponent one place

A count XX has PGF GX(t)=t32+3t10+15G_{X}(t)=\frac{t^{3}}{2} + \frac{3 t}{10} + \frac{1}{5}. Define Y=X+1Y=X + 1.

Give the generating function for YY.

  1. tY=t1(t1)Xt^Y=t^{1}(t^{1})^X.

  2. GY(t)=t42+3t210+t5G_{Y}(t)=\frac{t^{4}}{2} + \frac{3 t^{2}}{10} + \frac{t}{5}
  3. The transformed mean and variance are 145\frac{14}{5} and 3925\frac{39}{25}.

Worked example

Shift a distribution that already starts at one

A count XX has PGF GX(t)=t44+t22+t4G_{X}(t)=\frac{t^{4}}{4} + \frac{t^{2}}{2} + \frac{t}{4}. Define Y=X+2Y=X + 2.

Give the smallest possible value and its probability.

Try it on paper first.

  1. tY=t2(t1)Xt^Y=t^{2}(t^{1})^X.

  2. GY(t)=t64+t42+t34G_{Y}(t)=\frac{t^{6}}{4} + \frac{t^{4}}{2} + \frac{t^{3}}{4}
  3. The transformed mean and variance are 174\frac{17}{4} and 1916\frac{19}{16}.

Your turn

A count XX has PGF GX(t)=t32+t5+310G_{X}(t)=\frac{t^{3}}{2} + \frac{t}{5} + \frac{3}{10}. Define Y=X+2Y=X + 2.

Give the generating function for YY.

Enter an expression in t; use ^ for powers and / for fractions.

Section 2 of 6 · Core · about 7 min

Why does a scale replace t by a power?

Doubling a count doubles every outcome exponent.

Worked example

Double output counts without changing their masses

A count XX has PGF GX(t)=t22+2t5+110G_{X}(t)=\frac{t^{2}}{2} + \frac{2 t}{5} + \frac{1}{10}. Define Y=2XY=2 X.

Give the generating function for YY.

  1. tY=t0(t2)Xt^Y=t^{0}(t^{2})^X.

  2. GY(t)=t42+2t25+110G_{Y}(t)=\frac{t^{4}}{2} + \frac{2 t^{2}}{5} + \frac{1}{10}
  3. The transformed mean and variance are 145\frac{14}{5} and 4425\frac{44}{25}.

Your turn

A count XX has PGF GX(t)=t22+3t10+15G_{X}(t)=\frac{t^{2}}{2} + \frac{3 t}{10} + \frac{1}{5}. Define Y=3XY=3 X.

Find the exact probability that the transformed value is 5.

Enter the value on its own or write p = … . Fractions and exact square roots are accepted.

Section 3 of 6 · Core · about 7 min

How do I combine a shift and a scale?

Apply the exponent identity to the whole value.

Worked example

Find both moments after scaling and shifting

A count XX has PGF GX(t)=t24+t2+14G_{X}(t)=\frac{t^{2}}{4} + \frac{t}{2} + \frac{1}{4}. Define Y=2X+1Y=2 X + 1.

Find the exact mean and variance after transforming.

  1. tY=t1(t2)Xt^Y=t^{1}(t^{2})^X.

  2. GY(t)=t54+t32+t4G_{Y}(t)=\frac{t^{5}}{4} + \frac{t^{3}}{2} + \frac{t}{4}
  3. The transformed mean and variance are 33 and 22.

Your turn

A count XX has PGF GX(t)=t25+t2+310G_{X}(t)=\frac{t^{2}}{5} + \frac{t}{2} + \frac{3}{10}. Define Y=2X+2Y=2 X + 2.

Find the exact probability that the transformed value is 4.

Enter the value on its own or write p = … . Fractions and exact square roots are accepted.

Section 4 of 6 · Core · about 7 min

How do the margins test independence?

Sum the cells in each row and column to obtain the individual masses.

Worked example

Check independence from a joint table

A joint distribution for two counts is given.

Joint probabilityY=0Y=0Y=1Y=1
X=0X=025\frac{2}{5}415\frac{4}{15}
X=1X=115\frac{1}{5}215\frac{2}{15}

Are XX and YY independent?

  1. Each joint probability is the product of the corresponding marginals.

  2. The sum's coefficient is ∑i+j=1P(X=i,Y=j)\sum_{i+j=1}\mathrm P(X=i,Y=j) for exponent 11, giving 715\frac{7}{15}.

  3. GX+Y(t)=2t215+7t15+25G_{X+Y}(t)=\frac{2 t^{2}}{15} + \frac{7 t}{15} + \frac{2}{5}

Your turn

A joint distribution for two counts is given.

Joint probabilityY=0Y=0Y=1Y=1
X=0X=0512\frac{5}{12}112\frac{1}{12}
X=1X=1112\frac{1}{12}512\frac{5}{12}

Are XX and YY independent?

Relationship

Section 5 of 6 · Core · about 7 min

How do I find a sum when the counts depend on each other?

The sum event collects all cells on the relevant diagonal.

Worked example

Add the joint outcomes for one total

A joint distribution for two counts is given.

Joint probabilityY=0Y=0Y=1Y=1
X=0X=025\frac{2}{5}15\frac{1}{5}
X=1X=1110\frac{1}{10}310\frac{3}{10}

Find the exact probability of a sum of 1.

  1. For example, P(X=0,Y=0)=25\mathrm P(X=0,Y=0)=\frac{2}{5} and the product of the marginals is 310\frac{3}{10}.

  2. The sum's coefficient is ∑i+j=1P(X=i,Y=j)\sum_{i+j=1}\mathrm P(X=i,Y=j) for exponent 11, giving 310\frac{3}{10}.

  3. GX+Y(t)=3t210+3t10+25G_{X+Y}(t)=\frac{3 t^{2}}{10} + \frac{3 t}{10} + \frac{2}{5}

Your turn

A joint distribution for two counts is given.

Joint probabilityY=0Y=0Y=1Y=1Y=2Y=2
X=0X=0110\frac{1}{10}120\frac{1}{20}15\frac{1}{5}
X=1X=1120\frac{1}{20}14\frac{1}{4}110\frac{1}{10}
X=2X=2110\frac{1}{10}110\frac{1}{10}120\frac{1}{20}

Find the exact probability of a sum of 2.

Enter the value on its own or write p = … . Fractions and exact square roots are accepted.

Section 6 of 6 · Extension · about 6 min

What if I transform one count before adding another?

First generate the transformed count. Then multiply by the other PGF if independence is given.

Worked example

Build a shifted sum with two independent inputs

Workers count two independent streams of requests.

GX(t)=2t3+13G_{X}(t)=\frac{2 t}{3} + \frac{1}{3} and GY(t)=2t5+35G_{Y}(t)=\frac{2 t}{5} + \frac{3}{5}.

Let S=2X+Y+1S=2 X + Y + 1.

Give the whole generating function for SS.

  1. The summands are independent. Account for any scale and shift in the exponent.

  2. GS(t)=t1GX(t2)GY(t)=4t415+2t35+2t215+t5G_S(t)=t^{1}G_X(t^{2})G_Y(t)=\frac{4 t^{4}}{15} + \frac{2 t^{3}}{5} + \frac{2 t^{2}}{15} + \frac{t}{5}

Your turn

Two independent counters record XX and YY during the same window.

xxProbability
0045\frac{4}{5}
1115\frac{1}{5}
yyProbability
00310\frac{3}{10}
1125\frac{2}{5}
22310\frac{3}{10}

Let S=2X+Y+1S=2 X + Y + 1.

Find the exact probability that the result is 3.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Worked examples

Practise the method

Core practice

Question 1 of 4

0 / 4 checked in this collection

Question list

Core practice

Fresh variants

Exam-style

The entire transformed distribution

4 marks

X has PGF t22+t6+13\frac{t^{2}}{2} + \frac{t}{6} + \frac{1}{3}. For Y=2X+1, give its full PGF, both support endpoints and variance.

Enter an expression in t; use ^ for powers and / for fractions.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Full answer-format guide

Exact numbers: 3/2, sqrt(5), 2-sqrt(3), pi/6, 3*pi/2. Sets: {1,4}. Intervals: (3,5]; a round bracket excludes the endpoint. Infinity: inf; union: U; no solutions: empty. Separate coordinate pairs or triples with semicolons. Expressions: 2x^2+3x-1; equations: x^2=3x+1 or the polynomial equal to zero. Factors: x-1 ; x+2. Parameter fraction: numerator ; denominator. List integer answers individually.

Review the method

Progress stays in this browser. Create an account to save it or sign in.

Extra practice from this lesson

Find the shifted support minimum and probability

A count XX has PGF GX(t)=5t312+t24+t3G_{X}(t)=\frac{5 t^{3}}{12} + \frac{t^{2}}{4} + \frac{t}{3}. Define Y=2XY=2 X.

Give the smallest possible value and its probability.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter the value on its own or write p = … . Fractions and exact square roots are accepted.

Build the whole sum PGF from a joint model

A joint distribution for two counts is given.

Joint probabilityY=0Y=0Y=1Y=1
X=0X=025\frac{2}{5}310\frac{3}{10}
X=1X=1110\frac{1}{10}15\frac{1}{5}

Give the complete PGF of X+YX+Y.

Enter an expression in t; use ^ for powers and / for fractions.

Confirm independence in a rectangular table

A joint distribution for two counts is given.

Joint probabilityY=0Y=0Y=1Y=1Y=2Y=2
X=0X=0115\frac{1}{15}15\frac{1}{5}215\frac{2}{15}
X=1X=1110\frac{1}{10}310\frac{3}{10}15\frac{1}{5}

Are XX and YY independent?

Relationship

Find the resulting mean and variance

A count XX has PGF GX(t)=2t35+t5+25G_{X}(t)=\frac{2 t^{3}}{5} + \frac{t}{5} + \frac{2}{5}. Define Y=2XY=2 X.

Find the exact mean and variance after transforming.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Compare moments after scaling one count

Workers count two independent streams of requests.

GX(t)=3t210+2t5+310G_{X}(t)=\frac{3 t^{2}}{10} + \frac{2 t}{5} + \frac{3}{10} and GY(t)=t25+2t5+25G_{Y}(t)=\frac{t^{2}}{5} + \frac{2 t}{5} + \frac{2}{5}.

Let S=2X+Y+1S=2 X + Y + 1.

Find the exact mean and variance.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Check the transformed support of both counts

Workers count two independent streams of requests.

GX(t)=3t24+t4G_{X}(t)=\frac{3 t^{2}}{4} + \frac{t}{4} and GY(t)=3t34+14G_{Y}(t)=\frac{3 t^{3}}{4} + \frac{1}{4}.

Let S=2X+Y+1S=2 X + Y + 1.

Give its smallest and largest possible values.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Apply it · original exam-style problems

Show your working on paper and compare it with the worked solution and marking guidance.

Come back to what needs practice

Quick revision sheet (A4)

Your review plan starts after your first check.