Learning Causal Structure of Time Series using Best Order Score Search

This paper introduces TS-BOSS, a scalable, score-based algorithm for learning causal structures in multivariate time series that extends the Best Order Score Search framework with dynamic Bayesian networks and grow-shrink trees, demonstrating superior performance in high auto-correlation regimes compared to standard constraint-based methods.

Irene Gema Castillo Mansilla, Urmi Ninad

Published 2026-03-06
📖 5 min read🧠 Deep dive

Imagine you are a detective trying to figure out the cause-and-effect relationships in a bustling city. You have a security camera feed (your data) showing thousands of people moving around every second. Your goal is to draw a map showing who influences whom: Does the traffic light turning red cause the cars to stop? Does a sudden rainstorm cause people to open umbrellas?

In the world of data science, this is called Causal Discovery. But when the data is a Time Series (a continuous stream of events over time), it gets tricky. Things happen in a sequence, and what happened a second ago often influences what happens right now. This "temporal dependence" confuses many standard detective tools.

This paper introduces a new detective tool called TS-BOSS (Time Series - Best Order Score Search). Here is how it works, explained through simple analogies.

The Problem: The "Frozen Frame" vs. The "Movie"

Most old methods for finding causes treat data like a stack of frozen photos. They look at a snapshot and ask, "If A and B happen together, did A cause B?"

But time series data is a movie. In a movie, the frame at 1:00 PM depends heavily on the frame at 1:01 PM. If you treat a movie like a stack of photos, you get confused. You might think the car stopping caused the light to turn red, because they happen at the same time in the video, even though the light actually came first.

The Solution: TS-BOSS

The authors took a powerful tool called BOSS (which was great at solving the "frozen photo" mystery) and upgraded it to handle the "movie" format. They call the new tool TS-BOSS.

Here is the secret sauce of how TS-BOSS solves the mystery:

1. The "Ordering Game" (Permutation Search)

Imagine you have a group of suspects (variables) and you need to figure out the order in which they acted.

  • Old way: Try every possible combination of who did what. This is like trying every possible seating arrangement for a dinner party. If you have 20 guests, the number of arrangements is so huge it would take a lifetime to check them all.
  • TS-BOSS way: It plays a smart game of "Ordering." It asks: "If I assume Suspect A acted before Suspect B, does the story make more sense?" It uses a clever trick called Grow-Shrink Trees.
    • The Analogy: Think of building a family tree. Instead of drawing the whole tree from scratch every time you add a new person, TS-BOSS keeps a "scratchpad" (the tree) where it remembers the work it already did. If it needs to check if "Grandma" is related to "Grandson," it doesn't re-calculate the whole family history; it just looks at its scratchpad. This makes it incredibly fast.

2. The "Time Travel" Rule

Since this is a time series, TS-BOSS has a strict rule: You cannot change the past.

  • In the game, it forces the "lagged" variables (things that happened in the past) to always come before the "contemporaneous" variables (things happening right now).
  • The Analogy: Imagine a line of dominoes. You can rearrange the order of the dominoes standing up right now, but you can never move a domino that has already fallen to the front of the line. This ensures the cause always comes before the effect.

3. The "Scorecard"

How does TS-BOSS know if its map is correct? It uses a Scorecard (called BIC).

  • It tries to draw a map that explains the data perfectly but uses as few lines (connections) as possible.
  • The Analogy: Imagine you are trying to explain a complex magic trick. You want the simplest explanation that fits all the facts. If you say "The magician used a hidden wire, a mirror, and a secret assistant," that's a complex explanation. If you say "The magician used a hidden wire," and that explains everything, that's a better score. TS-BOSS looks for the simplest, most accurate map.

Why is this a big deal? (The Results)

The authors tested TS-BOSS against other famous detective tools (like PCMCI+). They found something surprising:

  • The "High Autocorrelation" Problem: In some movies, the action is very repetitive. The cars move slowly, the rain falls steadily. In these "highly repetitive" scenarios, the old tools (which rely on checking if things are independent) get confused and fail. They think everything is connected to everything else because the patterns are so similar.
  • TS-BOSS Wins: Because TS-BOSS looks at the order of events and uses its "scratchpad" to score them, it stays calm and accurate even when the data is repetitive. It found the correct connections (edges) much more often than the other tools, especially when the data was "sticky" (highly autocorrelated).

The Bottom Line

TS-BOSS is a new, super-fast, and smart way to figure out cause-and-effect in time-based data.

  • It treats time like a movie, not a photo.
  • It uses a "scratchpad" to save time and energy.
  • It follows the rule that the past must always come before the future.
  • It is particularly good at solving mysteries where the data is repetitive and predictable, a scenario where other tools usually get stuck.

In short, if you want to understand the hidden rules of a dynamic system (like weather patterns, stock markets, or brain activity) without getting lost in the noise, TS-BOSS is the new detective you want on your team.