12.03.2016 Views

Anomaly Detection for Monitoring

anomaly-detection-monitoring

anomaly-detection-monitoring

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

talked about when discussing methods to deal with trend, but this<br />

time we’re doing it to the model instead of the original metric. With<br />

a single EWMA, there is a single smoothing factor: α (alpha).<br />

Because there are two more EWMAs <strong>for</strong> trend and seasonality, they<br />

also have their own smoothing factors. Typically they’re denoted as<br />

β (beta) <strong>for</strong> trend and γ (gamma) <strong>for</strong> seasonality.<br />

Predicting the current value of a metric is similar to the previous<br />

models we’ve discussed, but with a slight modification. You start<br />

with the same “next = current” <strong>for</strong>mula, but now you also have to<br />

add in the trend and seasonal terms. Multiple exponential smoothing<br />

usually produces much better results than naive models, in the<br />

presence of trend and seasonality.<br />

Multiple exponential smoothing can get a little complicated to<br />

express in terms of mathematical <strong>for</strong>mulas, but intuitively it isn’t so<br />

bad. We recommend the “Holt-Winters seasonal method” section 1<br />

of the Forecasting: principles and practice <strong>for</strong> a detailed derivation. It<br />

definitely makes things harder, though:<br />

• You have to know the period of the seasonality be<strong>for</strong>ehand. The<br />

method can’t figure that out itself. If you don’t get this right,<br />

your model won’t be accurate and neither will your results.<br />

• There are three EWMA smoothing parameters to pick. It<br />

becomes a delicate process to pick the right values <strong>for</strong> the<br />

parameters. Small changes in the parameters can create large<br />

changes in the predicted values. Many implementations use<br />

optimization techniques to figure out the parameters that work<br />

best on given sample data.<br />

With that in mind, you can use multiple exponential smoothing to<br />

build SPC control charts just as we discussed in the previous chapter.<br />

The advantages and disadvantages are largely the same as we’ve<br />

seen be<strong>for</strong>e.<br />

Potential Problems with Predicting Trend and<br />

Seasonality<br />

In addition to being more complicated, advanced models that can<br />

handle trend and seasonality can still be problematic in some com‐<br />

1 https://www.otexts.org/fpp/7/5<br />

Potential Problems with Predicting Trend and Seasonality | 37

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!