Lentil convexity

Lentils.jpg
Out of my cold dead hands.
In which the curmudgeonly old sod puts the world to rights.
Index — Click ᐅ to expand:

Comments? Questions? Suggestions? Requests? Insults? We’d love to 📧 hear from you.
Sign up for our newsletter.

Author’s note. I mean no slight on people who buy tinned lentils. Personally, I quite like them.

So it turns out we haven’t been panic hoarding lentils after all. There is a benign explanation for the sudden disappearance of split peas from the nation’s grocery shelves.

And it is all to do with what happens when apparently harmless normal distributions, like those governing the purchase of lentils, reveal themselves not to be so normal after all. Suddenly, when you are so many standard deviations from the mean that probability theory tells you the risk is as good as zero, the elegant symmetry of the bell curve goes to hell, we’re knee deep in fat tails and there isn’t an edible legume to be had between here and Hollyhead.

Lentils in peacetime

In ordinary times, our lentil-buying habits are regular: hippies and vegans buy a lot, and everyone else buys none. Okay, almost none. The person on the Clapham Omnibus might have one tin, at the back of the cupboard, that someone got in a weak moment years ago, just in case of unexpected apocalypse or visit from long-lost, vegan, cousin from Australia.

But the peacetime lentil-buying motivations within the community are unrelated. Overall appetite is, within a tight range, predictable. The lentil-acquiring proclivities of each individual are independent: that is to say, my lentil acquisition does not greatly influence, and is not especially swayed by, yours.

National weekly lentil purchases therefore usually cleave to a normal distribution. A small part of the population (say 0.5% — the hippies) may buy 8, 9 or 10 tins. A slightly bigger section (say 4.5% — vegans, health-food fanatics etc.) may buy one or two, and the remaining 95% will buy very few (let’s say on average 0.1 tin each: one tin between ten, which is probably generous). Since these lentil buyers’ decisions are independent events[1] weekly overall tin purchases will fluctuate but overall the random variations within individuals will tend to even out the total. In the same week that your hippie stocks up for his bom shankar summer solstice druid’s convention cauldron partay, a vegan might skip a tin, and your 95% who hardly ever buy lentils make little difference to the acquisition rate in any weather.

Lentil buying projections in peacetime yesterday. The average per 100 people is 15, and any more than 28 is genuinely unthinkable.

The odds of everyone, including the normals, all going large on lentils in the same week is extremely low.[2] The consequence, across the community, is a normal distribution of weekly lentil acquisition. The random variation in purchases by people in the different demographic groups will cause a small fluctuation in in demand for lentils from week to week, but from a grocers’[3] perspective, the demand curve is predictable and manageable.

Lentil buying decisions are not independent

But in actual fact lentil purchasing decisions are not independent, as our new friend the coronavirus pandemic illustrates. They just seem like it, in most markets. Ninety-five per cent of the sample are connected by a general disposition not to buy lentils. But this disposition is a function of one’s apprehension of the proximity of apocalypse. Apocalypses are, in the main, rare, and one does not tend to form an opinion that one is nigh purely through ones’ own deductions from meteorological and astronomical data. Rather, we apprehend oblivion because someone said it on Twitter. Because Owen Jones wrote a thought-piece on it, or because — by Jupiter, everyone is suddenly buying lentils and there are hardly any left in Sainsbury’s.

So, we get infected with the idea of apocalypse by each other. Our legume-buying habits are not independent after all. They are all formed out of a collective consensus about the non-imminence of the second coming. While each person’s threshold for precautionary lentil purchase in the event of apocalypse will differ, across the group, news of the unchecked spread of coronavirus will bring each person closer to that threshold and will push some of them over it.

Back to the 95% normals. As they walk past the tinned goods shelf, it only takes a small proportion of them to decide this is the week to pick up an extra tin to blow the grocer’s expectations out the window. Let’s say, unnerved by all this elbow-touching and obsessive-compulsive hand-washing carry on, just 5 of the 95% decide to buy an extra tin. As the hippies, vegans & health nuts who buy lentils for fun are also buying their regular quota, the supermarket’s lentil supply quickly diminishes.

Then an unexpected second order of dependence emerges. For some of the 95% — who have not yet crossed the threshold for precautionary lentil purchase — then notice that the lentil shelf is nearly empty. They reconsider their apprehension of the apocalypse. They move closer to their threshold. Some cross it. Those who do collect a tin. The shelf is cleaned out.

Why an item limit does not work, and only makes things worse

The supermarket management, alarmed at this inexplicable sudden run on lentils, now intervenes. They impose a 3-item limit for each customer. But limiting most customers, who would not normally be seen dead buying one tin of lentils, to three, won’t help the problem, since the lentils-for-judgement-day-only contingent only wanted one each in the first place. The problem is not these people bulk buying, but that all of them are single-item buying. It will also irritate those hippies and rabbit-food munchers who would ordinarily buy more tins than that even when they weren’t panicking.

Not only will it not help, but it further validates the suspicion among the 95% non-hippies that these are indeed desperate times. After all, one could hardly ask for a clearer sign of imminent implosion of the social order than LENTIL RATIONING — could things get any more messed up?

The 95%, as one, increase their demand to the maximum permitted. It is only common sense.

The fat tail of the distribution. In the middle of the “bell”, the distributions look quite similar. At the extremes they are very different.

Still: no panic hoarding, but the shelf is bare. And those latecomers, discovering it is now too late to buy lentils, head to borlotti beans and Mexican bean fiesta. To their horror, they discover these have been cleaned out as well. Every distant fear about a forthcoming final reckoning now confirmed, they stampede for the couscous and quinoa.

Implications

Events which are really independent stay independent, however weird things get. The odds of flipping heads on a fair coin stays 0.5 however often you flip it, and whatever the previous results.[4] This makes the job of modelling truly independent events much, much easier. Your standard deviation stays put.

Interconnected events don’t. They go from stable, most of the time, to flat-out nutso in extreme times. Fair coins don’t go nutso. Dice don’t go nutso. Lentil buying can go nutso. You can’t model it. You can’t predict it. The correlation between events then changes further because it’s gone nutso. There’s a feedback loop.

The point? Modelling normal distributions of independent events is easy, and safe. Modelling distributions of interconnected events isn’t. It isn’t just a case of more complex maths. It isn’t possible. Now, mis-modelling overall lentil demand is a relatively low-stakes game: liable to annoy peaceniks — who are by nature unlikely to foment insurrection, and annoying them is kind of amusing anyway — plus, realistically (unless it is Armageddon, in which case lentil shortage is not the problem) actual consumption of lentils won’t change, so the supply-shortage will quickly sort itself out.

So a spot of convexity might not matter for the world’s lentil purveyors — but how about those in the multi-billion dollar global transport and hospitality industries? What would they do if everyone, all around the world, without warning — you know, billions of people — as one, indefinitely, stayed indoors?

Like that would ever happen.

See also

References

  1. BUT ARE THEY? I don’t want to spoil the punchline but HOLD THAT THOUGHT.
  2. With genuinely unconnected events the probabilities quickly fade into cosmic radiation: the odds of tossing heads just 100 times in a row with a fair coin is one in half a googol. You wouldn’t expect that to happen in several lives of the universe.
  3. DID YOU SEE WHAT I DID THERE?
  4. Practical point though: the longer your sequence of heads, the greater the probability that the coin is not fair.