*Here is a little Easter post where I try to model the Easter Egg hunt as if it were the production of a mineral resource. A simple model based on system dynamics turns out to be equivalent to the Hubbert model of oil production. We can have "peak eggs" and the curve may also take the asymmetric shape of the "Seneca Peak." So, even this simple model confirms what the Roman Philosopher told us long ago: that ruin is much faster than fortune. (Image from uptownupdate)*

For those of you who may not be familiar with the Easter Bunny tradition, let me say that, in the US, bunnies lay eggs and not just that: for Easter, they lay brightly colored eggs. Tradition is that the Easter Bunny spreads a number of these eggs in the garden and then it is up to children to find them. It is a game that children usually love and that can last quite some time if the garden is big and the bunny has been a little mean in hiding the eggs in difficult places.

A curious facet of the Easter Egg hunt is that it looks a little like mineral prospecting. With minerals, just as for eggs, you need to search for hidden treasures and, once you have discovered the easy minerals (or eggs), finding the well hidden ones may take a lot of work. So much that some eggs usually remain undiscovered; just as some minerals will never be extracted.

Now, if searching for minerals is similar to searching for Easter Eggs, perhaps we could learn something very general if we try a little exercise in model building. We can use system dynamics to make a model that turns out to be able to describe both the Easter Eggs search and the common "Hubbert" behavior of mineral production. The exercise can also tell us something on how system dynamics can be used to make "mind sized" models (to use an expression coined by Seymour Papert). So, let's try.

System dynamics models are based on "stocks"; that is amounts of the things you are interested in (in this case, eggs). Stocks will not stay fixed (otherwise it would be a very uninteresting model) but will change with time. We say that stocks (eggs) "flow" from one to another. In this case, eggs start all in the stock that we call "hidden eggs" and flow into the stock that we call "found eggs". Then, we also need to consider another stock: the number of children engaged in the search.

To make a model, we need to make some assumptions. We could say that the number of eggs found per unit time is proportional to the number of children, which we might take as constant. Then, we could also say that it becomes more difficult to find eggs as there are less of them left. That's about all we need for a very basic version of the model.

Those are all conditions that we could write in the form of equations, but here we can use a well known method in system dynamics which builds the equations starting from a graphical version of the model. Traditionally, stocks are shown as boxes and flows as double edged arrows. Single edged arrows relate stocks and flows to each other. In this case, I used a program called "Vensim" by Ventana systems (free for personal and academic use). So, here is the simplest possible version of the Easter Egg Hunt model:

As you see, there are three "boxes," all labeled with what they contain. The two-sided arrow shows how the same kind of stock (eggs) flows from one box to the other. The little butterfly-like thing is the "valve" that regulates the flow. Production depends on three parameters: 1) the ability of the children to find eggs, 2) the number of children (here taken as constant) and 3) the number of remaining hidden eggs.

The model produces an output that depends on the values of the parameters. Below, there are the results for the production flow for a run that has 50 starting eggs, 10 children and an ability parameter of 0.006. Note that the number of eggs is assumed to be a continuous function. There are other methods of modeling that assume discrete numbers, but this is the way that system dynamics works.

Here, production goes down to nearly zero, as the children deplete their egg reservoir. In this version of the model, we have robot-children who continue searching forever and, eventually, they'll always find all the eggs. In practice, at some moment real children will stop searching when they become tired. But this model may still be an approximate description of an actual egg hunt when there is a fixed number of children - as it is often the case when the number of children is small.

