would appreciate your help with this question:
a regular die is being thrown 21 times. we define:
$x_1$ - the number of throws we obtained 1 or 2.
$x_2$ - the number of throws we obtained 3,4,5,6.
how can i calculate the correlation cofactor between $x_1$ and $x_2$
my attempt:
so according to the details, i think that in order to find the correlation cofactor, i need to solve: $p(x_1,x_2)=\frac{cov(x_1,x_2)}{\sqrt{var(x_1)var(x_2)}}$, so i get that $p(x_1,x_2)=\frac{E[x_1x_2]-E[x_1]E[x_2]}{\sqrt{((E[x_1^2]-(E[x_1])^2)(E[x_2^2]-(E[x_2])^2)}}$, and it becomes a huge mess. is there a smart or efficient way to solve it using the given data instead of a lot of calculations?
would really appreciate your help and insights.
thank you very much!
Covariance is bilinear and symmetric.
If $X,Y$ are random variables with $X=aY+b$ where $a,b$ are constants then: $$\mathsf{Var}X=\mathsf{Var}(aY+b)=a^2\mathsf{Var}Y$$
and:$$\mathsf{Cov}(X,Y)=\mathsf{Cov}(aY+b,Y)=a\mathsf{Cov}(Y,Y)=a\mathsf{Var}Y$$
If $a\neq0$ and $Y$ is not degenerated then this leads to:$$\rho(X,Y)=\frac{\mathsf{Cov}(X,Y)}{\sqrt{\mathsf{Var}X}\sqrt{\mathsf{Var}Y}}=\frac{a\mathsf{Var}Y}{\sqrt{a^2\mathsf{Var}Y}\sqrt{\mathsf{Var}Y}}=\frac{a}{|a|}$$
Apply this on $X_1=(-1)X_2+21$.