I was trying to solve this question combinatorically:
There are $n$ green balls and $n$ yellow balls, each numbered $1$ - $n$. We divide the $2n$ balls randomly into pairs. Compute the expected value of the number of pairs that have the same number.
I tried to compute the probabilities and possible values of the random variable $X$, which is the total of the same number pairs, but it did not work. I specifically would like to request an explanation for how to solve the problem this way.
Also, the answer was computed by indicators $X_i$ such that $X_i$ has the value of 1 if the pair $X_i$ has the same number. Thus, every $X_i$, according to the answer, has the value $1/(2n-1)$. I understand where the expression $1/(2n-1)$ comes from, but I couldn't understand why all values are the same; I would be glad for an explanation why this answer is right. I mean, we have less and less balls to pair each draw of pairs and that changes the probability, right?
The final answer is the sum of all of these indicators: $n/(2n-1)$. Thank you in advance! :)