UnveilML: Combining Econometrics and Machine Learning to improve the estimation of factors we cannot see

Some of the factors that steer our biggest decisions — the pace of global warming, the risk building in financial markets, the true state of the economy right now — can never be measured directly. My Veni project is about estimating them more precisely, and being honest about how much we still can't.

Picture a trading floor. Hundreds of people are shouting about the market at once — every one of them with a view, a rumor, a number. Underneath all that chatter there is some common truth: a signal that many of them are partly picking up on and reacting to. But no single voice states it cleanly, and most of what you hear is noise. You can't just ask one person for the answer. All you can do is take in the whole floor at once and try to work out the shared truth running beneath the din.

That is the situation we are in with some of the most important quantities in economics and climate science. How fast is the planet actually warming, once you look past the accident of a hot summer or a cold snap? How much risk is really building up across the financial system? Is the economy expanding or contracting this quarter, before the official statistics catch up months from now? None of these can be observed. They are hidden drivers — factors we can only ever infer, indirectly, from possibly thousands of noisy measurements, none of which contains the answer on its own.

And yet we make enormous decisions on the strength of our best guesses about them. Central banks move interest rates on their reading of the business cycle. Regulators judge the stability of the financial system on their estimate of market-wide risk. Governments weigh the cost of the green transition against the pace of warming they believe is underway. When our estimates about the hidden factors are wrong, every decision built on top of them inherits the error. So it matters a great deal that we estimate them as well as we possibly can. And that we are honest about how uncertain the estimates are.

That problem, of distinguishing signal and noise, and knowing how much to trust our signal estimate, is what my Veni project UnveilML is about.

Two toolkits, each with a blind spot

For decades, economists have relied on state space models to pull an invisible signal out of noisy measurements. The idea is to treat what we observe (say, macroeconomic statistics, asset prices, temperature readings) as the visible surface of a hidden variable we actually care about (say, the business cycle market risk, global warming), and to work backwards to that hidden variable. Such state space models have real virtues: They are transparent and interpretable. They allow for and benefit from strong time-dependence. And they come with honest margins of error, so an estimate arrives with a built-in sense of how sure we can be.

Their weakness is scale and flexibility: State space models work beautifully with a handful of series and linear relationships, but they strain when you hand them thousands of variables at once, or ask them to capture the tangled, nonlinear ways the real world behaves. Market risk might be driven by thousands of assets moving together; the classical tools become computationally infeasible long before you get there. Back to the trading floor example: they can follow a quiet desk of a few traders, but not the roar of the whole floor.

Machine learning is almost the mirror image. It thrives on enormous, messy datasets and finds subtle patterns no human, and no traditional model, would ever spot. It can pay attention to the whole floor at once. But it has three shortcomings that limit its use in economics: It tends to be a black box, giving you an answer without telling you what that answer means. It has a short memory, tuned to recent patterns, when economic and climate data are so often driven by forces that persist for years or decades. And it rarely tells you how confident it is, so a precise-looking number can quietly conceal a great deal of uncertainty.

Tobias Hartl_Veni_1.
Figure 1: Goal of UnveilML: Combine Econometrics and Machine Learning to improve latent variable estimation

When I first started working at the border between these two worlds, what struck me was how neatly each one's strengths line up with the other's blind spots. Econometric models are interpretable, capture long memory, and quantify uncertainty, but don't scale. Machine learning scales effortlessly and captures complexity, but forgets, obscures, and rarely doubts itself. For the questions I care about, neither is enough on its own, and simply using them side by side doesn't help, because the gaps are in the methods themselves.

Teaching machines to remember, explain, and doubt itself

UnveilML sets out to close that gap by building a new generation of machine learning models that keep their power on large, complex data but borrow three things from econometrics.

The first is long memory. Real economic and climate series carry the past with them: today's temperature, today's volatility, today's output all depend on shocks that landed years ago and faded only slowly. I am developing neural network architectures that can explicitly hold on to that distant past, so the model recognizes slow-moving, persistent forces instead of chasing only the latest dynamics. Leveraging persistence, state space models have the power to turn a weak signal into a strong one – a feature that I incorporate into the machine learning toolbox.

The second is interpretability. It isn't enough to know that a model has found something; we need to be able to interpret it. By imposing structure on what the network learns, the aim is to open the black box, so that a component the model extracts can be checked against what we already understand. Global warming, for instance, should emerge as the common long-run trend shared across temperature series; the business cycle as the recurring ebb and flow in output. If the model's hidden components line up with things we can interpret, we can trust them; if they don't, that tells us something too.

The third is valid inference - an honest sense of uncertainty. A number without an error bar is a claim with no evidence of how much to trust it. Part of the project is therefore purely theoretical: deriving the statistical foundations that let these new models report reliable confidence bands, so that every estimate says not just “here is the answer” but “and here is how sure we are.” This is the piece machine learning almost always leaves on the table, and the one that matters most when the stakes are high.

Tobias Hartl_Veni_2
Figure 2: The three work packages of the project

Three hidden drivers

I will put these methods to work on three problems where the stakes are high and the hidden variable is of immediate interest.

The first is financial risk. Market-wide volatility is the force that drives asset prices and shapes how institutions manage their exposure, but it has to be inferred from the joint behavior of thousands of markets at once. This is precisely the high-dimensional setting where the classical tools give out. Better estimates here mean more robust stress tests and earlier warning of risk building across the system.

The second is the business cycle. Whether the economy is heating up or cooling down is one of the most closely watched hidden variables there is, and policymakers need it in something close to real time. By drawing on far larger datasets than traditional methods can handle, the goal is a sharper, more timely read for the institutions that set fiscal and monetary policy.

The third is global warming. Buried in the records of thousands of weather stations around the world is a common warming trend, distinct from seasonality, local weather and the quirks of individual instruments. UnveilML aims to extract that trend from the full, high-dimensional dataset, and, crucially, to attach honest uncertainty to it, so we know not just how much warming has occurred but how confident we can be in the figure.

If the project succeeds, we will be able to see the economy's and the climate's hidden drivers more clearly despite the noise. Just as importantly, we will be more honest about everything we still can't make out. In a world increasingly tempted to treat whatever a powerful algorithm produces as fact, that second achievement might matter most of all.

Tobias Hartl_Veni_3
Figure 3: About 29,000 weather stations measure temperature simultaneously around the globe. The core of UnveilML is to derive methods that allow to extract a well-identified common trend of these temperature measures, leveraging the rich cross-sectional dimension and the strong temporal dependence at the same time.

If you would like to learn more about the project, are working on related research, or are interested in exploring opportunities for collaboration, I would be glad to hear from you. 

You can contact me via tobias.hartl@maastrichtuniversity.nl.

Author:
Tobias Hartl | Barbara Timmermans

Also read