If $X_1$ and $X_2$ are 2 random i.i.d. variables. What is the probability of $P(X_1 = X_2)$. \begin{equation} P(X_1=X_2) = \sum_{i \in \mathbb{Z}} P_{X_1,X_2}(i,i) = \sum_{i \in \mathbb{Z}} P_{X_1}(i)^2. \end{equation}
Similar question with same proof- Probability of iid random variables to be equal? But there doesn't seem to be a convincing answer for the discrete case for at least me in the thread. Or I couldn't understand it properly.