Prior Chart      
Chart In Focus

On the Fickle Correlation Between Stocks and Oil Prices

Chart In Focus
May 16, 2019

The sharp decline in crude oil prices in Q4 of 2018 helped to take down the stock market in sympathy.  And then the rapid rebound by oil has coincided with a robust rebound in stock prices, with strong breadth numbers to help confirm the stock market’s strength in 2019.  But if you think you understand the relationship between stock prices and oil prices, then you have not looked at enough data yet. 

Oil and stocks have been in a strong positive correlation since around the beginning of August 2018.  But for the 5 months prior to that start point, they were in an inverse correlation.  And they were in a positive correlation leading up to March 2018.  That is why I refer to it as a fickle relationship. 

I can construct reasonable arguments for both relationships.  It makes sense in one respect that there should be an inverse relationship.  After all, higher oil prices are inflationary, and that could lead the Federal Reserve to hike short term interest rates, potentially harming the stock market.  Higher oil prices also impact the corporate earnings of companies which use petroleum products to make or ship things (although having higher oil prices helps the companies selling the oil).  High prices for oil leads to higher gasoline prices, which impacts the consumer’s ability to spend money on other things. 

A positive correlation makes sense when we realize that a lot of the high-yield debt out there has been issued by oil drillers and others in that industry, who might have trouble if oil prices fall too much.  Low oil could endanger those companies’ ability to make debt payments, which could lead to defaults, harming the banking sector, and soaking up liquidity which might be otherwise available to lift stock prices. 

Both of these arguments are good arguments, and each is valid at different times.  The curious point about this relationship is that these two conflicting arguments do not seem to operate much together.  Investors cling to one argument sometimes, and the other at other times.  I have yet to figure out what factor cause that switch to flip, and to change the correlation from positive to inverse, and back again.  It seems to happen every few months, but the durations of positive and inverse correlation periods are highly variable, so as far as I can tell there is not a consistent time cycle driving those changes.

The alternating correlation is not a new phenomenon.  It has been going on for many years.  Here are a couple of charts showing periods farther back in time:

Crude oil versus the DJIA 2015-17

Crude Oil versus the DJIA 2013-15

At the moment, the relationship between crude oil prices and the DJIA appears to be a positive one.  But it has been positive for a long time now, so that might mean it is due for a flip.  How to detect that change in real time is a difficult problem.  A lot of analysts like to use Pearson’s Correlation Coefficient to track the correlations of various sets of data, even though that is the wrong statistical tool for time series data.  Pearson’s is great if you want to correlate something in a population study, like the height and weight of individuals in a group, for example.  But time series data creates problems for Pearson’s, because trends can skew the numbers.

Here is an example from an August 2010 Chart In Focus article:

Opposing sine waves

Sine waves in an uptrend

There are better statistical tools for gauging the relationships between time series data, but they are harder to use, whereas Pearson’s Correlation Coefficient can be summoned with just a few keystrokes in any spreadsheet program.  Easy to use does not always mean good to use. 

That’s why I rely on visual analysis, even though I know that my own eye can be fallible.  And I strive to remember that what I think the relationship is at any moment could start to change without notice.

Tom McClellan
Editor, The McClellan Market Report

Related Charts
Aug 06, 2010
Enable Images to see this Chart
Correlations May Not Be What They Seem
May 31, 2018
Enable Images to see this Chart
Waiting on the Echo of Crude Oil’s Big Drop
Mar 22, 2018
Enable Images to see this Chart
Crude Oil Swooping Up On Schedule