Skip to content

Instantly share code, notes, and snippets.

@RobinUS2
Created May 1, 2013 14:22
Show Gist options
  • Save RobinUS2/5495533 to your computer and use it in GitHub Desktop.
Save RobinUS2/5495533 to your computer and use it in GitHub Desktop.
Anomaly detection version 2, better supports recurring events (e.g. hourly spikes)
*** Statistics ***
Count: 100
Max: 107
Min: 102
Avg: 104.0
Variance: 2.46
Standard deviation: 1.5684387141358123
Median: 105.0
Actual: 105 00.00% 106 00.00% 102 00.00% 105 00.00% 107 00.00%
Forecast: 104 00.96% 104 01.90% 104 01.94% 104 00.96% 104 02.84% (MLR15, performance 00.00%)
Forecast: 105 00.00% 105 00.95% 105 02.90% 105 00.00% 105 01.89% (MLR60, performance 00.00%)
Forecast: (MLR120, performance 00.00%)
Forecast: (SESM120, performance 00.00%)
Forecast: (DESM120, performance 00.00%)
Forecast: (TESM120, performance 00.00%)
Forecast: 104 00.96% 104 01.90% 104 01.94% 104 00.96% 104 02.84% (Average, performance 00.00%)
*** Anomalies ***
0
*** Values ***
106 105 106 104 107 104 104 103 102 104 105 104 107 103 105 106 103 105 106 104
107 103 106 104 102 105 106 105 104 102 103 105 103 104 106 103 107 102 103 106
104 106 106 107 103 105 103 104 106 106 102 106 106 103 106 106 103 105 107 105
104 107 105 104 102 103 105 103 102 106 103 103 105 106 104 106 103 104 104 106
105 105 102 104 105 103 104 102 103 105 107 105 105 105 104 105 106 102 105 107
*** Statistics ***
Count: 100
Max: 125
Min: 103
Avg: 113.0
Variance: 35.26
Standard deviation: 5.938013135721409
Median: 114.0
Actual: 124 00.00% 121 00.00% 122 00.00% 125 00.00% 123 00.00%
Forecast: 119 04.12% 120 00.83% 120 01.65% 120 04.08% 120 02.47% (MLR15, performance 02.00%)
Forecast: 111 11.06% 112 07.73% 112 08.55% 112 10.97% 112 09.36% (MLR60, performance 09.00%)
Forecast: (MLR120, performance 00.00%)
Forecast: (SESM120, performance 00.00%)
Forecast: (DESM120, performance 00.00%)
Forecast: (TESM120, performance 00.00%)
Forecast: 115 07.53% 116 04.22% 116 05.04% 116 07.47% 116 05.86% (Average, performance 05.00%)
*** Anomalies ***
0
*** Values ***
104 105 107 107 104 106 103 105 105 107 105 104 108 105 107 110 107 109 105 107
109 109 107 109 106 107 108 111 107 112 111 112 109 110 110 114 111 111 113 111
114 111 114 112 115 113 114 111 113 114 113 113 114 116 114 115 118 115 115 114
119 116 119 118 116 119 117 115 116 118 117 119 120 119 116 119 117 122 119 122
118 119 119 122 119 121 123 120 120 124 125 122 123 120 120 124 121 122 125 123
*** Statistics ***
Count: 100
Max: 2944
Min: 102
Avg: 200.0
Variance: 194623.82
Standard deviation: 441.16189772010006
Median: 104.0
Actual: 2944 00.00% 1239 00.00% 2466 00.00% 1505 00.00% 1974 00.00%
Forecast: 105 186.22% 105 168.75% 104 183.81% 104 174.15% 104 179.98% (MLR15, performance 178.00%)
Forecast: 104 186.35% 104 169.02% 104 183.81% 104 174.15% 104 179.98% (MLR60, performance 178.00%)
Forecast: (MLR120, performance 00.00%)
Forecast: (SESM120, performance 00.00%)
Forecast: (DESM120, performance 00.00%)
Forecast: (TESM120, performance 00.00%)
Forecast: 104 186.35% 104 169.02% 104 183.81% 104 174.15% 104 179.98% (Average, performance 178.00%)
*** Anomalies ***
5
*** Values ***
106 102 104 106 107 104 102 103 106 106 104 107 106 107 103 104 103 103 106 107
104 102 102 104 105 107 105 107 104 103 107 105 107 104 104 106 103 104 106 107
103 105 102 104 106 102 104 102 102 106 105 102 105 104 103 105 104 107 104 103
105 105 107 104 105 102 104 105 105 104 105 105 102 105 105 104 104 106 104 105
106 107 103 104 103 102 104 102 103 105 104 105 103 104 102 2944 1239 2466 1505 1974
*** Statistics ***
Count: 100
Max: 107
Min: 3
Avg: 99.0
Variance: 480.83
Standard deviation: 21.92783619055925
Median: 104.0
Actual: 3 00.00% 5 00.00% 5 00.00% 4 00.00% 4 00.00%
Forecast: 105 188.89% 105 181.82% 105 181.82% 104 185.19% 104 185.19% (MLR15, performance 184.00%)
Forecast: 105 188.89% 105 181.82% 105 181.82% 105 185.32% 105 185.32% (MLR60, performance 184.00%)
Forecast: (MLR120, performance 00.00%)
Forecast: (SESM120, performance 00.00%)
Forecast: (DESM120, performance 00.00%)
Forecast: (TESM120, performance 00.00%)
Forecast: 105 188.89% 105 181.82% 105 181.82% 104 185.19% 104 185.19% (Average, performance 184.00%)
*** Anomalies ***
5
*** Values ***
107 105 102 104 102 103 106 103 104 104 106 103 104 107 102 106 106 102 106 107
105 105 106 103 104 104 103 106 106 106 104 107 103 105 106 105 104 105 103 106
104 105 102 105 103 107 104 104 106 104 102 106 107 104 102 105 105 105 104 107
106 104 107 105 104 106 102 104 102 102 106 105 106 106 106 104 105 106 104 104
107 104 103 106 104 103 103 104 105 104 102 107 102 105 103 3 5 5 4 4
*** Statistics ***
Count: 241
Max: 2465
Min: 102
Avg: 139.0
Variance: 62266.269709543565
Standard deviation: 249.53210156118905
Median: 105.0
Actual: 104 00.00% 106 00.00% 105 00.00% 103 00.00% 2207 00.00%
Forecast: 105 00.96% 105 00.95% 105 00.00% 105 01.92% 105 181.83% (MLR15, performance 36.00%)
Forecast: (MLR60, performance 00.00%)
Forecast: (MLR120, performance 00.00%)
Forecast: (SESM120, performance 00.00%)
Forecast: (DESM120, performance 00.00%)
Forecast: 106 01.90% 113 06.39% 114 08.22% 116 11.87% 2206 00.05% (TESM120, performance 05.00%)
Forecast: 105 00.96% 109 02.79% 109 03.74% 110 06.57% 1155 62.58% (Average, performance 14.00%)
*** Anomalies ***
0
*** Values ***
1431 104 105 105 103 105 107 105 103 107 104 107 103 105 106 104 104 107 105 105
103 105 106 107 104 106 103 105 102 107 105 106 103 104 105 103 103 106 103 105
103 104 106 104 104 106 103 104 106 104 104 107 103 105 106 103 104 106 103 105
1262 103 106 107 103 106 102 106 103 106 107 104 106 105 104 105 103 105 106 102
103 106 103 104 105 106 102 104 107 106 105 103 105 106 105 103 106 107 103 104
107 104 103 107 104 104 103 104 103 105 105 102 103 105 103 103 106 103 103 104
2465 107 107 104 103 104 105 105 103 104 103 104 107 106 102 103 103 103 105 106
103 105 103 104 104 106 102 104 105 106 102 103 104 107 107 106 103 104 104 106
104 106 102 103 104 103 107 103 106 107 107 103 105 106 103 104 105 102 103 106
1591 104 106 107 105 103 106 107 103 105 107 104 103 104 106 102 104 105 106 105
105 103 104 105 103 104 103 105 107 103 106 104 104 106 104 104 107 103 106 106
104 107 102 104 105 105 106 105 103 105 103 105 105 102 106 106 104 106 105 103
2207
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment