Secondary menu

Search form

The colour of money

By

John Haigh

Submitted by plusadmin on May 26, 2009

26/05/2009

Are you disappointed because ITV's "most stressful game show on TV", The colour of money, seems to have been pulled? Do you think that you had just the right strategy to win? Then check out if you were right with John Haigh's analysis of best play.

The game consists of 20 boxes, each identified by its own colour, and each containing one of the integers from 1 to 20, which have been randomly allocated to the boxes. The contestant, let's call her Louise, is given a target number at least 50 and up to about 80. She chooses a box at random, not knowing which integer it contains, and then sees the
sequence being generated in front of her. If she calls out "Stop!", then the last number shown is banked towards her target. If she fails to call out at or earlier, the sequence is extinguished, and that box contributes zero towards her target. If she called stop before was reached, that is, if she banked, then the true value
of is revealed. She may select up to ten boxes, one at a time, and wins thousand pounds if she reaches her target, otherwise she wins nothing.

Louise's aim is obviously to maximise her chance of reaching the target. Whatever her long-term strategy, she has only one decision to make in any round — at what value does she intend to call "Stop"? Is there an optimal strategy Louise should follow?

Starting at the end

What's the best strategy to get your hands on this?

There is indeed and we can find it by backward induction. We'll use the word position to describe the state of the game at a particular moment: the position tells us how far Louise is from her target value (that is, it tells us the residual target), and which boxes she has left.

Now suppose that Louise is just about to begin the final round. Her strategy is clear — wait for the residual target, then bank. At any position in the penultimate round, there is a finite list of decisions: there is a finite number of boxes to choose from, and for each box there is a finite number of values at which Louise can say "Stop". For each of these decisions you can find the
distribution of positions reached in the final round, and thus you can find the chance of reaching the target. Hence the optimal decision, and its success chance, can be found for all these positions. It's possible to continue this argument all the way back to the initial round. Thus an optimal strategy to reach any target exists: but as its description must specify the decision to be made in
each round for all possible residual targets, and boxes remaining, it is infeasible to write it down here. However, we can offer some pointers to possible long-term strategies, and show how to find the best strategy near the end of the game.

The first ever game

Let's look at the first game seen on ITV to illustrate the optimal end game strategy. With two rounds to go, the residual target was 15, and the twelve boxes left contained the values 1, 4, 5, 6, 9, 10, 12, 13, 15, 17, 19, 20. Four boxes have value of 15 or more, so there are two routes to success: the "bold play" of aiming for 15 immediately (that is not saying "stop" until 15 is reached), or
intending to take two steps, such as 9, then 6. We compare their respective merits by counting how often each route would succeed. It does no harm to assume that both boxes are used, even if the target is met first go.

What's the best end game?

There are 12 choices for the first step, and 11 for the second, so there are choices altogether. With bold play, Louise's first choice succeeds four times, and fails eight times. In the first case, she wins whatever happens with the 11 possibilities on her second go. In the second case she wins four times, as the same chance of success applies to second attempt as did to the unsuccessful first attempt. So altogether, of the choices will win

Now suppose Louise aims to bank 9 first, that is, she does not call stop until 9 is reached. With eight of the remaining boxes this strategy succeeds, leaving her with eight boxes that score the residual 6 or better, giving chances of success. There are four boxes which fail to score 9, in which case she must hope to select one of the four boxes that score 15 in the last round, giving another chances. So we have a total of chances of success by this route. Similarly, the success frequency if aiming to bank 10 first go is ; and going for 12 first wins times - this is the best option.

We will show here that it is never better to try to bank the lower of two scores before the higher, so, by a margin of just one chance in 132 over its nearest competitor, best tactics are to aim for 12 first, winning 84/132 = 7/11 of the time. The answer may be counter-intuitive, as this intended route would lead to a total of 16, not 15 — but it is indeed optimal!

Two Rounds Left

Consider the penultimate round, with residual target . We'll assume that it is actually possible to achieve the target. Suppose that

are the numbers in the remaining boxes. We'll show how to find the best strategy to reach the target. Suppose that of the boxes have value at least , and assume - otherwise the target will definitely be reached in one selection. One possible strategy when is to have two shots at reaching with one box. The success frequency out of the 132 possible box choices, using the argument deployed above, is

