← Latest papers
📊 statistics

Causal-TS: A Python Library for Causal Discovery in High-Dimensional and Nonstationary Time Series

This paper introduces Causal-TS, an open-source Python library designed for causal discovery in high-dimensional, nonstationary multivariate time series, featuring specialized algorithms, GPU-accelerated conditional independence testing, and an end-to-end pipeline that integrates regime detection, causal structure learning, and effect estimation.

Original authors: Mohammad Fesanghary

Published 2026-07-28
📖 4 min read☕ Coffee break read

Original authors: Mohammad Fesanghary

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are a detective trying to solve a mystery, but instead of looking at fingerprints or footprints, you are looking at a stream of numbers that change every second. This is the world of time series data, a tool used by scientists to understand everything from how the weather changes to how stock markets move. Usually, detectives look for clues that happen before the crime to figure out what caused it. In science, this is called causal discovery: figuring out if A actually makes B happen, or if they just happen to happen at the same time.

But there's a tricky twist in this mystery. Sometimes, the "rules" of the game change while you are watching. Imagine a river that flows fast in the spring but slow in the winter. If you only look at the water in July, you might think the river always moves slowly, missing the fact that it was rushing just a few months ago. This changing of rules is called nonstationarity. For a long time, computers struggled to solve these puzzles because they assumed the rules stayed the same forever. They also got overwhelmed when there were too many clues (variables) to check at once. This is where a new tool comes in to help the detective.

The paper introduces Causal-TS, a new, free software tool written in Python that acts like a super-powered magnifying glass for these changing, complex time series. Think of it as a detective's toolkit that doesn't just look at the clues; it realizes that the crime scene might have changed over time. The tool is designed to handle situations where the "rules" of cause and effect shift, such as when a financial market behaves differently during a crisis than during a boom, or when a forest ecosystem reacts differently in a drought versus a rainy season.

The main thing Causal-TS does is provide a unified library to find cause-and-effect links in data that is both huge (high-dimensional) and constantly changing (nonstationary). It does this by offering four special "algorithms"—which are just fancy recipes for solving the puzzle. Two of these recipes, called CDNOTS and CDNOTS+, are like detectives who keep a special notebook of how the rules change over time, allowing them to spot connections that other tools might miss due to their static assumptions. Another recipe, Cedar, is great for spotting simple, direct links between two things, while Grace uses a neural network trick to cut through the noise when there are too many variables to count.

What makes this tool really special is how fast it is. The authors built it to run on GPUs (the powerful chips usually used for video games), which lets it check for connections much faster than standard computer processors. In their tests, using a GPU made the tool nearly 3 times faster for some of the hardest checks. It also includes a "regime discovery" feature, which is like a smart assistant that automatically notices when the rules of the game have changed (like a sudden shift from dry to wet weather) and splits the investigation into separate cases for each period. This ensures the detective doesn't mix up clues from two different eras.

The paper demonstrates the tool's capabilities by running simulations on made-up data where the scientists already knew the answer. In these tests, Causal-TS successfully performed the discovery tasks and reported speed benchmarks, showing it can handle the specific challenges of nonstationary and high-dimensional data. It also comes with a simple command-line tool, meaning you don't even need to be a coding expert to use it; you can just type a single command to start the investigation. While the tool is powerful, the authors are careful to note that it assumes the data is sampled well enough and that it cannot magically solve mysteries where hidden factors are secretly pulling the strings behind the scenes. However, for anyone trying to untangle the complex, shifting relationships in time-based data, Causal-TS offers a fresh, fast, and flexible way to get to the truth.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →