Identifying Correlation in Stream of Samples

Zhenhao Gu, Hao Zhang
11/18/2022
cs.DS

Official code: GZHoffie/independence-in-streams (5 stars, Jupyter Notebook, last commit 2021-11-09).

Abstract

Identifying independence between two random variables or correlated given their samples has been a fundamental problem in Statistics. However, how to do so in a space-efficient way if the number of states is large is not quite well-studied.

Show full abstract

We propose a new, simple counter matrix algorithm, which utilize hash functions and a compressed counter matrix to give an unbiased estimate of the $\ell_2$ independence metric. With $\mathcal{O}(ε^{-4}\logδ^{-1})$ (very loose bound) space, we can guarantee $1\pmε$ multiplicative error with probability at least $1-δ$. We also provide a comparison of our algorithm with the state-of-the-art sketching of sketches algorithm and show that our algorithm is effective, and actually faster and at least 2 times more space-efficient.

View on arXivView PDF

Code Implementations(1)

This repository contains code for identifying correlation in a stream of samples. The sketching of sketches algorithm and the counter matrix algorithm are implemented and benchmarked.

50Jupyter Notebook, PythonOct 19, 20215 years ago
independence-testsprobability-theorystream-processing

Similar Papers

Cite this paper

@article{gu2022identifying,
  title  = {Identifying Correlation in Stream of Samples},
  author = {Zhenhao Gu and Hao Zhang},
  year   = {2022},
  eprint = {2211.10137},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.10137}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2211.10137.svg)](https://codeofpaper.com/paper/2211.10137)

Discussion