Towards Measuring Predictability: To which extent data-driven approaches can extract deterministic relations from data exemplified with time series prediction and classification

Saleh Gholam Zadeh, Vaisakh Shaj, Patrick Jahnke, Gerhard Neumann, Tim Breitenbach

Abstract

Traditional machine learning evaluation relies heavily on minimizing loss functions, which often fails to distinguish between model inadequacy and inherent data stochasticity. This paper introduces a statistical framework to quantify "predictability" by measuring the stochastic independence between input features and model residuals. By utilizing Mutual Information and permutation testing, the authors provide a methodology to determine if a model has extracted all possible deterministic signals or if further refinement is possible. The framework is validated across synthetic datasets, real-world time series, and classification tasks, offering a new lens for model convergence and data quality assessment.

Introduction

In standard machine learning practice, performance is typically gauged by metrics like Mean Squared Error (MSE). However, these metrics are relative and do not account for the "lower bound" of achievable error dictated by irreducible noise. If a model achieves a specific error rate, it remains unclear whether the remaining error stems from a poorly designed model or from the stochastic nature of the data itself. Most real-world datasets comprise a mix of learnable deterministic components and random stochastic parts. This research addresses this gap by providing a way to differentiate systematic model failures from inherent unpredictability, essentially answering: Have we learned everything there is to learn from this data?

Methods

The proposed framework evaluates the relationship between inputs ($X$), targets ($Y$), and model deviations ($\Delta Y$) using information theory and statistics. The core idea is that if a model has captured all deterministic relations, the remaining errors (residuals) should be stochastically independent of the input data.

Iterative framework for extracting deterministic relations and assessing model completeness.

The methodology follows an iterative process as shown in the figure above:

  1. Stochastic Independence Testing: Utilizing Mutual Information (MI), Chi-square tests, and Pearson correlation to measure dependence.
  2. Equinumeric Discretization: An adaptive binning algorithm handles continuous data, ensuring robust statistical testing.
  3. Permutation Testing: A shuffling procedure establishes a baseline for zero-dependence, allowing for the identification of significant signals.
  4. Model Stacking: A progressive architecture is introduced where, if residuals remain dependent on inputs, additional models are trained to "squeeze" out the remaining deterministic signal.

Key Results and Insights

The framework was tested on synthetic signals with varying noise levels and several real-world datasets, including electricity transformer temperature (ETT), weather data, and market indices (Nasdaq).

  • Residual Independence: In synthetic experiments, the framework correctly identified when a model had extracted the entire signal, even when noise accounted for 94% of the variance.
  • Quantifying "Done": In the ElectricDevices classification task, although validation accuracy was ~80%, the framework showed that model deviations were independent of the input. This suggests the remaining 20% error was due to inherent unpredictability rather than model failure.
  • New Convergence Criteria: Researchers can stop training when the Mutual Information between inputs and residuals reaches an experimental minimum, preventing overfitting to noise.
  • Differentiating Overfitting from Distribution Shift: If residuals are independent on training data but dependent on validation data, it serves as a clear indicator of a distribution shift—the deterministic rules have changed between the two sets.

Limitations and Future Work

While the current implementation provides a robust foundation, it primarily focuses on pairwise relationships (one input feature vs. one residual). This may miss complex, multivariate deterministic relations. Furthermore, the discretization step is currently non-differentiable. Future work may involve using neural estimators of Mutual Information to create a differentiable "predictability loss" that could be used directly during backpropagation to improve model training efficiency.

Summary updated

BibTeX
@article{zadeh2025towards,
  author = {Saleh Gholam Zadeh and Vaisakh Shaj and Patrick Jahnke and Gerhard Neumann and Tim Breitenbach},
  title = {{Towards Measuring Predictability: To which extent data-driven approaches can extract deterministic relations from data exemplified with time series prediction and classification}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2025},
}
Figure