Identifying Correlation in Stream of Samples
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 abstractHide
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.