Get 40% Off
🚨 Volatile Markets? Find Hidden Gems for Serious OutperformanceFind Stocks Now

Out-Of-Sample Risk Strikes Again

Published 10/12/2014, 12:36 AM
Updated 07/09/2023, 06:31 AM

There are many risks with blindly following models, but one of the more pernicious hazards is overlooking the problems that arise from assuming that in-sample results will hold up with out-of-sample data. The pitfalls are well known, or at least they should be. In any case, the challenge boils down to an all-too-common problem: What looks good on paper doesn’t easily translate into real-world results. Why? Any number of answers apply. For now, let’s focus on one: the data set in a given study doesn’t age well. This stumbling block arises anew this week in an article from MarketWatch that points us to an eight-year-old study that finds a reasonably strong connection between the monthly return on oil prices and the next-month’s return on the stock market.

The MarketWatch story from a few days ago announces that “stock investors should be cheering a bear market in oil.” The writer explains that a 2008 paper in the Journal of Financial Economics—“Striking Oil: Another puzzle?”—finds that the monthly changes in crude do a reasonably good job of predicting the subsequent monthly return for stocks. “The big takeaway: An oil-price decline in one month ‘indicates a higher stock market return [the] next month,’ the report says,” according to the story.

Many studies have found a link between oil and the economy, of course, and so the basic intuition that a critical input for macro activity will cast a long shadow is well-founded. But there are limits, especially when you’re digging around for short-term forecasts. Case in point: When you study how monthly returns between oil and stocks behave over recent decades, the enthusiasm that the MarketWatch story generates for the cited research isn’t reflected in the numbers–the recent numbers, to be precise. That’s not because the study was wrong. Rather, it seems that the last several years have reshuffled a thing or two in the capital and commodity markets. Digging a bit deeper, it turns out that there’s a bit of a disconnect between the time period studied in the research (through 2003) and the historical record since then.

3rd party Ad. Not an offer or recommendation by Investing.com. See disclosure here or remove ads .

As a quick test, let’s run a simple linear regression on the data in R (see the code below to replicate the charts that follow). Tapping into the St. Louis Fed’s FRED database, we’ll analyze average monthly percentage changes for crude oil (West Texas Intermediate) and US stocks (Wilshire 5000). As the first chart shows, there is in fact a mildly negative correlation between monthly returns on oil prices and the following month’s performance for US stocks–just as the research documented. The best-fit line shown in red summarizes the relationship:

Monthly % Returns: 1986-2003

Clearly, negative returns for oil tend to be associated with positive results for stocks in the month that follows. It’s debatable whether this connection is sufficiently robust for a profitable trading strategy, but the initial results look encouraging if only as an incentive for further study.

But a funny thing happened on the road to easy profits: the relationship in the data suffered a degree of reversal since 2004. Indeed, running the regression on the numbers from 2004 through last month dispenses a slightly different profile:

Monthly % Returns 2004-2014

This is hardly the first time that a predictor that impresses with in-sample data delivers something else later on. Nonetheless, this reversal (albeit one based on limited data) is a reminder that forecasting returns by way of historical relationships is usually tougher than it appears in the rear-view mirror. All the more so if the objects in that rear-view mirror are at a considerable distance from our current location.

Granted, it would be short-sighted to dismiss the idea that oil prices are a productive source of information for investors. And just to be fair, my analysis above is hardly a definitive test. There are quite a few additional steps to take if we were seriously considering the oil-stock paradigm for investing. Rather, the point here is simply that spinning gold from academic studies is a rougher road than some would have you believe.

3rd party Ad. Not an offer or recommendation by Investing.com. See disclosure here or remove ads .

But let’s not throw the baby out with the bathwater. Sure, expecting short-term shifts in the oil market to deliver reliable signals for the next month’s equity returns may be asking too much. Yet perhaps we simply need to study the relationship in more detail and from multiple perspectives. Any number of possibilities come to mind. Maybe one-year returns are more reliable; or a multi-factor model that combines oil, interest rates and a macro number that arrives with relatively timely updates… weekly jobless claims, for instance.

Yes, the sky’s the limit for considering the possibilities. Most are a dead end. There are exceptions, of course, or so it seems. Momentum is at the top of the list. As return anomalies go, this one’s second to none for persistence. It’s still mostly a mystery in terms of why it hasn’t been arbitraged away. In any case, it’s fair to say that predictors that shine as brightly and as consistently as momentum are a rare breed, although that doesn’t stop the crowd from suggesting otherwise.

Latest comments

Risk Disclosure: Trading in financial instruments and/or cryptocurrencies involves high risks including the risk of losing some, or all, of your investment amount, and may not be suitable for all investors. Prices of cryptocurrencies are extremely volatile and may be affected by external factors such as financial, regulatory or political events. Trading on margin increases the financial risks.
Before deciding to trade in financial instrument or cryptocurrencies you should be fully informed of the risks and costs associated with trading the financial markets, carefully consider your investment objectives, level of experience, and risk appetite, and seek professional advice where needed.
Fusion Media would like to remind you that the data contained in this website is not necessarily real-time nor accurate. The data and prices on the website are not necessarily provided by any market or exchange, but may be provided by market makers, and so prices may not be accurate and may differ from the actual price at any given market, meaning prices are indicative and not appropriate for trading purposes. Fusion Media and any provider of the data contained in this website will not accept liability for any loss or damage as a result of your trading, or your reliance on the information contained within this website.
It is prohibited to use, store, reproduce, display, modify, transmit or distribute the data contained in this website without the explicit prior written permission of Fusion Media and/or the data provider. All intellectual property rights are reserved by the providers and/or the exchange providing the data contained in this website.
Fusion Media may be compensated by the advertisers that appear on the website, based on your interaction with the advertisements or advertisers.
© 2007-2024 - Fusion Media Limited. All Rights Reserved.