Grant McDermott bio photo

Grant McDermott

Data. Economics. Environment.

Email Twitter LinkedIn   Scholar   ORCID GitHub
Amidst all this talk about US Republicans eyeing a return to the gold standard, something on my twitter feed earlier this week caught the eye: A link to an old Zero Hedge post together with a claim that "there is a 93% correlation between M2 [money supply] and gold". A similar post here is more specific in saying "[t]he correlation between the total U.S. M2 and gold has exceeded 0.90 since November 2004".

Now presumably, this tweet was aimed at countering the inconvenient fact that the correlation between price inflation (i.e. CPI) and gold is virtually zero. And, if predictions of imminent hyperinflation have yet to materialise, well then at least "hard money" types can point to way in which monetary inflation has manifesting itself in the surging gold price of the last decade. (There's a lesson to be learned here about the velocity of money, kids, but that will have to wait until another time...)

Anyway here's a graph of the gold price and U.S. M2 since 2004, taken from the FRED website. Both are shown in terms of moving monthly averages and, sure enough, the correlation looks very high indeed.

FRED Graph

Unfortunately, there are two things wrong with this picture. The first is that the time-frame really does matter. The second has to do with the statistical properties of these series. Let's take these two issues in turn.

Consider what happens when we look at the period from 1981 (which is first date for which FRED has data on both series) until 2004.

FRED Graph

Woah! That positive relationship isn't looking too good all of a sudden. Now, of course, I can already hear angry golden-tinged voices accusing me of dueling a strawman. The correlation coefficient was specifically cited for the 2004-post period, so who really cares about what happened 20 or 30 years ago? Okay, perhaps something special happened around the mid-2000s that explains why the two variables have since become so intertwined. Fine, but then don't try to tell me that it's anything specifically to do with money supply. The noticeable kink in the M2 series leading up to that moment occurs around 1995 (after a period of mild tapering), which is close on a decade before the supposed special relationship with gold prices begins.

The broader point here is that if you are going posit a structural theory for why two variables are related, then that relationship needs to have enduring qualities. If not, how can you be sure that gold and M2, rather than one causing the other, aren't both being driven by some other factor? (For one thing, the money supply is supposed to be endogenous to what is happening in the broader economy...) I'm inclined to argue that focusing on the period since 2004 is just a form of data-mining and, as we'll see next, not a particularly good example of that anyway.

Okay. So, ignore the fact that the (weak) longer-term correlation between M2 and gold prices matters. Surely, eight years of data showing a 90%+ correlation can't be denied? Surely, we can say with extreme confidence that recent gold prices have been greatly influenced by money supply? Right?


Sadly, no. Whenever someone points excitedly to very high correlations between trending time-series, your spidey-sense should be going off like Peter Parker on methylamphetamine. The reason lies with one of the fundamental concepts in time-series econometrics: Nonstationarity.

Wait a minute. Are those series... nonstationary?

Without getting too bogged down by statistical concepts, nonstationary series are characterized by a mean and variance that are changing over time. It's not that they can't be growing or declining over time, but rather that they should consistently return to some kind of mean trend. The most important thing from our perspective is failing to account for this issue will generally lead to spurious (i.e. "nonsense") regression results; an idea that goes all the way back to a classic paper by Yule  in 1926.

Aaaaaaaand.... as you might have guessed by now, the above series are nonstationary. In technical parlance, they are referred to as random walks with drift. Now, there is a famous exception to this rule that occurs when two series are said to be "cointegrated". Again, I'd rather avoid delving too deeply into the murky waters of statistics in a blog post, but suffice to say that that cointegration does not hold here.

To avoid the problems of bullshit spurious regressions, we must therefore adopt a tried and tested approach: Take the first differences of the series and only then test for correlation. Doing so produces a correlation coefficient of exactly <drum roll>... 0.32. Moreover, if we actually regress gold on M2 we get a pretty unimpressive R-squared statistic of 0.1. In other words, only ten percent of the gold's movements are explained by what is happening to money supply.  [UPDATE: Based on the comments, let me again emphasise that these numbers are specifically for the "highly" correlated post-2004 period.]

THOUGHT FOR THE DAY: Simply regressing gold prices on any nonstationary series \(-\) whether that be iPhone sales or the number of Crocs™ wearers in Bangladesh \(-\) would likely produce equally impressive, but obviously bogus, results. Now gold fans might be inclined to protest loudly at this point: "Duh", but there's no theoretical basis for linking those goods to gold. We have a theory that predicts the price of gold will rise with (monetary) inflation!" Except that we've just tested that theory and found it, if not entirely wanting, then at least highly oversold. Perhaps a bit like gold then... [See comments.]

PS - For anyone interested in checking all of this for themselves, here is some Stata code that I used to test the series. The code will always call the most recently available FRED data, so the exact figures you get may differ from those presented here depending on when you run it.

NOTE: In writing this post, I see that others have effectively made the same point before.