Maths4UBETA

Distributions from finite experiments

Aggregate elementary outcomes correctly for sums, differences, minima and counts of successes.

Try the quick check →
Lesson 2 of 5

Section 1 of 5 · Core · about 9 min

Which elementary outcomes produce the same value?

Constructing a distribution starts one level below the random variable. First describe a complete elementary outcome of the experiment. For two named spinners, two dice or two successive draws, an ordered pair records which result belongs to which source or stage.

Then apply the rule defining XX to every elementary outcome. Several outcomes can give the same value. Add their probabilities to obtain that value’s probability. The distribution lists each supported value once, after this aggregation.

Worked example

Map complete outcomes to the counted value

Two fair coins are tossed independently. Let XX be the number of heads. Construct the distribution of XX.

  1. Record the first and second toss separately. The ordered elementary outcomes are HH, HT, TH and TT. Independence and fairness give probability 14\frac{1}{4} for each.

  2. TT gives X=0X=0; HT and TH both give X=1X=1; HH gives X=2X=2. Aggregate the probabilities of every outcome producing the same value:

    xx001122
    P(X=x)P(X=x)14\frac{1}{4}12\frac{1}{2}14\frac{1}{4}
  3. The row totals one. The three values of XX are not equally likely, even though the four elementary coin outcomes are.

Your turn

Two fair coins are tossed independently. A reward variable XX equals two if the two outcomes match and minus one if they differ. Find the probabilities of the two possible rewards.

Enter an exact value or round to 3 significant figures.

Enter an exact value or round to 3 significant figures.

Fairness describes the distribution of one device. Independence describes the relationship between devices or stages. For independent results AA and BB,

P(A=a,B=b)=P(A=a)P(B=b).P(A=a,B=b)=P(A=a)P(B=b).

Fair devices can be used dependently; independent devices can have unequal probabilities. State both assumptions when using an equal-weight grid.

Section 2 of 5 · Core · about 12 min

How do sums and differences partition an outcome grid?

A two-dimensional grid makes every ordered pair visible. Label the row source and column source separately, put the required variable value in each cell, then collect matching cells. The labels and weights belong to the original devices; the entries inside the grid belong to the new variable.

Even when (a,b)(a,b) and (b,a)(b,a) give the same sum, they remain separate outcomes if the devices or draw positions are distinguished. For a signed difference, swapping the order usually also changes the variable value.

Worked example

Several ordered pairs can have the same sum

Two fair four-sided dice, each numbered one to four, are rolled independently. Let XX be their sum. Construct its distribution and find P(X≥6)P(X\ge6).

  1. Use an ordered pair (a,b)(a,b), with one coordinate for each die. There are 4⋅4=164\cdot4=16 equally likely pairs, each of probability 116\frac{1}{16}.

  2. The possible sums run from two to eight. Counting the pairs along each constant-sum diagonal gives:

    xx22334455667788
    P(X=x)P(X=x)116\frac{1}{16}216\frac{2}{16}316\frac{3}{16}416\frac{4}{16}316\frac{3}{16}216\frac{2}{16}116\frac{1}{16}
  3. For example, sum six comes from (2,4),(3,3),(4,2)(2,4),(3,3),(4,2). These are distinct elementary outcomes, so their probabilities add.

  4. P(X≥6)=3+2+116=38.P(X\ge6)=\frac{3+2+1}{16}=\frac{3}{8}.

    The frequencies total 1616, which checks that every pair has been included once.

Roll two independent fair four-sided dice with faces 1,2,3,41,2,3,4.

Sum of the two rolls

First roll ↓ / Second roll →11223344
1122334455
2233445566
3344556677
4455667788

The frequencies for sums 2,…,82,\ldots,8 are 1,2,3,4,3,2,11,2,3,4,3,2,1. Six of the sixteen cells give a sum of at least six, so P(X≥6)=38P(X\ge6)=\frac{3}{8}.

Each of the sixteen ordered die outcomes appears once. A sum is counted by collecting every cell carrying that sum; the upper-tail event uses all cells with values six, seven or eight.

