I am trying to implement an EM algorithm for dependent observations.
Specifically, I am dealing with families where the hidden variables $Z$ of the children are dependent on the hidden variables of the parents.
I have troubles calculating the expected value for $Z$, since for parents, it depends on the observed data for the child.
I'd like to ask if this has been done before, and if so, if someone could suggest some literature.
Alternatively, some hints on how I could tackle this would be very helpful too.
Edit: Since WIJ in the comments asked for the full model specification:
Let's say there is a response $X$ for each person that follows a gaussian distribution:
$$ X|Z=0 \sim N(4, 1) $$ $$ X|Z=1 \sim N(4+\alpha, 1) $$
A proportion of $p_1$ of the parents are in group 1. The group $Z=1$ is fully inheritable, that is, if at least one parent is $Z=1$, then the child is automatically $Z=1$.
The parameters $\theta$ for the EM algorithm are $\alpha$ and $p_1$.
I have trouble computing $\mathbb{E}(Z|X,\theta^{t})$ for children, since the observed data $X$ includes both parents. So for parents $i=1,2$ and a child $i=3$, I can not simply compute $\mathbb{E}(Z_3|X_3,\theta^{t})$, but have to use $\mathbb{E}(Z_3|X_1,X_2,X_3,\theta^{t})$, and I don't know how to calculate that.