Can LLM Coding Agents Reason About Time Series?

Filip Rechtorík, Ondřej Dušek, Zdeněk Kasner
6/15/2026
cs.CL

No confident code implementation found for this paper. 4 possible matches can be shown below.

Abstract

Large language models (LLMs) are increasingly being used for automated decision-making systems in finance, healthcare, or environmental monitoring. Time series data are ubiquitous in these fields, yet hard to process automatically. Can time series be analyzed by LLM agents? We examine three approaches: providing the agent with raw numerical data, using the LLM as a coding agent, or a combination of both. In the coding agent setup, the model iteratively queries the data using Python code. Using two time series understanding benchmarks, we show that agents with code access can outperform models processing raw data by up to 10%. However, even the best performing agent still answers about 22-34% of the questions incorrectly. To get insights into models' strategies and reasoning gaps, we analyze the model outputs with a strong LLM judge. Our analysis reveals that coding agents can select appropriate statistical tests, but often miss important nuances. Meanwhile, models with access to raw data can reach the right conclusions using back-of-the-envelope calculations.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 4 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{rechtork2026coding,
  title  = {Can LLM Coding Agents Reason About Time Series?},
  author = {Filip Rechtorík and Ondřej Dušek and Zdeněk Kasner},
  year   = {2026},
  eprint = {2606.16545},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.16545v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.16545.svg)](https://codeofpaper.com/paper/2606.16545)

Discussion