Correlation of Two Indicators Over Three Coin Tosses

Reported in interviews at DRW

Problem statement

Toss a fair coin three times, so all $8$ outcome strings are equally likely. Define

  • $X = 1$ if the first toss is tails and the third toss is heads, and $X = 0$ otherwise;
  • $Y = 1$ if the second and third tosses are both heads, and $Y = 0$ otherwise.

What is the correlation $\rho(X, Y)$?

Show hint

What are the mean and variance of a variable that only takes the values 0 and 1?

Relevant roles: Data Scientist, Applied Scientist and ML Engineer.

Related free problems