LibraryQuant puzzles

What the Last Published Price Covers

Quant puzzle · intro · free, full solution

The question

A vegetable Market, meaning the people willing to buy tomatoes, the people willing to sell them, and the arrangement that lets the two find each other.

The last completed trade in tomatoes was published for everyone to see: 30 dollars a kilo, for 40 kilos. That is the number on the board.

We want 300 kilos, right now. Walking the stalls, this is what is actually on offer and at what price:

Kilos on offerPrice a kilo
4030
6031
10033
20036

Four questions.

  1. What do the 300 kilos cost, and what is that a kilo on average?
  2. Somebody budgeted using the published 30. By how much are they short?
  3. After the buying is done, the newest published trade reads 36. A neighbour sees that and says tomatoes have become more valuable this morning. What is wrong with that?
  4. The market is run as an Exchange: members only, one standard kilo, every completed trade published, settlement machinery behind it. Which of those four promises that the tomatoes are any good?

Hint

Ask what the board number was a record of, and how many kilos it covered. Then fill the order stall by stall, the way a shopper would.

The idea behind it

A published price is the last thing that happened, not a quantity available at that number. The gap between the two is set by how much is on offer beside it, which is something called liquidity, and the gap is what a large order pays.

Worked solution

Walking up the stalls

The order is filled from the cheapest stall upward, because nobody pays 36 while 40 kilos sit at 30.

Adding those four: 1,200 plus 1,860 is 3,060, plus 3,300 is 6,360, plus 3,600 is 9,960 dollars.

A kilo on average is 9,960 divided by 300, which is 33.2 dollars.

Step chart of Price a kilo (dollars) against Kilos bought so far. Price the next kilo costs. 0: 30; 40: 31; 100: 33; 200: 36; 300: 36. Reference line the published number at y = 30. Reference line the 300 kilos we wanted at x = 300.Price a kilo (dollars)30323436040100200300Kilos bought so farthe published numberthe 300 kilos we wantedStep chart of Price a kilo (dollars) against Kilos bought so far. Price the next kilo costs. 0: 30; 40: 31; 100: 33; 200: 36; 300: 36. Reference line the published number at y = 30. Reference line the 300 kilos we wanted at x = 300.Price a kilo (dollars)30323436040100200300Kilos bought so farthe published numberthe 300 kilos we wanted
The price is flat while a stall lasts and jumps at the boundary, so the order pays 30 for only the first 40 kilos and 36 for the last hundred.

The shortfall

Budgeting at the published number gives 300 times 30, which is 9,000 dollars. The actual bill was 9,960. The shortfall is 960 dollars, which is more than a tenth of the budget, and nothing unusual or unfair happened to produce it.

The published 30 was true. It described a completed agreement between two other people, over 40 kilos, which is already finished. It was never a price at which anybody offered 300 kilos, and it did not become one by being printed in large type.

That is the whole distinction, and it holds well outside the vegetable market. A published number is a record of the past. What we pay is set by what is on offer now, and by how much of it we want. How much is on offer beside the last price is something called Liquidity, and it is the quantity that decides how far up the stalls a large order has to walk.

The neighbour, and the newest number

The neighbour is reading a record we ourselves wrote. The board now says 36 because the last kilos to change hands were the last hundred of our own order, taken off the dearest stall in the row.

Nothing happened to the tomatoes. Nobody arrived with new information about tomatoes. One buyer wanted more than the cheap stalls held and worked up the row, and the board faithfully reported the final step of that walk. If the last published number were a verdict on the goods, whose verdict was it here, given that the only person who acted was us?

The same thing runs the other way. Somebody selling 300 kilos into this row walks down instead of up, and leaves a lower number on the board behind them.

What the exchange promised

None of the four. Each of them is a rule about how trading happens.

Between them those four let people who will never meet trade all day without an argument about what was agreed. That is a large thing to supply and it is a different job from vouching for what is being traded. The two get confused constantly, and the confusion is easier to see with tomatoes on the table than it is anywhere else.

One check

The published number is 30 and only 10 kilos sit at 30, with the next 50 at 34. An order for 20 kilos pays 10 at 30 and 10 at 34, which is 640 dollars, or 32 a kilo. If that came out at 600, the thing to go back to is that the published number covers only the kilos actually offered at it.

In short

9,960 dollars for the whole order, which is 33.2 a kilo on average and 960 dollars more than the published 30 would suggest. The published number is a record of a finished agreement over 40 kilos between two other people, not an offer of any size to anybody. Afterwards the newest published number reads 36, and all that records is what we ourselves just did.

Learn quant finance on Thuztra Learn

Thuztra Learn teaches the maths of quant finance from zero, in short lessons, for readers who are unsure of it. Three questions in the app build your quant roadmap, free. Membership is a paid subscription. See what Thuztra Learn is and what it costs, or see the whole Core quant curriculum.

Get the app and answer the three questions:

Download on the Microsoft Store Download for Android

On Android, the app is a direct download, not a Google Play listing. Which devices, and what each one needs.

Further reading

Topics

Also in the library