Dust flux, Vostok ice core

Dust flux, Vostok ice core
Two dimensional phase space reconstruction of dust flux from the Vostok core over the period 186-4 ka using the time derivative method. Dust flux on the x-axis, rate of change is on the y-axis. From Gipp (2001).
Showing posts with label cocoa. Show all posts
Showing posts with label cocoa. Show all posts

Saturday, November 29, 2014

The love trade is going in circles

It has been years since I looked at diamond prices--the same as true for cocoa.

Here in China, Single's Day has just passed--and it may be time to start thinking about Valentine's Day. With this in mind, let's consider diamonds and chocolate--two of the enduring commodities in the love trade.

Below I present a chart comparing the cocoa price (US$/tonne) against the RAPI index for 1-ct diamonds (or at least my best guess of it given the information at hand).


Since 2010, we have seen a big cycle, with our current position not far from where we started, with chocolate being relatively expensive, and diamonds relatively cheap*.

The cocoa price seems to be rising of late. There's no civil war in Cote d'Ivoire--this time, the culprit is the long-term lack of investment in cocoa plantations, combined with a fungus that has already killed about 30% of this year's global production.


Because of the coming chocolate shortage, I've been stocking up.


It's slow going though. The local chocolate is pretty bad, and the foreign stuff only comes in a bit at a time.

* As always, you should not view this as investment advice. Especially if you are buying for a special someone.

Wednesday, June 13, 2012

Origins of multistability in economic systems: commentary on Soros (2012)

All over the world, the same message is relentlessly hammered home--conventional economics has failed. Policy makers did not foresee the 2008 crisis--and their attempts at remediation of the unemployment situation have had effects opposite to what was intended.

Why is this? Does economics in the real world differ so much from the theoretical? And if so, why?

Let us consider how complex behaviour arises in some natural systems.

Multistability in natural systems

The global climate system is a nonlinear, nonequilibrium system involving internal time-varying mechanisms, feedbacks, and external forcing. Systems with feedbacks are commonly multistable, prone to bifurcations, and hysteresis—even when those systems are driven by invariant driving functions.

In previous posts we have seen that the phase space projections of numerous climate functions show multistability--that is they tend to evolve not to a single equilibrium, but oscillate among any number of equilibria. The reason that multiple equilibria arise is because the dynamics of the climate system include both negative and positive feedbacks.


Different forms of stability. For asymptotic stability, given a limited range of  initial 
conditions, the system evolves towards a fixed point. For Lyapunov stability, once the system
reaches a limited region of phase space (b), the system tends to remain there. 


Where negative feedbacks dominate, the system tends to be stable. In the diagram above, there are different forms of stability, but the two most important are asymptotic stability (also called a point attractor) and Lyapunov stability. It will normally not be possible to distinguish between these on the basis of observation of some system.

Positive feedbacks tend to enhance the effects of external forcing, multiplying the magnitude of the stresses brought on by forcing. The presence of both negative and positive feedbacks supports a system with multiple disjoint regions of equilibria, bounded by separatrices. 


Time evolution of a system with multiple equilibria. In actuality, the separatrices 
are likely to show fractal interfingering.

I have commented on applications of this idea to unemployment, but have not discussed the origins of the necessary feedbacks required to generate multistability. Some comments by George Soros (below) seem to shed some light on this topic.

Soros' remarks on global economy

George Soros recently spoke at the Festival of Economics in Trento, Italy. What made his remarks interesting to me were his allusions to nonlinear dynamics in the evolution of the economic system, and their effects on policy. Soros begins by remarking on the lack of success policy makers have had in predicting economic outcomes in the past few years. The reasons for these failures . . .
go back to the foundations of economic theory. Economics tried to model itself on Newtonian physics. It sought to establish universally and timelessly valid laws governing reality. But economics is a social science and there is a fundamental difference between the natural and social sciences. Social phenomena have thinking participants who base their decisions on imperfect knowledge.
Anyone reading about Austrian Economics will be familiar with the argument. Market participants will try to act in a way that maximizes benefits to themselves, but what constitutes maximum benefit may vary from one to another. A highly technical treatment of this topic can be found here (probably not of interest to most of you, except for the part about aggressive participants with a strategy of investing in risky assets increasing the likelihood of a market crash for everyone).

The market participants do not perceive the true nature of the system in which they are operating, and so many will choose suboptimal strategies. However, as they act, they also change the nature of the system, so that what would have been an optimal strategy had all participants been "rational" may become suboptimal in the real world. Likewise, strategies which would be suboptimal in a purely rational world may become optimal.
I found a two-way connection between the participants’ thinking and the situations in which they participate. On the one hand people seek to understand the situation; that is the cognitive function. On the other, they seek to make an impact on the situation; I call that the causative or manipulative function. The two functions connect the thinking agents and the situations in which they participate in opposite directions. In the cognitive function the situation is supposed to determine the participants’ views; in the causative function the participants’ views are supposed to determine the outcome. When both functions are at work at the same time they interfere with each other. The two functions form a circular relationship or feedback loop. 
For instance, under normal circumstances it would not be advantageous to rush to the bank and withdraw all of your money. However, the economic system could be altered to the point where that might turn out to be the optimal strategy after all. 