(1)

Now suppose Louise aims to reach the target in two steps, and . Suppose with and , but : we will prove that aiming to stop at , then at , is at least as good as aiming for , then . The first strategy works if first and then are banked; or if is not reached, but is achieved in the last round. Simple counting, as in the example above, shows that the success frequency is

(2)

The second one works if both and then are banked, or if is not reached, but is scored in the last round; when is banked, we must separate the cases when the first box has a value less than , or is at least . The overall success frequency is thus

Inspection shows that this cannot exceed (2), as . So our claim is proved. There may be several candidate pairs satisfying the given conditions; the best choice amongst them is that pair that maximises the value of (2). (When , so that it is not possible to reach in one round, then aiming for , then , or for , then have the same chance of success.) Finally, suppose that and , but also . Here seeking to bank twice is clearly better than aiming for first. The success frequency is

(3)

Optimal play in the penultimate round comes from whichever of the expressions (1), (2) and (3) is largest, across all relevant choices of and .

Three rounds left - illustration

Things become quite a lot more complicated when there are three rounds left. To get a feel for what's going on, let's look at a particular example. Suppose that the 13 remaining boxes contain the twelve amounts noted above for the first game played, along with a box containing the number 3. For any residual target, we can find optimal play by considering as putative stop values each of the 13
box values, and exploring the consequences for whichever of them is selected next. We used a programmed computer to find the best initial stop value and the overall success chance. The results are shown in table 1. Optimal play reaches any residual target of 6 or below, scores above 56 are impossible. There are 13×12×11=1716 possible choices for the three boxes.

Table 1: Suppose values {1, 3, 4, 5, 6, 9, 10, 12, 13, 15, 17, 19, 20} are in the last 13 boxes. For the residual targets shown, the optimal quantity to seek to bank on the first move is shown ('Best aim'), as is the frequency (out of 1716 occasions) that this strategy, followed by optimal strategy in the remaining two rounds, would achieve the target. For some targets, there are several
optimal strategies; only that with the lowest initial target is given.

The calculations for table 1 apply specifically to 13 boxes listed. The subtle changes demonstrate how impractical it is to find best play in a TV studio, with no pre-programmed computer at hand to run through the possibilities. However, the margin of superiority of the best play, over its nearest rivals, may be very thin. The corresponding calculations for a range of other collections of 13
boxes reinforce a message seen in the table: Louise must not be too cautious - even for a target as low as 14 over three rounds, she should not "safely" bank 5 or 6. She can ill afford to waste boxes with high values.

Starting at the beginning - maximising the mean

Using backward induction to work out the best strategy rapidly becomes very hard, so let's take another approach, starting at the beginning.

One strategy might be to look at all the possible stopping values in each round and to choose the one that, on average, gives the highest score. Suppose that, in the first round, Louise intends to stop at . There are boxes whose value is at least , and she succeeds, but boxes where she would fail, so her mean score is

This is maximised at 5.5 when is either 10 or 11. In later rounds, suppose the values remain in the last boxes. It cannot be optimal to stop at a value not in this list, and the mean score obtained is maximised by stopping at that value for which

is largest. Detailed analysis shows that using this for the first two rounds gives an overall mean score of from these rounds, just over twice the best mean value from the first box.

How much should you aim to bank first?

We have run computer simulations of this strategy for all ten rounds: we found that the mean score was 55.7 (with standard deviation of 13.6), and that the respective chances of reaching targets of 50, 60, 70 and 80 are about 72%, 44%, 20% and 5%. This strategy is not as good as one that pays regard to the actual target, but it indicates floors for Louise’s chances of success.

We saw earlier that, where a desired sum could arise both in one step, or as the sum of two values, in the last two rounds, it might not be best to go for two roughly equal values. By contrast, earlier in the game, suppose there are several pairs for which the sums are equal. Among these pairs, the highest chance of banking both sums in the next two rounds will arise when and are as close together as possible. This suggests aiming to bank similar amounts in each of the early rounds, when it's difficult to work out an optimal strategy from the backward induction.

Starting at the beginning - going for the same R

