GithubHelp home page GithubHelp logo

ronypik / cusum Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dahlem/cusum

0.0 1.0 0.0 1.44 MB

An Introduction into Anomaly Detection using the Cumulative Sum (CUSUM) Algorithm

License: GNU General Public License v2.0

TeX 100.00%

cusum's Introduction

An Introduction into Anomaly Detection

Introduction

This project gives a high-level overview of anomaly detection in timeseries data and provides a basic implementation of the cumulative sum (CUSUM) algorithm in R. CUSUM relies on stationarity assumptions of the timeseries, which constraints its use to real-world problems somewhat. However, timeseries data can often be annotated, such that piece-wise stationarity holds. For example, we could divide the timeseries into hourly buckets where stationarity assumptions hold with respect to these buckets.

This introduction was presented to an R meetup in Dublin. The slides are available in the org-mode format and can be exported to a latex-beamer presentation. All required packages are part of the latest TexLive distribution. I tested the PDF creation with luatex and biber for the bibliography.

Installation

Dependencies

The R implementation relies on a k-nearest neighbour algorithm from the FNN library. The optimx package is used to tune the anomaly detection algorithm on a particular data set. Otherwise, no further packages are required to run the scripts.

  • Open an R session
  • Type install.packages(c("FNN", "optimx"), dependencies=T) to install the required packages

CUSUM package

You can tangle the workflow in anomaly.org first in order to create the R package structure. Before proceeding with the workflow, install the cusum R package:

  • cd src/package
  • R CMD INSTALL cusum

cusum's People

Contributors

dahlem avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.