Your turn

Independent fair spinners show values 0,1,30,1,3 and 1,21,2. Let XX be their sum. A student says that the five possible sums must be equally likely. Choose the justified model, then find P(X=2)P(X=2), P(X≥4)P(X\ge4) and P(X=0)P(X=0).

Which probability model is justified?

Enter an exact value or round to 3 significant figures.

Enter an exact value or round to 3 significant figures.

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

Worked example

Signed and absolute differences group pairs differently

Two independent fair spinners each show one, two or three. Their results are AA and BB. Construct the distributions of D=A−BD=A-B and Y=∣A−B∣Y=|A-B|.

  1. There are nine equally likely ordered pairs. For D=A−BD=A-B, keep the order: (1,3)(1,3) gives minus two, whereas (3,1)(3,1) gives plus two.

    dd−2-2−1-1001122
    P(D=d)P(D=d)19\frac{1}{9}29\frac{2}{9}39\frac{3}{9}29\frac{2}{9}19\frac{1}{9}
  2. Taking absolute values combines the negative and positive differences. Zero has no second sign to add:

    yy001122
    P(Y=y)P(Y=y)39\frac{3}{9}49\frac{4}{9}29\frac{2}{9}
  3. P(Y=1)=P(D=−1)+P(D=1)=49.P(Y=1)=P(D=-1)+P(D=1)=\frac{4}{9}.

    The two new tables describe different variables on the same nine elementary outcomes.

Your turn

Two independent fair four-sided dice each show one to four. Let YY be the absolute difference between the results. Find P(Y=1)P(Y=1) and P(Y≤1)P(Y\le1).

Enter an exact value or round to 3 significant figures.

Enter an exact value or round to 3 significant figures.

Section 3 of 5 · Core · about 9 min

How does a maximum or minimum depend on both results?

The maximum is at most a threshold exactly when both original values are at most that threshold. The minimum is at least a threshold exactly when both original values are at least that threshold. Under independence, these paired conditions can be multiplied.

P(max⁡(A,B)≤t)=P(A≤t)P(B≤t).P(\max(A,B)\le t)=P(A\le t)P(B\le t).

To obtain the probability of a particular supported maximum, subtract the cumulative count at the previous supported value. If the supports have gaps, use that previous supported value instead of assuming a consecutive integer.

Worked example

Count the pairs that stay below a proposed maximum

Two independent fair spinners each show one, two or four, with equal probabilities. Let MM be the larger result. Construct the distribution of MM.

  1. The maximum can be one, two or four. For it to be at most a given value, both spinner results must be at most that value.

  2. Only the pair (1,1)(1,1) has maximum one:

    P(M=1)=19.P(M=1)=\frac{1}{9}.
  3. Both results belong to {1,2}\{1,2\} in four pairs. Remove (1,1)(1,1) to obtain maximum exactly two:

    P(M=2)=4−19=13.P(M=2)=\frac{4-1}{9}=\frac{1}{3}.
  4. The remaining five pairs have maximum four:

    P(M=4)=1−49=59.P(M=4)=1-\frac{4}{9}=\frac{5}{9}.
    mm112244
    P(M=m)P(M=m)19\frac{1}{9}13\frac{1}{3}59\frac{5}{9}
  5. Three is not a possible result of either spinner, so it is not a possible maximum. The support contains the available values, not every integer between its endpoints.

Your turn

Independent fair spinners show 0,20,2 and 1,3,41,3,4. Let MM be the maximum of the two results. Find P(M=3)P(M=3), P(M≥3)P(M\ge3) and P(M≤2)P(M\le2).

Enter an exact value or round to 3 significant figures.

Enter an exact value or round to 3 significant figures.

Enter an exact value or round to 3 significant figures.

Section 4 of 5 · Core · about 12 min

What changes when labels repeat or outcomes have unequal weights?

Repeated labels do not make the physical objects identical for random selection. If two tickets display the same number, selecting either can produce the same value. Retain the physical identities while counting, or replace them with the correct combined probability for that displayed value.

