Probability Equations

On this page

How to form and solve an equation from a probability: one counter from a bag, two counters without replacement, independent events and repeated trials.

Key ideas

One counter: P(red) = number of red counters ÷ total number of counters

Without replacement, the second counter's total is 1 less, and so is the number of the colour taken

Two of the same colour: add the paths red then red, and blue then blue

Only one (or exactly one): add the paths pass then fail, and fail then pass

  • Multiply along a path. Add the paths that give the event.
  • Independent events: P(A and B) = P(A) × P(B)
  • Repeated n times with replacement: P(red every time) =p^n
  • A number of counters is a positive whole number. Reject a solution that is not.

Worked example 1: One counter, with counts in a ratio

There are only blue counters and yellow counters in a bag.

The probability of taking at random a yellow counter is \frac25

4 blue counters are taken out of the bag. The probability of taking at random a yellow counter is now \frac12

Find how many counters of each colour were in the bag at the start.

  1. yellow : blue =2:3, so there are 2k yellow counters and 3k blue counters, 5k in all
  2. After 4 blue counters are taken out: \dfrac{2k}{5k-4}=\dfrac12
  3. 4k=5k-4so k=4
  4. 8 yellow counters and 12 blue counters. Check: \frac8{20}=\frac25 and \frac8{16}=\frac12
  5. To show a probability is impossible, show that the equation gives a number of counters that is not a whole number.

Now try this

There are only red counters and white counters in a bag.

The probability of taking at random a red counter is \frac38

2 red counters and 6 white counters are added to the bag.

The probability of taking at random a red counter is now \frac13

Find the number of white counters that were in the bag at the start.

  1. red : white =3:5, so there are 3k red and 5k white. After the counters are added: \dfrac{3k+2}{8k+8}=\dfrac13
  2. 9k+6=8k+8so k=2
  3. 5k=10 white counters. Check: \frac6{16}=\frac38 and \frac8{24}=\frac13

More like this: practice questions

Worked example 2: Without replacement, the same colour twice

A box contains n blue pens and 5 black pens.

Two pens are taken at random from the box, without replacement.

The probability that both pens are blue is \frac7{22}

Work out the value of n.

  1. P(both blue) =\dfrac{n}{n+5}\times\dfrac{n-1}{n+4}=\dfrac{n(n-1)}{(n+5)(n+4)}
  2. \dfrac{n(n-1)}{(n+5)(n+4)}=\dfrac7{22}so 22n(n-1)=7(n+5)(n+4)
  3. 22n^2-22n=7n^2+63n+140so 15n^2-85n-140=0, which iswhich is 3n^2-17n-28=0
  4. (3n+4)(n-7)=0so n=7. A number of pens can't be -\frac43
  5. The second pen is one of n+4, not n+5: working as if the pen is put back loses most of the marks.

Now try this

A bag contains n green counters and 4 white counters.

Two counters are taken at random from the bag, without replacement.

The probability that both counters are green is \frac13

Work out the value of n.

  1. \dfrac{n}{n+4}\times\dfrac{n-1}{n+3}=\dfrac13, so 3n(n-1)=(n+4)(n+3)
  2. 3n^2-3n=n^2+7n+12so 2n^2-10n-12=0, which iswhich is n^2-5n-6=0
  3. (n-6)(n+1)=0so n=6 or n=-1. A number of counters can't be negative, so n=6

More like this: practice questions

Worked example 3: Without replacement, two of the same colour

There are only red counters and yellow counters in a bag.

There are 4 more yellow counters than red counters.

Two counters are taken at random from the bag, without replacement.

The probability that the two counters are the same colour is \frac{17}{33}

Work out the number of red counters in the bag.

  1. Let there be x red counters, so x+4 yellow and 2x+4 in all.
  2. Same colour is red then red, or yellow then yellow: \dfrac{x(x-1)+(x+4)(x+3)}{(2x+4)(2x+3)}=\dfrac{17}{33}
  3. The top is 2x^2+6x+12. Multiply both sides by 33(2x+4)(2x+3): 33(2x^2+6x+12)=17(4x^2+14x+12)
  4. 66x^2+198x+396=68x^2+238x+204so 2x^2+40x-192=0, which iswhich is x^2+20x-96=0
  5. (x+24)(x-4)=0, so there are 4 red counters (not −24). Check: \frac4{12}\times\frac3{11}+\frac8{12}\times\frac7{11}=\frac{68}{132}=\frac{17}{33}
  6. Using only one of the two paths is the commonest slip. If you are told that \frac35 of the counters are red, let the total be n: there are \frac35n red.

