arXiv:2611.09729cs.LGNov 2026

Manuscript Offprint

arXiv:2611.09729

One Run Is Not Enough: A Monte Carlo Protocol for Evaluating LLM Reliability on Data Science Tasks

Wenqi Ni, Ozan Evkaya, Miguel de Carvalho

ABSTRACT

Large language models (LLMs) have shown promise for automating data science workflows. Benchmarks such as DataSciBench (2026) and StatQA (2024) have advanced the evaluation of their capabilities across data science and statistical tasks. Assessing their reliability requires examining both the quality of their responses and their consistency across repeated runs, task types, and difficulty levels. With this aim, we introduce DS-QA, a benchmark comprising 100 data science and statistics questions drawn from UK university courses, spanning 16 datasets and three difficulty levels. We develop a three-layer evaluation framework that combines general response properties (runtime, verbosity and text similarity), coarse-grained metrics (accuracy, code executability and completeness), and task-specific metrics. We evaluate OpenAI models using a Monte Carlo protocol with 100 repeated runs. The results reveal substantial variability in responses to data visualisation and supervised learning tasks, particularly at medium and hard difficulty levels, highlighting the importance of evaluating consistency alongside response quality. We also find that an increase of 0.1 in the word verbosity ratio corresponds to an increase of about 0.013 in the token verbosity ratio.

Keywords Large Language Models, LLM Evaluation, Monte Carlo Study, Data Science, Benchmark

1 Introduction

The recent development of large language models (LLMs) has demonstrated impressive capabilities across a range of scientific tasks including mathematics, physics, and chemistry. Despite their successes, the effectiveness of LLMs in handling complex statistical tasks remains systematically under-explored. While ChatGPT's Advanced Data Analysis (ADA) can often match or even outperform human analysts in basic tasks, it may struggle with contextually complex or nuanced analyses (Ping et al., 2020). LLMs are unable to make careful assumptions and claims when providing insights, unlike professional human data analysts (Bayne, 2015; Zhu et al., 2024; Jing et al., 2025). Moreover, the inherited randomness of these LLMs can add a certain level of uncertainty to the created responses even if the same prompt is asked repeatedly (Evkaya and de Carvalho, 2026).

To fill this gap, our work aims to apply a Monte Carlo assessment to measure the stability of LLM-generated responses. Each question or request is tested 100 times under an identical configuration and then evaluated with the use of our proposed evaluation framework.

Contributions.

• A university-level data science question-answer benchmark: DS-QA includes 100 data science question-answer pairs over 16 different datasets across 9 question dimensions and 3 difficulty levels. The questions were mainly extracted from the UK university curriculum. The question dimensions mainly include: 1. Data Understanding and Wrangling (14%), 2. Data Cleaning, Pre-processing and Transformations (5%), 3. Data Summary Statistics and Interpretations (15%), 4. Data visualisation (19%), 5. Statistical Models (44%), and

*Corresponding email: wenqi.ni@ed.ac.uk

Figure

Figure 1: The proposed DS-QA contains three key components (cf. Sections 3 and 4). (1) A university-level data science benchmark, which covers 9 task types and 3 difficulty levels. (2) A multilayer evaluation framework, incorporating 4 general properties, 3 coarse-grained metrics, and in total 35 task-specific metrics. (3) A Monte Carlo analysis is used to study the reliability of LLM (text, code and image) outputs.

  1. Statistical Hypothesis Testing (3%). DS-QA enriches the task type of Statistical Models to be Linear Regression, Logistic Regression, Principal Component Analysis, and Clustering. See Figure 2 for the difficulty level distribution.
  • A multi-layer evaluation framework for common data science tasks: The framework consists of general properties, coarse-grained, and task-specific metrics. See Figure 3 for an overview.

  • A Monte Carlo assessment of response reliability: We examine the response reliability of LLMs across repeated runs per task type and per difficulty level. The key findings are: (1) LLMs show extremely high response deviations when facing Data Visualisation and Supervised Learning tasks, especially at medium and hard difficulty levels. Refer to Figure 4. (2) Word verbosity ratio has a measurable effect on token verbosity ratio: an increase of 0.1 in the word verbosity ratio brings an increase of about 0.013 in the token verbosity ratio (see Figure 6), which helps to evaluate LLM redundancy length from the perspective of computational or API costs. (3) GPT-4O-MINI shows the highest level of text similarity with reasonable token usage, compared to GPT-4O and GPT-4.1-NANO. (4) For GPT-4.1-MINI, a temperature larger than 1 is more likely to bring random changes to responses. These findings have direct implications for researchers deploying LLMs in data science pipelines.

The benchmark and code are available at: https://github.com/niwq15/LLM-DS-Reliability.git.

References (22)