For repeated draws, specify whether an object is replaced and how the next random selection is made. Independent uniform draws with replacement give a product sample space with the original weights at each stage. Without replacement, the available outcomes and conditional probabilities change.

Worked example

Retain physical identities when visible labels repeat

A bag contains three physical tickets marked 1A,1B,31_A,1_B,3, where the first two both display the number one. A ticket is drawn uniformly, replaced, and the bag is mixed before a second independent uniform draw. Let XX be the product of the displayed numbers. Construct the distribution.

  1. The ordered physical pairs are formed from three possibilities on each draw. Replacement permits drawing the same physical ticket twice. The nine pairs are equally likely.

  2. A product of one occurs when both draws display one. The four physical pairs use either 1A1_A or 1B1_B on each draw, so

    P(X=1)=49.P(X=1)=\frac{4}{9}.
  3. A product of three requires one displayed one and the ticket marked three. There are two choices of the one-ticket and two draw orders:

    P(X=3)=2⋅29=49.P(X=3)=\frac{2\cdot2}{9}=\frac{4}{9}.
  4. Only the physical pair (3,3)(3,3) gives product nine:

    xx113399
    P(X=x)P(X=x)49\frac{4}{9}49\frac{4}{9}19\frac{1}{9}
  5. Using just the two visible values one and three as equally likely draw outcomes would lose the doubled weight at one. If tickets were not replaced, both the possible physical pairs and their probabilities would change.

Draw twice with replacement from three physical tickets labelled 1A,1B,31_A,1_B,3.

Product of the displayed ticket values

First draw ↓ / Second draw →1A1_A1B1_B33
1A1_A111133
1B1_B111133
33333399

The nine physical pairs are equally likely. The four cells with two one-tickets have product one. Four cells have product three and one cell has product nine.

P(X=1)=49P(X=1)=\frac49, P(X=3)=49P(X=3)=\frac49, P(X=9)=19P(X=9)=\frac19.

Physical identities preserve the two ways to draw a ticket showing one. Product values are aggregated only after all nine equally likely physical pairs are represented.

Your turn

Four physical tickets display 0,0,2,50,0,2,5. Two independent uniform draws are made with replacement and mixing. Let XX be the sum of the displayed values. Find P(X=0)P(X=0), P(X=2)P(X=2) and P(X=7)P(X=7).

Enter an exact value or round to 3 significant figures.

Enter an exact value or round to 3 significant figures.

Enter an exact value or round to 3 significant figures.

A weighted grid is useful when the devices are independent but biased. Multiply each row probability by each column probability to obtain that cell’s weight. Then add the weights, rather than the number of cells, for all cells producing a requested variable value.

Worked example

A weighted outcome grid uses products and then sums

Independent spinners A and B have the following distributions. Let X=A+BX=A+B. Construct the distribution of XX.

Spinner A:

aa0022
P(A=a)P(A=a)14\frac{1}{4}34\frac{3}{4}

Spinner B:

bb−1-11133
P(B=b)P(B=b)12\frac{1}{2}13\frac{1}{3}16\frac{1}{6}
  1. Independence lets us multiply the probability of a row result by that of a column result. For A equal to zero, the three pair probabilities are 18,112,124\frac{1}{8},\frac{1}{12},\frac{1}{24}. For A equal to two, they are 38,14,18\frac{3}{8},\frac{1}{4},\frac{1}{8}.

  2. The six cells are not equally likely. The possible sums are minus one, one, three and five. Sum one arises from (0,1)(0,1) and (2,−1)(2,-1), so

    P(X=1)=112+38=1124.P(X=1)=\frac{1}{12}+\frac{3}{8}=\frac{11}{24}.
  3. Sum three arises from (0,3)(0,3) and (2,1)(2,1):

    P(X=3)=124+14=724.P(X=3)=\frac{1}{24}+\frac{1}{4}=\frac{7}{24}.
  4. The two endpoint sums each arise from one pair. The complete table is

    xx−1-1113355
    P(X=x)P(X=x)18\frac{1}{8}1124\frac{11}{24}724\frac{7}{24}18\frac{1}{8}
  5. 3+11+7+324=1.\frac{3+11+7+3}{24}=1.

    A count of matching cells alone is insufficient here; add their actual probability weights.

