Can LLM Coding Agents Reason About Time Series?

Filip Rechtorík, Ondřej Dušek, Zdeněk Kasner


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.

Anthology ID:
2026.inlg-long.10
Volume:
Proceedings of the 19th International Natural Language Generation Conference: Long Papers
Month:
October
Year:
2026
Address:
Utrecht, The Netherlands
Editors:
Guanyi Chen, Laura Perez-Beltrachini, Emiel van Miltenburg
Venue:
INLG
SIG:
SIGGEN
Publisher:
Association for Computational Linguistics
Note:
Pages:
210–228
Language:
URL:
https://aclanthology.org/2026.inlg-long.10/
DOI:
Bibkey:
Cite (ACL):
Filip Rechtorík, Ondřej Dušek, and Zdeněk Kasner. 2026. Can LLM Coding Agents Reason About Time Series?. In Proceedings of the 19th International Natural Language Generation Conference: Long Papers, pages 210–228, Utrecht, The Netherlands. Association for Computational Linguistics.
Cite (Informal):
Can LLM Coding Agents Reason About Time Series? (Rechtorík et al., INLG 2026)
Copy Citation:
PDF:
https://aclanthology.org/2026.inlg-long.10.pdf