I have a set of size $n$, and a fixed subset $A$ of cardinal $k$. I take a random subset $X$ of cardinal $d$. I need to compute the expected cardinal of the intersection between $A$ and $X$.
I tried the following: the probability that the intersection is of cardinal $i$ (for $i$ in $[\max(0, n-k-d), \min(k,d)]$) is:
$$ \mathbf{P}(|X\cap A|=i)=\frac{\binom{k}{i}\binom{n-k}{d-i}}{\binom{n}{d}} $$
I just choose the intersection, $i$ elements in $A$, then the $d-i$ remaining elements in the complementary. But now the expected value is:
$$ \mathbf{E}(|X\cap A|)=\frac{1}{\binom{n}{d}}\sum\limits_{i=0}^{d}i\binom{k}{i}\binom{n-k}{d-i} $$
and I don't know what to do from here. I'd like to use Vandermonde identity, but I don't know how to deal with the $i$ in the sum. Am I missing something ?
Thanks !