Grid: \(\mathbb{E}[XY]\)
An ant starts at \((0,0)\). Each second it moves Right with probability \(1/3\), Diagonal (up-right) with probability \(1/3\), Up with probability \(1/9\), and stays put with probability \(2/9\). After \(100\) seconds, find \(\mathbb{E}[XY]\), where \((X,Y)\) is the ant's position.
Answer
Let \(X\) be the \(x\)-coordinate and \(Y\) be the \(y\)-coordinate after \(100\) trials.
We see that \(X\) represents the number of times the ant increases its \(x\)-coordinate (Right or Diagonal) in 100 trials, hence
Similarly, \(Y\) represents the number of times the ant increases its \(y\)-coordinate (Up or Diagonal) in 100 trials, hence
Now, the trials \(1,2,\dots,100\) are independent, however both \(X\) and \(Y\) can increase on the same trial (that happens on a Diagonal move). Define indicator r.v.'s
Then
so
There are \(100^2\) terms: \(100\) terms with \(i=j\) (same trial) and \(9900=100^2-100\) terms with \(i\neq j\) (different trials).
If \(i=j\), then \(I_iJ_i=1\) exactly when the move is Diagonal, so
\[ \mathbb{E}[I_iJ_i]=\mathbb{P}(\text{Diagonal})=\frac13. \]If \(i\neq j\), then the trials are independent, so \(I_i\) is independent of \(J_j\) and
\[ \mathbb{E}[I_iJ_j]=\mathbb{E}[I_i]\mathbb{E}[J_j] =\left(\frac23\right)\left(\frac49\right)=\frac{8}{27}. \]
Therefore,
Notes and comments
Comment 1: In general, if \(X\sim\mathrm{Bin}(n,p_1)\) and \(Y\sim\mathrm{Bin}(n,p_2)\) come from the same \(n\) independent trials, then
This holds for both cases where the events defining \(p_1\) and \(p_2\) can happen simultaneously or not.
If they cannot happen simultaneously, then \(\mathbb{P}(I_1=1,J_1=1)=0\) and