Questions tagged [covariance]

Questions about covariance, a measure of (linear) association between two random variables.

Covariance is a measure which shows how much two RVs are dependent. If they are fully independent it would be zero and as much as they are dependent it would have a greater value. You can have a much powerful insight by description of the following formula:

The covariance of the random variables $X$ and $Y$ is the difference of the Expected value of their product ($E(XY)$) by the product of their expected values ($E(X)E(Y)$).

\begin{align*} \sigma(X,Y) = E(XY)-E(X)E(Y) \end{align*}

If they are independent then $E(XY)=E(X)E(Y)$ and therefore the covariance would be zero. Also, as much as they depend on each other their distance would be higher.

Though the main formula for definition of co-variance is \begin{align*} \sigma(X,Y) = E \left[ \left(X-E(X)\right) \left(Y-E(Y)\right) \right] \end{align*}

we can convert it to the pre-explained one (for the finite-domain random variables):

\begin{align*} \sigma(X,Y) &= E \left[ \left(X-E(X)\right) \left(Y-E(Y)\right) \right] \\\ &= E \left[ X Y - X E(Y) - E(X) Y + E(X) E(Y) \right]\\\ &= E (X Y) - E(X) E(Y) - E(X) E(Y) + E(X) E(Y) \\\ &= E (X Y) - E(X) E(Y) \end{align*}

Also, for two vectors of random variables ($\mathbb{X}$ and $\mathbb{Y}$) the covariance matrix has been defined as a matrix which each cell shows the covariance of corresponding cell in the matrix ($\mathbb{X} \times \mathbb{Y}^T$).

Reference:

2065 questions
-1
votes
1 answer

What is the covariance matrix between AX and BY?

Let X = (X1, . . . , Xn) and Y = (Y1, . . . , Yn) be two random vectors (i.e., vectors of random variables). Suppose that the covariance between X_i and Y_j is G_ij . In other words, the covariance matrix between the random vectors X and Y is G. Let…
alex.l
  • 1
-1
votes
1 answer

Covariance of two r.v. $X\sim B(Z,\alpha)$, $Y\sim B(X\alpha,\delta)$

Suppose $Z_i$ are i.i.d. random variable and $Z_i\alpha$ are positive integers. For the following two random variables $X$ and $Y$, I would like to compute the $\mathrm{Cov}(X,Y)$ where $X \sim B(Z,\alpha)$, $Y\sim B(X,\delta)$ Any inputs or…
-2
votes
1 answer

Covariance of two normal distributions

Why does the covariance of the following two normal distributions, $X \thicksim N(67,20), Y \thicksim N(9,1),$ be $0?$ My simulations show that it should always be $0$ in these conditions, but I'm looking for some examples, proof or…
1 2 3 4
5