Correlation between two overlapping flip windows
Asked at Two Sigma, DE Shaw
A fair coin is flipped many times. Let be the number of heads in flips through , and the number of heads in flips through . The two windows each span flips and overlap on flips through .
What is the correlation between and ?
Show a hint
Both counts share exactly the heads in the overlap region. Write each as (overlap) + (its own private part).