Giter Site home page Giter Site logo

distance_correlation's Introduction

distance correlation

Distance correlation is a measure of dependence between two vectors. It's particularly known for the nice property that two uncorrelated vectors are guaranteed to be independent.

In slightly more detail: given X and Y random vectors, distance covariance is a metric (called the energy distance) of how distant is the actual joint distribution (X,Y) from the alternate distribution that would hold if X and Y were independent. Wikipedia has the technical details, but to illustrate its main properties we'll borrow the following chart, with depicts a few point cloud-type datasets and their distance correlation:

Distance Correlation - examples

  • Unlike Pearson correlation, distance correlation is bounded between 0 and 1, and doesn't have an interpretation of linear directionality, Therefore negatively sloped lines have perfect correlation = 1.
  • Distance correlation is quite adept at detecting nonlinear structures. The Pearson correlation for all the charts in the third row is 0,

I've always been interested in distance correlation and tried to use it in my datasets, but it's quite computation-intensive in ways that aren't easy to vectorize for numpy optimizations. This package relies on a custom-written C++ extension that leverages pybind11 for Python integration and the excellent Eigen3 library for C++ linear algebra that saves the heartache of manual memory management.

distance_correlation's People

Contributors

asemic-horizon avatar

Stargazers

Alexander Reisach avatar Mohammadreza Rezaie avatar

Watchers

 avatar Mohammadreza Rezaie avatar  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.