So suppose that, over the full ten rounds, Louise uses the same stop value each time, irrespective of the unfolding outcomes. Since we'll be thinking in multiples of , we'll assume that for some integer - if is not exactly divisible by , then we simply "round it up" to the next biggest integer that is. As Louise chooses ten boxes at random, she has

equally likely choices. The chance she achieves her target is just the fraction of times her selections of stop values lead to a total of or more over the full ten rounds.

Recall that boxes contain or more, and boxes have less than . Thus, with a fixed stop value of ,

choices will score exactly . and so choices will score at least . Louise's chance of reaching is . We can use this to work out optimal stop values for each target . For some targets there are several possible fixed stop values – e.g. 72 might come from six 12s, eight 9s, or nine 8s. Table 2 shows the figures only for the best methods in such cases.

Table 2: For a range of targets, the best fixed stop values, and the success frequencies (out of N =184,756). (Considerations (1), (2) below are ignored.)

We can do much better than these figures in places: for example, the stop value of 11 achieves a total of 66 in 60,626 ways, so totals of 63, 64 or 65 can also be reached at least that often. Two obvious modifications, that can only increase her chance of success, are:

if ever the box containing R is revealed, the stop value in later rounds can safely be increased to the next lowest score in the remaining boxes;

if her residual target falls below R, so her stop value drops.

Practical strategies

Table 2 shows that using a constant stop value can succeed, at least half the time, for all targets up to 60. However, table 1 illustrates the difficulties of making the best decision, with only three rounds left, even for a modest residual score. So what is Louise's best strategy?

Before each round, she knows the average sum needed to meet the target: if there are rounds to go, then the average target per round is . One possible strategy is to use the minimum stop value that would bank That amount. Computer simulations of this strategy are not encouraging, especially for low targets. It does not get good value from high scoring boxes in the early rounds, where the remaining average is 8 or less. It turns out to be uniformly inferior to the two strategies we discuss next.

The calculations needed for optimum play in the last two rounds are not too hard, so we assume that Louise uses the best strategy from that stage, and that she always pays regard to factors (a) and (b). An easy to recall strategy is to simply seek to bank the value that maximises the mean score obtained for the first eight rounds.

Alternatively, in a gesture at tailoring the strategy to the target, and based on aiming to bank a similar amount each round, Louise could use the following strategy:
A. Select a stop value for round one, and decrease (increase) that value by one unit if ahead of (behind) the pro rata target during round two to seven;
B. In round eight, note the residual target, and use a stop value based on a "smoothed" version of table 1.

By "smooth" in step B, we acknowledge that table 1 was constructed for a specific list of the last 13 boxes, but we will be guided by the pattern shown therein: for residual targets up to 28, gradually increase the stop value to 12, and use table 1 for higher targets.

Computer simulations lead to the following recommendations as stop values for step A:

For , use 9 or 10;

for , use 10;

for , use 10 or 11;

for , use 11;

for , use 11 or 12.

The success rates for these two strategies are very similar, ranging from around 85% when to about 10% when . The success rate does not quite fall linearly: in round figures, each time increases by one unit, the percentage chances of success drop by 2.5 up to , then by 3 up to , and finally by 2 up to . Neither strategy is optimal, but we suggest that perfect play will do only slightly better. Luck plays a large role, and optimal play, even if identified, is by no means a guarantee of success!

Variations

The extra difficulty of hitting higher targets is not matched by a corresponding increase in prize value. If the target will always be in the range 50 to 80, then the utility of the potential prize to most contestants will not change dramatically. And an 85% chance to win £50K is far more attractive than a 30% chance to win £70K. Perhaps the prize for reaching might increase more rapidly than linearly, for ?

One can imagine two (or more) players competing in a contest to see who could obtain the highest total score, for a given set of boxes (which they would take turns to select). Each player would have a hidden button to press, indicating when they wished to bank the current total displayed; the scores and box values would be revealed round by round. As in the TV programme Countdown the
winners could take on new opponents, with periodic championships between the most successful players.

About this article

When not thinking about TV game shows, John Haigh teaches mathematics, especially probability, at Sussex University. He thanks David Spiegelhalter and Paul Twomey for their comments on earlier versions of this account.