Section 5 of 5 · Core · about 10 min

What checks connect the experiment, distribution and moments?

After constructing the complete table, check that every elementary outcome is represented once, every possible variable value is listed once, and the probabilities sum to one. Then use the finite-distribution rules:

E(X)=∑xxP(X=x),E(X2)=∑xx2P(X=x),E(X)=\sum_xxP(X=x),\qquad E(X^2)=\sum_xx^2P(X=x),Var⁡(X)=E(X2)−[E(X)]2.\operatorname{Var}(X)=E(X^2)-[E(X)]^2.

The aggregation already includes each value’s multiplicity. Do not multiply by a cell count for a second time.

Worked example

Calculate moments only after the distribution is complete

For the maximum MM in the earlier spinner experiment, the distribution is shown below. Find its expected value, variance and exact standard deviation.

mm112244
P(M=m)P(M=m)19\frac{1}{9}13\frac{1}{3}59\frac{5}{9}
  1. Weight the three possible maxima by their aggregated probabilities:

    E(M)=1⋅19+2⋅13+4⋅59=1+6+209=3.E(M)=1\cdot \frac{1}{9}+2\cdot \frac{1}{3}+4\cdot \frac{5}{9}=\frac{1+6+20}{9}=3.
  2. Square each maximum while retaining its probability:

    E(M2)=12⋅19+22⋅13+42⋅59=1+12+809=313.E(M^2)=1^2\cdot \frac{1}{9}+2^2\cdot \frac{1}{3}+4^2\cdot \frac{5}{9}=\frac{1+12+80}{9}=\frac{31}{3}.
  3. Var⁡(M)=313−32=43,σ=43=233.\operatorname{Var}(M)=\frac{31}{3}-3^2=\frac{4}{3},\qquad\sigma=\sqrt{\frac{4}{3}}=\frac{2\sqrt{3}}{3}.
  4. The expected maximum is three, even though no single experiment gives maximum three. The expectation averages the weighted outcomes; it need not be in the support.

Your turn

Independent fair spinners show −1,2-1,2 and 0,1,30,1,3. Let XX be the product. Find E(X)E(X), E(X2)E(X^2) and Var⁡(X)\operatorname{Var}(X).

Enter an exact value or round to 3 significant figures.

Enter an exact value or round to 3 significant figures.

Enter an exact value or round to 3 significant figures.

You can independently check a moment by summing its contribution over the original elementary outcomes. If all NN outcomes are equally likely, average the NN variable values, keeping repeats. If their weights differ, use those weights. This gives the same result as the aggregated table.

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

Equal elementary pairs can give an uneven sum

3 marks

A fair spinner has three equally likely sectors labelled 0, 1, 3. Spin it twice independently. X is the sum of the two labels.

Find P(X=3)\mathrm P(X=3), E(X)\mathrm E(X) and Var⁡(X)\operatorname{Var}(X).

Enter an exact value or round to 3 significant figures.

Enter an exact value or round to 3 significant figures.

Enter an exact value or round to 3 significant figures.

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

Several ordered outcomes can have the same sum

Two independent fair spinners each have three equally likely labels: zero, one and two. Let SS be the sum of the two labels. Find P(S=1)P(S=1), P(S≥3)P(S\ge3), E(S)E(S) and Var⁡(S)\operatorname{Var}(S).

Enter an exact value or round to 3 significant figures.

Enter an exact value or round to 3 significant figures.

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

Enter an exact value or round to 3 significant figures.

Count a maximum without double-counting a tie

Two independent fair four-sided dice each show one of 1,2,3,41,2,3,4. Let MM be the larger result, taking their common result when they tie. Find P(M=3)P(M=3), P(M≤2)P(M\le2), E(M)E(M) and Var⁡(M)\operatorname{Var}(M).

