학술논문

N-Step Sliding Recursion Formula of Variance and Its Implementation
Document Type
Article
Source
JIPS(Journal of Information Processing Systems). Aug 31, 2020 16(4):832
Subject
Algorithm Complexity
Multi-Step Recursion Algorithm
Sliding Window
Variance
Language
English
ISSN
1976-913x
Abstract
The degree of dispersion of a random variable can be described by the variance, which reflects the distance of the random variable from its mean. However, the time complexity of the traditional variance calculation algorithm is O(n), which results from full calculation of all samples. When the number of samples increases or on the occasion of high speed signal processing, algorithms with O(n) time complexity will cost huge amount of time and that may results in performance degradation of the whole system. A novel multi-step recursive algorithm for variance calculation of the time-varying data series with O(1) time complexity (constant time) is proposed in this paper. Numerical simulation and experiments of the algorithm is presented and the results demonstrate that the proposed multi-step recursive algorithm can effectively decrease computing time and hence significantly improve the variance calculation efficiency for time-varying data, which demonstrates the potential value for time-consumption data analysis or high speed signal processing.