recent comments

recent articles

  • The Avengers

    Almer S. Tigelaar 11 / 05 / 2012

    Marvel teased us with the release of this film near the end of various previously released super hero flicks like Captain America and Iron Man 2. This would be the movie that unites all the super heroes from the Marvel universe. Well actually, only those that had not been previously licensed to other studios. Hence, you will not find characters from X-Men, Spiderman, or the Fantastic Four in this movie. Director Joss Whedon brings back fond memories of creative television series like Firefly and Dollhouse, but what does he make of a 220 million blockbuster production?

    read more 0 comments
  • Hugo

    Almer S. Tigelaar 06 / 03 / 2012

    Hugo is based on a relatively recently released (2007) award winning book by Brian Selznick. It is not surprising that the film rights to the books were quickly sold, and certainly not by the least of directors either: Martin Scorsese. He has a career spanning decades and has directed a string of movies in recent years which I liked, among which are Shutter Island, The Departed and Gangs of New York. However, those were admittedly all in different, less family friendly, genres. So, I went to Hugo hoping to be pleasantly surprised.

    read more 0 comments
  • How long would it take to read Wikipedia?

    Almer S. Tigelaar 21 / 02 / 2012

    Wikipedia has become the de facto encyclopedia on the Internet. A traditional encyclopedia spans many textbook volumes which would take any normal person ages to read. Few people would likely engage in such an endeavor. However, since Wikipedia is readily accessible: should you take up the challenge?

    read more 0 comments

Almer S. Tigelaar » Puzzles

Puzzle #2: The Soccer Trading Cards Problem

Almer S. Tigelaar 02 / 08 / 2011, 09:00

A well known Dutch supermarket chain has on several occasions handed out soccer trading cards: for each € 10,- you would spend at one of their supermarkets you get a blind packet with five trading cards. So, you do not know the contents of the packets beforehand and therefore may end up with duplicates. These cards were a true hype among youngsters, many of whom clung to buyers exiting supermarkets to ask for their packs[1]. Because the number of unique cards is finite, a logical question is: how much money does one have to spend before having the entire card collection?

Problem
There are 270 soccer trading cards in total. For every € 10,- you spend you get a pack of 5 (blind) cards. The cards may overlap between packs[2]. You may not directly buy cards from other parties or trade cards with others (as is common in real life). Your only source of cards is the supermarket itself. How much do you have to spend to get all 270 cards? First try to work out a solution yourself, then click below to expand mine.

More »

Solution
For the case were there is no overlap between the contents of the packs this problem is easy. In this case it would be guaranteed that each pack would contain cards that you do not yet have. You would have to spend: \left(\frac{270}{5}\right)\cdot10= 540,-. Although this is a starting point, it is not the case and we can safely assume that the supermarket wants you to spend more than just € 540,- ;)

The notion of overlap introduces a probabilistic component to this problem. We will call the event in which you get a card you already have O for overlap. There is a probability of overlap P(O), for the time being we will assume that at all times this probability is fixed. This is actually an oversimplification as will become clear later. I also received the cards from the (same) supermarket and based on this I think that an estimate of 10 to 20 percent for P(O) is reasonably accurate as a starting point. Let us assume P\left(O\right)=0.2 (20 percent) and of course P\left(\neg O\right)=0.8. Now, if we receive a number of cards n, we can say that there should be n\cdot P\left(\neg O\right) new cards among these and n\cdot P\left(O\right) duplicates. We are really only interested in the new cards, since our `count’ of new cards must eventually equal the entire collection: 270 cards. The question `how many cards do we need to buy before we have 270 unique ones?’ is trivial to answer:

n\cdot P\left(\neg O\right)=270\\n\cdot0.8=270\\n=\frac{270}{0.8}\\n=337.5

So we need to obtain at least 337.5 cards to have all 270 unique ones. Since half a card does not exist, and cards are always distributed in packets of five, we need to round this up to 340 cards. Since each quintet of cards costs € 10,- this means we must spend at least the amount s defined as:

s=\frac{340}{5}\cdot10=680