Enter an exact value or round to 3 significant figures.

Enter an exact value or round to 3 significant figures.

Enter an exact value or round to 3 significant figures.

Enter an exact value or round to 3 significant figures.

Absolute difference merges two signs

Two independent fair spinners each display one of the three equally likely values zero, one and three. Let DD be the absolute difference of their results. Find P(D=0)P(D=0), P(D=2)P(D=2) and E(D)E(D).

Enter an exact value or round to 3 significant figures.

Enter an exact value or round to 3 significant figures.

Enter an exact value or round to 3 significant figures.

A weighted grid replaces a simple cell count

Spinner A shows one with probability 25\frac{2}{5} and four with probability 35\frac{3}{5}. Independently, spinner B shows −2,1,4-2,1,4 with respective probabilities 14,12,14\frac{1}{4},\frac{1}{2},\frac{1}{4}. Let XX be the sum. Find P(X=2)P(X=2), P(X=5)P(X=5), E(X)E(X) and Var⁡(X)\operatorname{Var}(X).

Enter an exact value or round to 3 significant figures.

Enter an exact value or round to 3 significant figures.

Enter an exact value or round to 3 significant figures.

Enter an exact value or round to 3 significant figures.

Two physical zero tickets are not one equally likely label

A bag contains four physical tickets bearing labels zero, zero, one and three. A ticket is chosen uniformly, replaced, and another ticket is chosen independently and uniformly. Let YY be the product of the two labels. Find P(Y=0)P(Y=0), P(Y=3)P(Y=3) and E(Y)E(Y).

Enter an exact value or round to 3 significant figures.

Enter an exact value or round to 3 significant figures.

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

Aggregate ordered pairs

Two independent draws are uniform on {1,2,3,4}\{1,2,3,4\}. Find the probability their sum is 55.

Enter an exact value or round to 3 significant figures.

Count both directions

Choose twice independently from {1,2,3}\{1,2,3\}, uniformly. Find the probability the absolute difference is 11.

Enter an exact value or round to 3 significant figures.

Translate a minimum event

Two independent scores are uniform on the integers from 11 to 55. Find the probability their minimum exceeds 33.

Enter an exact value or round to 3 significant figures.

Keep different probabilities

Two independent attempts have success probabilities 14\frac14 and 12\frac12. Find the probability of exactly one success.

Enter an exact value or round to 3 significant figures.

Apply it · original exam-style problems

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

Start after this lesson

Signed difference and absolute difference need separate mappings 9 marks

Spinner A has three equally likely labels 1,2,41,2,4, and spinner B has three equally likely labels 1,3,41,3,4. The spins are independent. Define D=A−BD=A-B. Find P(D=−2)P(D=-2), P(D>0)P(D>0), E(D)E(D), Var⁡(D)\operatorname{Var}(D) and E(∣D∣)E(|D|).

Hint

Map all nine equally likely ordered pairs to A minus B, preserving the order of the subtraction. Then merge opposite signs only when forming the separate absolute-difference variable.

Worked solution
  1. For A equal to one the differences are 0,−2,−30,-2,-3; for A equal to two they are 1,−1,−21,-1,-2; and for A equal to four they are 3,1,03,1,0. Thus

    d−3−2−10139P(D=d)121221\begin{array}{c|rrrrrr}d&-3&-2&-1&0&1&3\\\hline 9P(D=d)&1&2&1&2&2&1\end{array}
  2. P(D=−2)=29,P(D>0)=2+19=13.P(D=-2)=\frac{2}{9},\qquad P(D>0)=\frac{2+1}{9}=\frac{1}{3}.
  3. E(D)=−3−4−1+0+2+39=−13,E(D2)=9+8+1+0+2+99=299.E(D)=\frac{-3-4-1+0+2+3}{9}=-\frac{1}{3},\qquad E(D^2)=\frac{9+8+1+0+2+9}{9}=\frac{29}{9}.
  4. Var⁡(D)=299−(−13)2=289.\operatorname{Var}(D)=\frac{29}{9}-\left(-\frac{1}{3}\right)^2=\frac{28}{9}.
  5. Taking absolute values merges the negative and positive rows of equal magnitude. The counts for ∣D∣=0,1,2,3|D|=0,1,2,3 are respectively 2,3,2,22,3,2,2, so

    E(∣D∣)=0(2)+1(3)+2(2)+3(2)9=139.E(|D|)=\frac{0(2)+1(3)+2(2)+3(2)}{9}=\frac{13}{9}.

    This is not the absolute value of the signed mean; averaging and taking absolute values are different operations.

