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
0
votes
2 answers

Can two different matrices have the same covariance?

Can two different matrices have the same covariance? Let's using MATLAB's function cov to compute the covariance of a matrix A and a matrix B. A and B are different, but could them have the same covariance in practice? Normally, they don't, but are…
euraad
  • 2,934
0
votes
0 answers

Let X be a uniform r.v. over (−1, 1). Let Y = X^2.

I'm having problems solving this problem "Let X be a uniform r.v. over (−1, 1). Let $Y = X^n.$ Calculate: the covariance of X and Y. I believe that i should use: $$ cov(x,y) = E(x,y) - E(x)E(y)$$ but i don't understand how am i supposed to…
0
votes
1 answer

Hypothetical covariance of an RV and a product of that same RV with another one

Confusing title, sorry I know. Essentially given 3 random variables $X$, $Y$, and $Z$, where $X$ and $Y$ are independent, and $Z = XY$, what's the covariance of $(X, Z)$ (or $(X, XY)$)? I know the basic properties like Cov$(X,X) =$ Var$(X)$ and how…
mathjohnn
  • 181
  • 11
0
votes
2 answers

Show that $\text{Cov}(\mathbf{Y})=\mathbb{E}[(\mathbf{Y}-\mathbb{E}\mathbf{Y})\mathbf{Y}^T]$

Let $\mathbf{Y}$ be a $p$-dimensional random vector with $\mathbb{E}|\mathbf{Y}|^2<\infty$. Show that $$\text{Cov}(\mathbf{Y})=\mathbb{E}[(\mathbf{Y}-\mathbb{E}\mathbf{Y})\mathbf{Y}^T]$$ I tried using the fact that…
user650626
0
votes
1 answer

Want to see if this covariance formula I'm thinking of is correct?

In my book, in the section about multiple random variables I am told that the Covariance of random variables $X_1$ and $X_2$ is Cov($X_1,X_2$) = E($X_1X_2)-\mu_1\mu_2$ My question is, is an equivalent form of the above: Cov($X_1,X_2$) =…
user839486
0
votes
1 answer

Is covariance matrix of multivariate normal distribution always positive semi-definite?

Is covariance matrix of multivariate normal distribution always positive semi-definite? Can it be negative definite? What will happen if the covariance matrix is negative definite???
user10386405
  • 113
  • 6
0
votes
1 answer

$\operatorname{Cov}(\mathbf{x,y})+\operatorname{Cov}(\mathbf{y,x})=2\operatorname{Cov}(\mathbf{x,y})$

Let x and y be random vectors of the same dimension. The covariance of x+y is:$\DeclareMathOperator{\Cov}{Cov}$ $$\Cov(\mathbf{x}+\mathbf{y})= \Cov(\mathbf{x})+\Cov(\mathbf{y})+ \Cov(\mathbf{x,y})+\Cov(\mathbf{y,x})$$ Is it correct…
user.
  • 341
0
votes
1 answer

Find the missing variance in a $2×2$ covariance matrix

Given the covariance matrix: $\sum = \begin{pmatrix} 1 & 2 \\ 2 & b \end{pmatrix}$ I can't seem to figure out what the value or range of $b$ is. Intuition is telling me $4$ but I am not sure. Thanks in advance.
user820409
0
votes
1 answer

Covariance of two normal distributions where one is squared.

I'm facing this question while looking for the variance of the product of two normal distributions. Let say we have $x$ and $y$ which are normally distributed with mean = 0 and sd = 1 and correlated by $\rho$. Is their a way to compute the expected…
POC
  • 107
0
votes
1 answer

Show covariance of random variable and an increasing function is increasing with respect to the mean

Suppose I have a continuous random variable $Y$ with $\mu=E[Y]$ and $g(Y)$ is strictly convex and increasing in $Y$. Does it follow that $\frac{\partial}{\partial\mu}Cov(Y,g(Y))>0$? To me, it makes intuitive sense, but I can't prove it…
0
votes
0 answers

Evaluate Cov(A, BS)

Suppose I have three real-valued random variables A, B and S with poisson or negative binomial distribution. Let (⋅) denote the covariance operator. How do I evaluate Cov(B, AS)? I have Cov(B, AS) = E[B * AS] - E[B]E[AS] E[AS] = Cov(A, S) +…
yearntolearn
  • 109
  • 2
0
votes
1 answer

Covariance times constant, basic rules

I know the from the basic rule of the covariance we have: $$\text{Cov(aX,Y)=aCov(X,Y)}$$ however now i'm looking at a case that is creating me some doubt: Looking at the covariance of the same random variable: $1)$…
Buddy_
  • 939
0
votes
2 answers

simple covariance homework question

any help is greatly appreciated. I am insecure about whether and how to use the covariance formula for this basic question. Suppose X is a random variable with E[X]=E[X^3]=0. Suppose that Y=X^2 is another random variable. a) What is cov[X,Y]? b)…
0
votes
1 answer

means and covariances of random variables doubt.

I am a newbie, self studying matrix algebra, and while doing the below exercise: exercise I do struggle with the jargon/language. It says "and covariances of the random variables". I thought that to calculate covariance I need to variables $X_1$,…