Goal of Anomaly Detection in Non-stationary Data
I was explaining anomaly detection in non-stationary data to someone and threw together this crude example figure. The blue points are nominal and represent 90% of the points. The red are anomalous and represent 10% of the points. In this example, the red data is stationary while the blue passes through it. Thus, it would be very difficult to differentiate the red and blue points when they overlap. However, even if we only had a few frames of this video, we would like to be able to realize there are two dynamics going on.
The code for this is:
= 1
= 1
= 200
= 0.1
=
=
= 30
=
=
=
+= 0.5
+= 0.5
-= 0.25
-= 0.25
= 0, 15
, = 0, 15
,
=
,
=
=
, =
,
return ,
# create animation using the animate() function
=
# Set up formatting for the movie files
=
=