next up previous
Next: Covariance between half-siblings Up: The gory details Previous: The gory details

Covariance of two random variables

Let $p_{xy}$ be the probability that random variable $X$ takes the value $x$ and random variable $Y$ takes the value $y$. Then the covariance between $X$ and $Y$ is:

\begin{displaymath}
\mbox{Cov}(X,Y) = \sum p_{xy}(x - \mu_x)(y - \mu_y) \quad ,
\end{displaymath}

where $\mu_x$ is the mean of $X$ and $\mu_y$ is the mean of $Y$.



Kent Holsinger 2008-08-27