Now try this

There are only black beads and white beads in a box.

There are 5 more black beads than white beads.

Two beads are taken at random from the box, without replacement.

The probability that the two beads are the same colour is \frac7{13}

Work out the number of white beads in the box.

  1. Let there be x white beads, x+5 black and 2x+5 in all: \dfrac{x(x-1)+(x+5)(x+4)}{(2x+5)(2x+4)}=\dfrac7{13}
  2. 13(2x^2+8x+20)=7(4x^2+18x+20)so 26x^2+104x+260=28x^2+126x+140
  3. 2x^2+22x-120=0, which iswhich is x^2+11x-60=0
  4. (x+15)(x-4)=0so x=4. Check: \frac4{13}\times\frac3{12}+\frac9{13}\times\frac8{12}=\frac{12+72}{156}=\frac7{13}

More like this: practice questions

Worked example 4: Independent events, only one happens

Two machines, A and B, work independently.

The probability that machine A breaks down on a day is 0.2

The probability that only one of the machines breaks down that day is 0.26

Work out the probability that machine B breaks down that day.

  1. Let P(B breaks down) =x, so P(B works) =1-x
  2. Only one: A breaks down and B works, or A works and B breaks down: 0.2(1-x)+0.8x=0.26
  3. 0.2+0.6x=0.26so 0.6x=0.06so x=0.1
  4. “Only one” means one breaks down and the other works: 0.2x=0.26 and 0.2x+0.8x=0.26 both miss this.

Now try this

Ali and Ben each take one penalty.

Whether each of them scores is independent.

The probability that Ali scores is 0.7

The probability that only one of them scores is 0.34

Work out the probability that Ben scores.

  1. Let P(Ben scores) =x: 0.7(1-x)+0.3x=0.34
  2. 0.7-0.4x=0.34so 0.4x=0.36so x=0.9

More like this: practice questions

Worked example 5: Independent events, working back from “both”

Maya goes through two sets of traffic lights, which work independently.

The probability that the first set is on red is 0.4

The probability that both sets are on red is 0.12

Work out the probability that exactly one set is on red.

  1. 0.4\times P(second red) =0.12, so P(second red) =0.12\div0.4=0.3
  2. Exactly one: 0.4\times0.7+0.6\times0.3=0.28+0.18=0.46
  3. 0.12 is the probability of both, not of the second set: using it for the second set scores no marks.
  4. Repeats work the same way: if P(3 heads) =\frac{27}{64}, then P(head) =\sqrt[3]{\frac{27}{64}}=\frac34, so P(3 tails) =\left(\frac14\right)^3=\frac1{64}, not 1-\frac{27}{64}

Now try this

Ravi and Sita each try a puzzle.

Whether each of them solves it is independent.

The probability that Ravi solves it is \frac35

The probability that both of them solve it is \frac15

Work out the probability that exactly one of them solves it.

  1. P(Sita solves) =\frac15\div\frac35=\frac13
  2. Exactly one: \frac35\times\frac23+\frac25\times\frac13=\frac6{15}+\frac2{15}=\frac8{15}

More like this: practice questions

Worked example 6: Repeated with replacement, at least one of each

There are only red beads and white beads in a bag.

The number of red beads : the number of white beads =3:2

A bead is taken at random, its colour is recorded and it is put back. This is done n times, where n\geq2

Write down an expression, in terms of n, for the probability of getting at least one red bead and at least one white bead.

  1. P(red) =\frac35 and P(white) =\frac25
  2. P(red every time) =\left(\frac35\right)^n and P(white every time) =\left(\frac25\right)^n
  3. Every other result has at least one of each: 1-\left(\frac35\right)^n-\left(\frac25\right)^n
  4. The brackets matter: \frac{3^n}{5} is not \left(\frac35\right)^n

Now try this

A fair six-sided dice is thrown n times, where n\geq2

Write down an expression, in terms of n, for the probability of getting at least one six and at least one number that is not a six.

Type powers with ^ and fractions with /, for example x^2 or (x+1)/3

  1. P(a six every time) =\left(\frac16\right)^n and P(no six at all) =\left(\frac56\right)^n
  2. 1-\left(\frac16\right)^n-\left(\frac56\right)^n

More like this: practice questions

Practice questions