Code Monkey home page Code Monkey logo

cord_cpd's Introduction

Correlation-aware Change-point Detection
via Graph Neural Networks

Correlation-aware Dynamics Change-point Detection Model (CORD-CPD)

Paper link: https://arxiv.org/pdf/2004.11934.pdf

CORD_CPD aims to detect abrupt changes in multivariate time series, including:
Correlation Change: the change of correlation structure of variables in multivariate time series
Independent Change: the change of variable dynamics (physical property of variable's modus operandi) Intro Image

Simulation of Change-point Data

The first step to generate change-point data with scripts in folder data/:

cd data
./generate_change_point.sh
cd ..

Display the trajectory of varaibles and the red dot is the change-point (location and velocity changes are independent changes, connection changes is a correlation change):

independent change

loc change vel change

correlation change

edge change

Training and Evaluation

To run/evaluate CORD-CPD, using following command:

./cmd.sh $GPU train
./cmd.sh $GPU test

Resulting detection of the three datasets results

How to use and next steps:

A motivating example (in our paper) is for financial markets: traders use pair trading strategy to profit from correlated stocks, such as Apple and Samsung (both are phone sellers), which share similar dips and highs. News about Apple expanding markets may independently raise its price without breaking its correlation with Samsung. However, news about Apple building self-driving cars will break its correlation with Samsung, and establish new correlations with automobile companies. While both of them are change-points, the former is an independent change of variables and the latter is a correlation change between variables. Knowing the type of change can guide financial experts to choose trading strategies properly.

If interested, one can apply it on stock tickers, sensors or other related time series.

Related Reference:

Although the code structure is different, some of the tools are from https://github.com/ethanfetaya/NRI

cord_cpd's People

Contributors

riflezhang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

cord_cpd's Issues

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.