Hi experts,

I want to find anomalies in a time series. Is it possible to find anomalies using moving average?

As I understood, with moving average we can estimate the time series, but I am not sure

asked Nov 04 '13 at 05:36

Babak's gravatar image

Babak
16447

edited Nov 04 '13 at 05:37


3 Answers:

Basic anomaly detection can be done looking for the divergence between a short-term moving average and a long-term. This is very crude, however.

answered Nov 04 '13 at 13:58

Ben%20Gimpert's gravatar image

Ben Gimpert
614

edited Nov 04 '13 at 18:32

If you are looking for anomalies, you can do the Moving Average, and then use a threshold to detect passings of this. This is crude, and if you care about delays it will also impact you in that sense.

I do not know what you mean by estimate the time series?

To detect anomalies, I would use other things, like wavelet transform,which tend to be pretty good for this.

answered Nov 04 '13 at 19:50

Leon%20Palafox's gravatar image

Leon Palafox ♦
40857194128

Thank you for your answer. Do you mean that moving average is not enough fast? I mean for forecasting... I am using FFT and Haar wavelet to find anomalies, but I want to test MA too. Do you know may be a reference about using MA to find anomalies?

(Nov 05 '13 at 05:53) Babak

The idea to find anomalies in time series is:

1) Create a model to predict each next sample, or state. (Say a LMS, or Kernel-LMS filter, maybe a Kalman Filter or Gaussian Processes Regressor)
2) Quantify how weird (quantify error, novelty or surprise) is this new sample to your model.
3) Set a threshold and decide if the new sample is an anomaly or not.
4) Adapt your model based on your decision and analyze the sample (return to 2)

My lab had interesting results on this subject. Check it out this paper: http://cnel.ufl.edu/files/1317347633.pdf

answered Nov 06 '13 at 09:00

eder's gravatar image

eder
2162511

edited Nov 06 '13 at 09:01

very nice, thanks alot

(Nov 06 '13 at 15:42) Babak
Your answer
toggle preview

powered by OSQA

User submitted content is under Creative Commons: Attribution - Share Alike; Other things copyright (C) 2010, MetaOptimize LLC.