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
vote
1 answer

Is covariance a commutative operator? Is it the reason why a covariance matrix is a symmetric n by n matrix?

Having that $x$ and $y$ are two random variables with the covariance $\operatorname{cov}(x,y) = E[(x - E(x))(y-E(y))] $ This means to me that $\operatorname{cov}(x,y) = E[(y - E(y))(x-E(x))] $ which means $\operatorname{cov}(x,y) =…
1
vote
2 answers

How to prove $ P(A\cap B)= P(A) P(B) - P(\bar{A} )P(\bar{B})$

I am given this question in my statistics course: Let $A$ and $B$ be $2$ events such that $A\cup B = \Omega$. Prove that $ P(A\cap B)= P(A) P(B) - P(\bar{A} )P(\bar{B})$ Hint: Define the following two random variables and use…
user821
  • 124
1
vote
1 answer

How to calculate the covariance of a random variable and an indicator function on it?

Given $X$ is a random variable, how to calculate the covariance $\text{cov}(X,1_{\{X>\text{VaR}_{\alpha}(X)\}})$? Here, the indicator function is defined as $$ 1_{\{X>\text{VaR}_{\alpha}(X)\}} = \begin{cases} 1& X>\text{VaR}_{\alpha}(X),\\ 0&…
1
vote
1 answer

Is a covariance matrix full rank?

I am reading a paper [1] and saw something confusing to me. Is a covariance matrix full rank? Let $\textbf{s}(t)$ be a $d\times1$ complex-valued column vector containing signals from $d$ different sources, i.e., $\textbf{s}(t)=\begin{bmatrix}s_1(t)…
Jeon
  • 169
1
vote
1 answer

Finding Variance from Covariance

Let $X_1,X_2,X_3$ be uniform random variables on the interval $(0,1)$ with $$\newcommand{\cov}{\text{cov}} \newcommand{\var}{\text{var}}\cov(X_i,X_j)=\frac{1}{24} \text{ for } i,j\in\{1,2,3\}, i\ne j$$ Calculate the variance of $X_1+2X_2-X_3$ I…
1
vote
1 answer

Find the covaraince of the number of hearts drawn and the number of clubs drawn from a deck of cards.

Two cards are drawn without replacement from a pack of cards. The random variable $X$ measures the number of heart cards drawn, and the random variable $Y$ measures the number of club cards drawn. Find the covariance and correlation of $X$…
1
vote
0 answers

Where is the logical error resulting in my negative variance?

I have three random variables $X,Y,Z$ that all have a mean of $\mu=10$ and a standard deviation of $\sigma=2$. Now, I would like to say that they are negatively correlated with $\rho_{X,Y}=-1, \rho_{Y,Z}=-1, \rho_{X,Z}=-1$. My question would be,…
IceFire
  • 458
1
vote
0 answers

Sample Covariance

I have a doubt with regards to sample covariance. The sample covariance between two random variables x & y can be given as $\frac{1}{N} \sum_i{(x_i - \mu_x)(y_i - \mu_y)}$ assuming the mean's $\mu_x \text{ and } \mu_y$ are known. However if the…
1
vote
1 answer

Covariance of X and Y on a Quadrilateral

How should I go about determining the covariance? Also, how can I use intuition to determine if it should be positive or negative?
1
vote
0 answers

The meaning of Covariance

The positive covariance indicates that higher the average values of one variable tend to be paired with heigher than the average values of other variable. and the negtaive indicates that higher the average values of one variable tend to be paired…
faimer
  • 11
1
vote
0 answers

three color ball urn problem covariance

An urn contains $M$ balls: $W$ white balls, $B$ blue balls and $R$ red balls. A sample $s$ of size $N$ is drawn at random. $M$ is large relative to $N$, and the possibility of picking the same ball twice can be neglected. Number of red balls and…
Pav El
  • 111
1
vote
1 answer

What are the restrictions of a covariance matrix?

This question is not a duplication of this question this question. I want to generate a random covariance matrix so at first, I should know what a covariance matrix should be like. Surely, we know that the covariance matrix of a series events must…
SandyX
  • 301
0
votes
1 answer

Show that each variance-covariance-matrix is symmetric and nonnegative definite

As the title already says I have to show that for $Z=(Z_1,...,Z_n)^T$ it is $$ y^T\text{Cov}(Z)y\geqslant 0~\forall~y\in\mathbb{R}^n. $$ In a book I read $$ y^T\text{Cov}(Z)y=\text{Var}(y^TZ)\geqslant 0 $$ but that's not clear to me, because…
mathfemi
  • 2,631
0
votes
1 answer

Calculate the covariance between two random variables

I have a random variable $x = \theta + \epsilon$ where $\theta \sim N(\mu,\alpha^{-1})$ and $\epsilon \sim N(0,\beta^{-1})$, with $Cov(\theta, \epsilon)=0$. I want to calculate $Cov(x,\theta)$. What I did is ($E$ denotes expected value…
Vitomir
  • 101
0
votes
1 answer

Finding covariance using the expectation values

I'm trying to calculate the covariance for an example that I've created - using the covariance formula Cov(X,Y) = E(XY)-E(X)E(Y) as in this question - but I'm running into trouble. In my example, I roll a 3-sided die 150 times and count how many…
Rez99
  • 111