Marking guidance
  • 1 mark: create the nine ordered elementary outcomes and preserve the subtraction order.
  • 1 mark: aggregate the repeated difference values correctly.
  • 1 mark: obtain the probability of a difference of minus two.
  • 1 mark: obtain the positive-difference probability.
  • 1 mark: calculate the signed expectation.
  • 1 mark: calculate the second moment.
  • 1 mark: subtract the squared mean for the variance.
  • 1 mark: correctly merge opposite signed differences for the absolute-value variable.
  • 1 mark: obtain its separate weighted expectation.
The longest run depends on the order of the tosses 10 marks

A coin is tossed three times independently. On each toss the probability of heads is 13\frac{1}{3}. Let RR be the length of the longest consecutive run of heads, with R=0R=0 when no head occurs. Find P(R=0)P(R=0), P(R=1)P(R=1), P(R≥2)P(R\ge2), E(R)E(R) and Var⁡(R)\operatorname{Var}(R).

Hint

List the eight ordered HT\frac{H}{T} sequences and attach their product probabilities. A run length of one includes HTH as well as the three sequences with exactly one head. The eight sequences are not equally likely for this biased coin.

Worked solution
  1. Only TTT has run length zero:

    P(R=0)=(23)3=827.P(R=0)=\left(\frac{2}{3}\right)^3=\frac{8}{27}.
  2. Run length one comes from HTT, THT, TTH and HTH. The first three each have probability 427\frac{4}{27}, while HTH has probability 227\frac{2}{27}:

    P(R=1)=3⋅427+227=1427.P(R=1)=3\cdot \frac{4}{27}+\frac{2}{27}=\frac{14}{27}.
  3. Run length two comes from HHT or THH, and run length three comes from HHH. Hence the full distribution is

    r0123P(R=r)8271427427127\begin{array}{c|rrrr}r&0&1&2&3\\\hline P(R=r)&\frac{8}{27}&\frac{14}{27}&\frac{4}{27}&\frac{1}{27}\end{array}P(R≥2)=4+127=527.P(R\ge2)=\frac{4+1}{27}=\frac{5}{27}.
  4. E(R)=14+2(4)+3(1)27=2527,E(R2)=14+4(4)+9(1)27=139.E(R)=\frac{14+2(4)+3(1)}{27}=\frac{25}{27},\qquad E(R^2)=\frac{14+4(4)+9(1)}{27}=\frac{13}{9}.
  5. Var⁡(R)=139−(2527)2=428729.\operatorname{Var}(R)=\frac{13}{9}-\left(\frac{25}{27}\right)^2=\frac{428}{729}.

    HHT and HTH contain the same number of heads but have different longest runs. The variable must be mapped from the ordered sequence, not merely the head count.

Marking guidance
  • 1 mark: list or otherwise account for all eight ordered sequences.
  • 1 mark: assign product probabilities appropriate to the biased coin.
  • 1 mark: obtain the zero-run probability.
  • 1 mark: include HTH in the run-length-one event.
  • 1 mark: obtain its total probability.
  • 1 mark: distinguish run length two from run length three and obtain the upper-tail probability.
  • 1 mark: construct a valid full distribution for R.
  • 1 mark: calculate the expectation.
  • 1 mark: calculate the second moment.
  • 1 mark: subtract the squared mean and obtain the variance.

Come back to what needs practice

Quick revision sheet (A4)

Your review plan starts after your first check.

Question bank and saved work