Which is indeed somewhat more. One would need to spend € 680,- to obtain these 340 cards and as a result have the complete collection of 270 cards and an excess of 70 duplicates.

The generic formula is of the form:

s\left(P\left(O\right)\right)=\frac{\left\lceil \frac{n}{\left(1-P\left(O\right)\right)}\right\rceil }{5}\cdot10

Where parameter P(O) denotes the probability of obtaining an overlapping card, n the number of cards (270) and the ceiling function (denoted with the symbols \left\lceil \,\right\rceil) rounds up to the nearest value divisible without remainder by 5.

This in turn can be simplified to the following:

s\left(P\left(O\right),c\right)=\left\lceil \frac{n}{\left(1-P\left(O\right)\right)}\right\rceil \cdot c

Where the additional parameter c denotes the costs of one card, for this case: c=2.

So, what is P(O)?
Let’s assume that the supermarket knows the buying behaviour of its customers and bases P(O) largely on that information. Let us further assume that the period in which the cards are `given away’ lasts for about four weeks and that the average family goes to the supermarket once a week spending € 200,-. This means that they will spend € 800,- in the entire period. Based on this the optimal value of P(O) can be calculated:

800=\left\lceil \frac{270}{\left(1-P\left(O\right)\right)}\right\rceil \cdot2\\400=\frac{270}{\left(1-P\left(O\right)\right)}\\400\cdot\left(1-P\left(O\right)\right)=270\\1-P\left(O\right)=\frac{270}{400}\\-P\left(O\right)=\frac{270}{400}-1\\P\left(O\right)=0.325

So, based on this simple model the chance of obtaining duplicates for our average family would be 32.5 percent, instead of the 20 percent used before.

Complications & Trading
The previously described model is a bit simplistic. There are many complicating factors. One is that the probability of duplicates changes over time and that this probability is not uniform for all cards: each card has its own P(o). By varying the probabilities one can create highly sought after cards and cards that everyone already has multiple times. I would assume that cards of popular players are more scarce than those of relatively unknown soccer players.

Interestingly this non-uniform distribution of cards causes cards to have a value relative to each other laying the foundations for an economy. A card with a P(o) of say 0.10 can be said to be `worth’ twice as much as one with a P(o) of 0.20, even though the underlying monetary value for obtaining the cards really is equal. This scarcity principle is seen in many trading card games, where eventually the monetary value changes to reflect the scarcity of the card! For example: some cards in the popular `Magic’ card sets are worth hundreds of Euros.

Another complications arises from the phenomenon of actually trading the cards. Trading is beneficial in the sense that it can reduce the minimum spending needed to obtain all cards. By trading you can also rid yourself of duplicates useless to you. However, people are only willing to trade those cards that they have duplicates of. The previously mentioned scarcity influences the amount of trading that takes place. Hence, if the P(o) is equal for all cards: uniform, then there will be maximum trading opportunity. Whereas any deviation from uniformity likely results in less trading, since scarce cards are not easily traded nor likely to be found as duplicate.

The supermarket chain sold the excess cards it still had for € 0,10 per card after the handout ended. Assuming that this reflects about double the true value of a card, after all: the supermarket wants to make a profit, this would imply that all the products bought in the action period had about 2.5 percent soccer trading card tax (\frac{0.05}{2.00}=0.025).

Conclusion
The only reason for a supermarket to give anything to its customers `for free’ is to influence their buying behaviour. If your child is constantly nagging you for more soccer trading cards, you are more likely to round up your spending at the supermarket to the nearest `ten’ to get extra packets of cards. Rounding down, which means: buying less or cheaper products, is probably less common.

Of course trading cards have an entertainment value as well: you can play games with the cards. The trading process also has a certain educational value for children. Especially since this trading appears to mimic normal economic principles. Nevertheless, there is always one party that definitely wins here which is the supermarket itself. Without spending any extra money of their own, they succeed in getting higher profits.

More in Puzzles:

Post comment as twitter logo facebook logo
Sort: Newest | Oldest