Autoregressive-Model-Based Methods for Online Time Series Prediction with Missing Values: an Experimental Evaluation

Xi Chen, Hongzhi Wang, Yanjie Wei, Jianzhong LiarXiv 2019

Introduction

In contemporary data science, the proliferation of real-time data streams—from financial markets to IoT sensor networks—has heightened the demand for robust online prediction models. However, real-world data is frequently compromised by missing values due to sensor malfunctions, network latency, or human error. For Autoregressive (AR) models, which rely on a linear combination of historical observations, missing data presents a significant hurdle.

This paper provides a comprehensive experimental evaluation of various AR-based methods designed to handle missing values in an online setting. The study compares two primary strategies: imputation-based methods, which fill gaps before predicting, and direct prediction methods, which attempt to learn from incomplete data without explicit imputation.

Evaluated Methods

The researchers adapted and evaluated four online algorithms against one offline baseline to determine their efficacy in real-time scenarios:

  • Yule-Walker Estimator (YW): A classical statistical approach based on autocorrelation. In this study, it is adapted for online use by imputing missing values with the model's own previous predictions.
  • Kalman Filter (KF): A state-space model using a recursive "prediction-measurement" loop. It treats AR coefficients as a hidden state and is inherently designed to handle noise.
  • Online Gradient Descent (OGD): A data-driven approach that uses Stochastic Gradient Descent (SGD) to iteratively update AR coefficients by minimizing prediction error.
  • Attribute Efficient Ridge Regression (AERR): A "semi-imputation" method. It uses a double-sampling technique to estimate gradients without relying on imputed values for internal updates, theoretically avoiding the "feedback loop" of using potentially incorrect predictions to train the model.
  • Autoregressive Least Square (ARLS): An offline iterative method used as a performance "gold standard" baseline.

Experimental Setup

The methods were tested across a diverse range of datasets to ensure generalizability:

  • Synthetic Data: Controlled environments with varying lengths (1,000 to 5,000 points), noise levels, and missing rates (0% to 30%).
  • Stock Prices: 40 different stocks from the TuShare platform (1,000 observations each).
  • UCR Archive Data: Three distinct categories—Coffee (short, mountain-like curves), Inline Skate (long, drastic fluctuations), and Synthetic Control (cyclic/seasonal patterns).

Key Insights and Discussion

The "Imputation is Enough" Surprise

Despite the theoretical appeal of sampling-based methods like AERR that avoid "polluting" the model with imputed data, simple imputation-based methods (KF and YW) consistently performed better. This suggests that for AR models, the continuity provided by filling gaps—even with estimates—is more beneficial than the sparsity introduced by discarding incomplete samples.

The Failure of Sampling-Based Approaches

AERR performed the worst overall. The authors attribute this to its sampling mechanism: when it accidentally samples a missing value, it discards the update. In high-missing-rate scenarios, this makes the model "dull" and unable to track rapid changes in the data stream.

Stability vs. Reactivity

On real-world stock data, YW outperformed all other online methods. While OGD is "greedy" and reacts too sharply to sudden market swings, YW’s reliance on accumulated autocorrelation coefficients makes it more stable and accurate over time. Conversely, the Kalman Filter is near-perfect on synthetic data (which uses Gaussian noise) but loses its edge on real-world data where noise distributions are unknown and non-Gaussian.

Performance Results

  • Accuracy: On synthetic data, the Kalman Filter and Yule-Walker methods achieved Mean Square Error (MSE) levels nearly identical to the offline baseline (ARLS), proving their efficiency for online use.
  • Impact of Missing Rates: As missing rates increased to 30%, the error for all methods grew approximately linearly. However, the performance gap between the effective methods (KF, YW) and the ineffective ones (AERR) widened significantly.
  • Data Volume: For OGD and AERR, having longer time series (more training data) significantly reduced error, whereas KF and YW reached peak performance much faster, requiring less historical data to stabilize.

Conclusion and Future Work

The study concludes that while complex sampling-based methods exist, simple imputation remains a surprisingly robust strategy for online prediction. For practitioners, the Kalman Filter is recommended for environments with Gaussian noise, while the Yule-Walker method is preferred for volatile real-world data like stock prices.

The primary limitation of these findings is the underlying AR model assumption, which assumes linear dynamics. Future work should focus on speeding up the computational requirements of the Yule-Walker method—which currently requires frequent matrix inversions—and developing algorithms that can handle non-linear time series data with similar missing-value robustness.

Summary updated

BibTeX
@misc{chen2019autoregressive,
  author = {Xi Chen and Hongzhi Wang and Yanjie Wei and Jianzhong Li and Hong Gao},
  title = {{Autoregressive-Model-Based Methods for Online Time Series Prediction with Missing Values: an Experimental Evaluation}},
  year = {2019},
  eprint = {1908.06729},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1908.06729},
}
Figure