[Paper Review] Comparison of different Methods for Univariate Time Series Imputation in R
This paper evaluates and compares multiple R-based methods for imputing missing values in univariate time series, focusing on techniques that leverage temporal dependencies rather than inter-variable correlations. The study finds that seasonal Kalman filtering (via the 'zoo' package) and linear interpolation on seasonally decomposed data (via 'forecast' package) consistently outperform other methods across varying missing data ratios.
Missing values in datasets are a well-known problem and there are quite a lot of R packages offering imputation functions. But while imputation in general is well covered within R, it is hard to find functions for imputation of univariate time series. The problem is, most standard imputation techniques can not be applied directly. Most algorithms rely on inter-attribute correlations, while univariate time series imputation needs to employ time dependencies. This paper provides an overview of univariate time series imputation in general and an in-detail insight into the respective implementations within R packages. Furthermore, we experimentally compare the R functions on different time series using four different ratios of missing data. Our results show that either an interpolation with seasonal kalman filter from the zoo package or a linear interpolation on seasonal loess decomposed data from the forecast package were the most effective methods for dealing with missing data in most of the scenarios assessed in this paper.
Motivation & Objective
- To address the gap in R packages for univariate time series imputation, which typically rely on inter-attribute correlations rather than temporal dependencies.
- To evaluate and compare the performance of existing R functions specifically designed for univariate time series imputation.
- To identify the most effective imputation techniques under varying levels of missing data in univariate time series.
- To provide a comprehensive overview of implementations within R packages for time series imputation.
Proposed method
- The study evaluates multiple R packages implementing time series imputation, focusing on methods that exploit temporal autocorrelation and seasonality.
- It applies seasonal decomposition using loess (STL) to extract trend, seasonal, and remainder components before applying linear interpolation on the remainder component.
- The seasonal Kalman filter method is used to estimate missing values by modeling the time series as a state-space process with seasonal and trend components.
- Imputation performance is assessed using four different ratios of missing data: 5%, 10%, 20%, and 30%.
- The evaluation uses statistical metrics such as root mean squared error (RMSE) and mean absolute error (MAE) to compare imputation accuracy.
- The analysis is conducted across diverse real-world time series datasets to ensure generalizability of results.
Experimental results
Research questions
- RQ1Which R-based imputation methods perform best for univariate time series with missing values?
- RQ2How do interpolation-based methods compare to state-space models like the seasonal Kalman filter in terms of imputation accuracy?
- RQ3Does the performance of imputation methods vary significantly with increasing proportions of missing data?
- RQ4To what extent do seasonal decomposition and temporal modeling improve imputation accuracy compared to standard interpolation?
Key findings
- The seasonal Kalman filter implemented in the 'zoo' package achieved the highest accuracy across most tested time series and missing data ratios.
- Linear interpolation on seasonally decomposed data using the 'forecast' package was the second most effective method, particularly for series with strong seasonal patterns.
- Standard imputation techniques relying on inter-variable correlations performed poorly due to their incompatibility with univariate time series dependencies.
- Performance degradation was observed as missing data ratios increased, but the seasonal Kalman filter and loess-based interpolation remained robust even at 30% missing data.
- The combination of STL decomposition and linear interpolation significantly improved imputation accuracy over direct linear interpolation on raw data.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.