Indexed by TopGit from live GitHub metadata: twitter/AnomalyDetection has 3.6k stars, written primarily in R. Anomaly Detection with R
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
AnomalyDetection is an open-source R package to detect anomalies which is
robust, from a statistical standpoint, in the presence of seasonality and an
underlying trend. The AnomalyDetection package can be used in wide variety of
contexts. For example, detecting anomalies in system metrics after a new
software release, user engagement post an A/B test, or for problems in
econometrics, financial engineering, political and social sciences.
How the package works
The underlying algorithm – referred to as Seasonal Hybrid ESD (S-H-ESD) builds
upon the Generalized ESD test for detecting anomalies. Note that S-H-ESD can
be used to detect both global as well as local anomalies. This is achieved by
employing time series decomposition and using robust statistical metrics, viz.,
median together with ESD. In addition, for long time series (say, 6 months of
minutely data), the algorithm employs piecewise approximation - this is rooted
to the fact that trend extraction in the presence of anomalies in non-trivial -
for anomaly detection.
Besides time series, the package can also be used to detect anomalies in a
vector of numerical values. We have found this very useful as many times the
corresponding timestamps are not available. The package provides rich
visualization support. The user can specify the direction of anomalies, the
window of interest (such as last day, last hour), enable/disable piecewise
approximation; additionally, the x- and y-axis are annotated in a way to assist
visual data analysis.
How to get started
Install the R package using the following commands on the R console:
The function AnomalyDetectionTs is called to detect one or more statistically
significant anomalies in the input time series. The documentation of the
function AnomalyDetectionTs, which can be seen by using the following command,
details the input arguments and the output of the function AnomalyDetectionTs.
help(AnomalyDetectionTs)
The function AnomalyDetectionVec is called to detect one or more statistically
significant anomalies in a vector of observations. The documentation of the
function AnomalyDetectionVec, which can be seen by using the following command,
details the input arguments and the output of the function AnomalyDetectionVec.
help(AnomalyDetectionVec)
A simple example
To get started, the user is recommended to use the example dataset which comes
with the packages. Execute the following commands:
data(raw_data)
res = AnomalyDetectionTs(raw_data, max_anoms=0.02, direction='both', plot=TRUE)
res$plot
From the plot, we observe that the input time series experiences both positive
and negative anomalies. Furthermore, many of the anomalies in the time series
are local anomalies within the bounds of the time series’ seasonality (hence,
cannot be detected using the traditional approaches). The anomalies detected
using the proposed technique are annotated on the plot. In case the timestamps
for the plot above were not available, anomaly detection could then carried
out using the AnomalyDetectionVec function; specifically, one can use the
following command:
Often, anomaly detection is carried out on a periodic basis. For instance, at
times, one may be interested in determining whether there was any anomaly
yesterday. To this end, we support a flag only_last whereby one can subset the
anomalies that occurred during the last day or last hour. Execute the following
command:
res = AnomalyDetectionTs(raw_data, max_anoms=0.02, direction='both', only_last=”day”, plot=TRUE)
res$plot
From the plot, we observe that only the anomalies that occurred during the last
day have been annotated. Further, the prior six days are included to expose the
seasonal nature of the time series but are put in the background as the window
of prime interest is the last day.
Anomaly detection for long duration time series can be carried out by setting
the longterm argument to T.
Copyright and License
Copyright 2015 Twitter, Inc and other contributors
How active is development on twitter/AnomalyDetection?
The most recent commit recorded on twitter/AnomalyDetection was 7.2 years ago, based on the GitHub push timestamp. The repository has 764 forks — one of the better signals of community interest.
How many stars does twitter/AnomalyDetection have?
twitter/AnomalyDetection has 3.6k GitHub stars — refresh the page for the live number, or check github.com/twitter/AnomalyDetection. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is twitter/AnomalyDetection open source?
Yes — twitter/AnomalyDetection ships under the GPL-3.0 license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/twitter/AnomalyDetection.
What is twitter/AnomalyDetection?
twitter/AnomalyDetection (twitter/AnomalyDetection) is a R project on GitHub. From the project's own README: Anomaly Detection with R
Where do I read more about twitter/AnomalyDetection?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/twitter/AnomalyDetection is the definitive source.
Read full README in the tab above.
Is AnomalyDetection worth your time?
ChatGPT, Claude and Perplexity can all read this page. Ask one of them what it makes of AnomalyDetection.