I am trying to understand EM and trying to infer parameters of this model using this technique but am having trouble understanding how to begin:
So, I have a weighted linear regression model as follows where I have observations $X = (x_i, x_2....x_n)$ and the corresponding observations $Y = (y_1, y_2....y_n)$. The model of the relationship between $X$ and $Y$ is a weighted linear regression model and the distributional assumptions are as follows:
$$ y_i \sim \mathcal{N}(\beta^Tx_i, \frac{\sigma^2}{w_i}) $$ $$ \beta \sim \mathcal{N}(0, \Sigma_\beta) $$ $$ w_i \sim \mathcal{G}(a, b) $$
Here $\beta$ are the regression parameters and the model allows for unequal variances by having the response variables to have individual weights on the variance. My goal is to find the most likely linear relationship given by the parameters $\beta$.
So, I can now write the log-posterior as following:
$$ \log P(Y, \beta, w|X) = \sum_{i=1}^n \big(\log P(y_i|x_i, \beta, w_i) + \log P(w_i)\big) + log P(\beta) $$
Now, I have been trying to understand EM and am not sure that my understanding is yet complete but as I understand it, in order to start estimating the parameters, I start by taking the expectation of the log-posterior distribution $\log P(Y, \beta, w|X)$ with respect to the latent/hidden parameters which in my case are $\beta$ and $w$. So this required expected value will be:
$$ \int\int P(\beta, w | X) * \log P(Y, \beta, w | X) dw \;d\beta $$
However, I have no idea how to proceed from here to compute this expectation. Would greatly appreciate any suggestions on what the next step should be. I am not looking for someone to derive me all the necessary things but just a nudge in the right direction on what should I be looking to solve in the next steps.