But can we make a more general model? Suppose that there are many children and that not all of them get tired at the same time. We may assume that they drop out of the hunt simply at random. Then, can we assume that the game becomes so interesting that more children will be drawn in as more eggs are found? That, too can be simulated. A simple way of doing it is to assume that the number of children joining the search is proportional to the number of eggs found (egg production). Here is a model with these assumptions. (note the little clouds: they mean that we don't care about the size of the stocks where the children go or come from)

This model is a little more complex but not so much. Note that there are two new constants "k1" and "k2" used to "tune" the sensitivity of the children stock to the rest of the model. The results for egg production are the following:

Now egg production shows a very nice, bell shaped peak. This shape is a robust feature of the model. You can play with the constants as you like, but what you get, normally, is this kind of symmetric peak. As you probably know, this is the basic characteristic of the Hubbert model of oil production, where the peak is normally called "Hubbert peak". Actually, this simple egg hunt model is equivalent to the one that I used, together with my coworker Alessandro Lavacchi, to describe real historical cases of the production of non renewable resources. (see this article published in "Energies" and here for a summary)

We can play a little more with the model. How about supposing that the children can learn how to find eggs faster, as the search goes on? That can be simulated by assuming that the "ability" parameter increases with time. We could say that it ramps up of a notch for every egg found. The results? Well, here is an example:

We still have a peak, but now it has become asymmetric. It is not any more the Hubbert peak but something that I have termed the "Seneca peak" from the words of the Roman philosopher Seneca who noted that ruin is usually much faster than fortune. In this example, ruin comes so fast precisely because people try to do their best to avoid it! It is a classic case of "pulling the levers in the wrong direction", as Donella Meadows told us some time ago. It is counter-intuitive but, when exploiting a non renewable resource, becoming more efficient is not a good idea.

There are many ways to skin a rabbit, so to say. So, this model can be modified in many ways, but let's stop here. I think this is a good illustration of how to play with "mind sized" models based on system dynamics and how even very simple models may give us some hint of how the real world works. This said, happy Easter, everyone!

(BTW, the model shown here is rather abstract and not thought to describe an actual Easter Egg hunt. But, who knows? It would be nice to compare the results of the model with some real world data. My children are grown-ups by now, but maybe someone would be able to collect actual data this Easter!)

Thank you, Ugo,for this lovely and witty post. It's a brilliant example of explaining complex matters in a simple and elegant way.

ReplyDeleteHappy Easter!!!

Thanks, Tatiana, and happy Easter to you, too!

ReplyDeleteThank you for the post, Ugo - it made me smile a little and think a lot (or was it the other was round?)

ReplyDeleteobvious natural limits described in terms even an economist might understand.

ReplyDeleteNOT.

I did a model a lot like this, to show the basic principle of steering. It assumes only that "navigators" will learn as fast as they comfortably can to grow the economy, and also to adapt to limits, and shows that starting a response early has little end effect, but starting to respond late is disastrous. It's a lot like steering a car, or paddling a canoe on a winding river, don’t turn too late.

ReplyDeleteThose who whish to remain unconvinced, though, seem to jump on the fact that this “Easter Egg” model, or mine, are really metaphors for circumstances that are quite hard to define in a set of rules.

Then we have to deal with reality as "a work in progress", where both the environment and the navigator are actively in the process of discovering themselves...

http://www.synapse9.com/signals/2011/08/02/return-to-a-world-that-works/

It seems to me that "fracking" is one of those techniques where we have learned to extract the resource more efficiently.

ReplyDeleteYes, fracking would recover all the eggs in a short time. But the garden would not look pretty afterwards!

DeleteNice post. Simple but very enlightening.

ReplyDeleteUpon reading the title, I wondered if you were to the point of commenting about the observed scarcity of (hen) eggs in EU during the last weeks... Maybe this is a good subject for another post.

Happy Easter.

Well, there may be a "peak (real) eggs" at some moment. Maybe we all need to start raising chicken!

ReplyDeleteActually, I do keep a hen in the garden!

DeleteBrilliant pedagogy !

ReplyDeleteI came to your blog through the backdoor -- attempting to understand the Limits to Growth chart. Thank you for being so cogent. I think I'll return regularly to read what you're saying.

ReplyDeleteWell, thanks. I try to do my best

DeleteIf colored eggs are mineral resources, what are the jelly beans, and chocolate bunnies?

ReplyDeleteTHE LESS VALUABLE MINERAL RESOURCES EXTRACTED FROM THE SAME MINE.

DeleteCongratulations, Ugo.

ReplyDeleteAs Andyuk said, even an economist could understand it. But it is a human counterintuitive situation: we tend to use all our skills (i.e. trying to be "more efficient") and this only accelerates the prosperous way down.

Just arrived from very nice Easter holydays in my small village, where only old shepherds and farmers understand clearly. Young people tend to trust more in more powerful tractors (with GPS, levelizing systems, aircon and radio+TV in teh cabin, self programming plows, etc.) The rest believe that if diesel fails "they will find something else". In the last four years, since I explained the peak oil theory and its consequences in the village, and suggested they should rather go, now that they can yet afford it, to breed donkeys, horses and mules, store and use non transgenic seeds, and try to secure first absolute self sufficiency in food, and then, only then to find for selling outside the farmed products, they have not bought a single donkey or horse (but for pleasure), but have bought four new very modern (and expensive) tractors (1,500 inhabitants) and two so called "Isabel la CatÃ³lica", automatic tobacco harvesting machines. Of course, all of it, against credits to be paid "in the future". When I asked them why this name for these modern Italian machines, they told me that because they are also going to push back Moroccans to Africa again (they are at present contracted by seasons to manually harvest the leaves of the tobacco). Certainly "pulling the levers in the wrong direction". Difficult to compete with John Deere. Thanks again, Ugo.

Thanks, Pedro. Very interesting story. I think that the situation here, in Italy, is just the same!

ReplyDeleteThanks Ugo

ReplyDeleteI'm doing a course in systems dynamics at the University of Queensland (Australia) and you managed to explain how to build a model in few lines mucvh more effectively than my lecturuer has over several weeks.

One so simple, perhaps even an eocnomist can understand it...

I love the Seneca curve (as a term - as a reality it scares me a lot!)

Thanks for the clear and helpful post. Now I'm off to the park to find all the Easter eggs everyone missed :-)