{'fraction_non_alphanumeric': 0.013846153846153847, 'fraction_numerical': 0.002307692307692308, 'mean_word_length': 5.3463414634146345, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
On the Performance Similarity Between Exponential Moving Average and Discrete Linear Kalman Filter

Raw signal from sensor is generally corrupted by noise and other uncertainties. To suppress the noise, a filtering mechanism is required. Exponential Moving Average filter (EMA) serves as a powerful yet exceptionally simple filter. However, selecting so-called Alpha parameter in EMA is not a straightforward task. Extremely large Alpha value lead to more noise in the signal and small Alpha value resulted in sluggish convergence to the true value. In many cases Alpha parameter is selected arbitrarily and then opted for the best performance, resulting in numerous trials and errors. This paper is aimed to present an insight to select Alpha parameter, that is by implementing Kalman Gain from Kalman Filter structure as Alpha parameter and simultaneously highlight the similarity between Discrete Linear Kalman filter and Exponential Moving Average filter through some mathematical manipulations. To demonstrate the filter performance, altitude data from BMP280 barometric sensor is filtered. The results show that the EMA with Kalman Gain is capable to converge to the true altitude value and for some reasons, EMA with Kalman Gain resembles Kalman Filter performance in this particular scenario.