I'm having some trouble understanding the following equality from my course book.
Some background:
Let $X_1,...,X_n$ be n independent Bernoulli r.v's with unknow parameter $\theta$. $X_1$ is an unibased estimator for $\theta$ and $T(X) = \sum_{i=1}^n X_i$ is a sufficent statistic.
Now to derive an estimator with a smaller variance one can use Rao-Blackwell's theorem and calculate the conditional expectation of the unbiased estimator and the sufficent statistic.
The following is written in my book which I do not understand.
$E_\theta (X_1|\sum_{i=1}^n X_i =t) = P_\theta (X_1 =1|\sum_{i=1}^n X_i = t)$
I tried to compute using some conditional expectation properties but I feel like the course book is skipping a lot of steps or that I might be missing something. Also, why is $X_1 = 1$ in the probability function?
I would appreciate if anyone could explain to me what is going on here.