Two binary variables X and Y have joint probabilities P(0,0)=0.3, P(0,1)=0.2, P(1,0)=0.1, P(1,1)=0.4. What are Cov(X,Y) and the correlation ρ?

Probability and statistics, Covariance and correlation
Level L2 Elementary. Length Medium. Nature Mat Mathematical.

What's being asked

Computing moments from a joint table, then using Cov=E[XY]−E[X] E[Y].

Key idea

Cov(X,Y)=E[XY]−E[X] E[Y] and ρ=Cov(X,Y)/Var(X)Var(Y).

Steps

  1. Marginals: P(X=1)=0.1+0.4=0.5 and P(Y=1)=0.2+0.4=0.6. For a 0/1 variable the mean equals this probability, so E[X]=0.5, E[Y]=0.6.
  2. Product moment: XY=1 only when both are 1, so E[XY]=P(1,1)=0.4.
  3. Covariance: 0.4−0.5×0.6=0.1.
  4. Variances of 0/1 variables are p(1−p): Var(X)=0.25, Var(Y)=0.24.
  5. Correlation: ρ=0.1/0.25×0.24=0.1/0.06≈0.408. They are positively but not strongly correlated.

Common mistakes

How long your answer should be

Half a page; 3 minutes.

Last checked on 4 December 2026.

Read this

Previous in Probability and statistics: A server's waiting time T (in minutes) is exponential with mean 5. Given that you have already waited 3 minutes, what is the probability you wait more than 8 minutes in total? Why is the answer what it is?
Next in Probability and statistics: If X∼N(2,9) and Y=3X−1, what is the distribution of Y, and what is P(Y>14), given Φ(1)≈0.8413?