I'm in the process of working through Exercises in EM. I am having trouble understanding the first exercise. In particular, I am struggling with deriving the conditional expected value (2) and (3).
In both equations, there appear to be a logistic function. How was this obtained?
In (1), I see how this the log-likelihood belongs to the exponential family, and given $E_i=1$, $E[X_i | \mathcal{Y}] = t + \theta$, but how was the conditional expectation given $E_i = 0$ obtained?
Below is the setup for the first exercise.
The First Exercise
Suppose there are two light bulb survival experiments. In the first, there are $N$ bulbs whose exact lifetimes $y_i$ for $i \in \{1,...,N\}$ are recorded. The lifetimes have an exponential distribution, such that $y_i \sim Exp(\theta).$ In the second experiment, there are $M$ bulbs. After some time (t > 0), a researcher walks into the room and only records how many lightbulbs are still burning out of $M$ bulbs. Thus, the results from the second experiment are right- or -left-censored, and the available data are indicators $E_1, ..., E_M$ for each of the bulbs in the second experiment. If the bulb is still burning, $E_i = 1$, else $E_i = 0$.
Having this data, which is the MLE $\hat\theta$?
Let $X_1, ... , X_M$ be the (unobserved) lifetimes for the second experiment, and let $Z = \sum_{i=1}^ME_i$ be the number of light bulbs still burning. Thus, the observed data from both the experiments combined is $\mathcal{Y} = (Y_1, ..., Y_N, E_1,...,E_M)$ and the unobserserved data is $\mathcal{X} = (X_1, ..., X_M).$
The complete data log-likelihood is
(1) $$ log^c(L(\theta|\mathcal{Y,X})) = -N(log(\theta) + \bar{Y}/\theta) - \sum_{i=1}^M(log(\theta) + X_i/\theta ) $$
which is linear for unobserved $X_i$. But
(2) $$ E[X_i | \mathcal{Y}] = E[X_i | E_i] = \begin{cases} t + \theta & \quad \text{if } E_i = 1\\ \theta - t \frac{e^{-t/\theta}}{1 - e^{-t/\theta}} & \quad \text{if } E_i = 0\\ \end{cases} $$
and therefore the $j$th step consists of replacing $X_i$ in (1) by its expected value (2), using the current numerical parameter value $\theta^{(j-1)}$. The result is
(3) $$ \log(L(\theta)) = -(N + M) log(\theta) - \frac{1}{\theta} [N \bar{Y} + Z ( t + \theta^{(j-1)}) + (M - Z) (\theta^{(j-1)} - t p^{(j-1)})] $$
where
$$ p^{(j)} = \frac{e^{-t/\theta^{(j)}}}{1 - e^{-t/\theta^{(j)}}} $$
There is more (not shown here) in the paper, but my main concern is how $p^{(j)}$ is obtained.