Soros goes on to describe the inflation and bursting of a bubble in terms of the interaction between positive and negative feedbacks.
I developed a model of a boom-bust process or bubble which is endogenous to financial markets, not the result of external shocks. According to my theory, financial bubbles are not a purely psychological phenomenon. They have two components: a trend that prevails in reality and a misinterpretation of that trend. A bubble can develop when the feedback is initially positive in the sense that both the trend and its biased interpretation are mutually reinforced. Eventually the gap between the trend and its biased interpretation grows so wide that it becomes unsustainable. After a twilight period both the bias and the trend are reversed and reinforce each other in the opposite direction. Bubbles are usually asymmetric in shape: booms develop slowly but the bust tends to be sudden and devastating . . .
At any moment of time there are myriads of feedback loops at work, some of which are positive, others negative. They interact with each other, producing the irregular price patterns that prevail most of the time; but on the rare occasions that bubbles develop to their full potential they tend to overshadow all other influences.
What does the phase space of a system with myriads of feedback loops look like?




The recognition of multiple equilibria in economic systems does not go far enough, in Soros's view, because the collapse of bubbles can trigger policy responses which greatly alter the workings of the system. In other words, politics can become a potent driving force, with both secular components (such as the progressive concentration of wealth and power into fewer hands over the last forty years) and singular spectacular events (such as declaration of wage and price controls, short-duration spikes in interest rates; or even irreversible decisions like detaching the dollar from gold).

The addition of the political drivers adds a dimension which has no analog in nature. It also forces us to recognize that the future evolution of the economy will be not only a function of the feedbacks and forces we consider above, but also the entire history of the economy as well. For instance, Soros argues that the present European crisis is as much a function of history as of excessive government debt . . . 
because the financial problems were reinforced by a process of political disintegration. While the European Union was being created, the leadership was in the forefront of further integration; but after the outbreak of the financial crisis the authorities became wedded to preserving the status quo. This has forced all those who consider the status quo unsustainable or intolerable into an anti-European posture. That is the political dynamic that makes the disintegration of the European Union just as self-reinforcing as its creation has been. 
Unfortunately the non-linearities in the system make prediction hazardous. But given the preliminary indicators of bank runs in Europe, South America, and Africa, as well as Oanda's recent announcement . . . errm, yes, excuse me, but I have some preparations to see to.

Saturday, September 24, 2011

Recognizing change in complex systems

"So I came downstairs and was surprised to find the dog reading the paper."

Such is the beginning of a typical shaggy dog story. If the story is true to form, the punchline would be something like the dog has been getting his news from the internet for years, or some such. If this were a true story, it would be that the dog is usually sleeping when I come downstairs. In such a case, I would presumably notice right away that the dog's behaviour was unusual.

One of the outstanding problems of complex dynamic systems is recognizing (hopefully in real time) when a change in behaviour is occurring.

Today we look at the long (ish)-term behaviour of some commodities with respect to one another. I haven't thought much about their economic significance. Today will just be arm-waving at charts, with a view to see if we can recognize the presence of change in the market fundamentals.

First up--some soft commodities. Below we see the ratio of cocoa prices to rough rice (contracts as defined in 1996).


The principal impact on the graph is from the first Ivoiran civil war. I find it interesting that the second war didn't really impact the price as much. Possibly this is because of rapidly increasing Ghanaian cocoa production. According to Voice of America, Ivoiran production is doomed due to years of under-investment.

The reconstructed phase space appears below. I have used the time delay method. To construct this figure I have smoothed the above data set through a 3-pt moving average filter, as the unfiltered data looked really noisy.

The fifteen years of data are confined to a comparatively small region of state space, with the only interesting feature the large excursion during the first civil war. This event lasted about two years. Note the magnitude, and more importantly, note the outcome--the system reverted back to the same area of phase space from which it began.

The second civil war by contrast is scarcely noticeable.

There are other ways to contruct phase space portraits. Instead of reconstructing them from a single time series we can build them from scatterplots of two (or more) time series. In studying geological systems I try to avoid this technique because it is difficult to build two time series of equivalent length and similar sample rates. For commodity time series this is less of a problem.

So let's go all out and plot the gold/copper ratio against the silver/rough rice ratio (all month-end closing prices).


IIRC, I have multiplied the silver price by 100 in the above chart. Silver and gold used $/oz, copper measured in $/lb.

Notice how for most of the fifteen year record, the states all plot within a relatively large oval (let's call this an LSA) within phase space. There have been three significant deviations from the LSA over the past fifteen years. The excursion marked A represents the strength in gold during the 2008-9 global meltdown. The excursion marked B is a rise in tandem of both silver and copper during the year 2006.

The last excursion (C) represents the recent rise in silver. This ongoing excursion appears to have lasted 17 months so far. The multi-billion dollar question is whether this is an excursion expected to revert to the  LSA, or has a bifurcation occurred, with the system evolving towards a new LSA somewhere else in phase space.

Refer once again to the phase space plot of cocoa/rough rice.

Bifurcations and excursions are both rare events. The excursions occur on at best a decadal scale. Bifurcations are more rare. Clearly they have happened in the past. For instance, the long-term gold/silver ratio was approximately 16 for centuries, but has not been near this ratio for several decades. A bifurcation occurred in the last century sometime. Perhaps we are in one now. Either way, I think it might be prudent to stock up on rice.

Disclosure: long gold, long silver, long copper, long cocoa, long rice. Sadly, I was forced to liquidate some of my cocoa holdings in the recent market turbulence.


But it was comforting.

Update (April, 2012) - I overlooked this story in the explanation for the rising price of cocoa in 2010. It seems to fit in with the first peak in the cocoa/rice ratio in 2010.