Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

For questions about correlation of two random variables. Use it with [tag: random-variables] and [tag: probability].

Let $X$ and $Y$ two random variables such that $X^2,Y^2$ have an expectation. We define the correlation between $X$ and $Y$ by $$\operatorname{Corr}(X,Y):=\frac{E((X-EX)(Y-EY))}{\sqrt{E(X^2)E(Y^2)}}$$ when $EX^2EY^2\neq 0$, and $0$ otherwise.

history | excerpt history