1
$\begingroup$

I am currently working on generalized linear mixed models (GLMM) and need some help concerning the prediction of the random effects. More specifically, I don't understand the given representation of the conditional expectation of the random effect, i.e. $$ \mathbb{E}[X | Y] = \int f_{X|Y} (x|y)\: dx = \int \frac{f_{Y|X}(y|x)f_{X}(x)}{\int f_{Y|X}(y|x)f_{X}(x)dx} dx$$(the second equation being the one I don't understand)

This is the representation in general. In a one way classification, $X$ would be the random effect, $Y$ the response group (vector) for the random effect.
Found in several papers and books of McCulloch et al.

$\endgroup$

1 Answer 1

1
$\begingroup$

This has nothing to do with GLMM's per se. All what is done here is using the definition $$f_{Y|X}(y|x):=\frac{f_{X,Y}(x,y)}{f_X(x)}$$ (if $f_X(x)\ne0$) to write $$f_{Y|X}(y|x)f_X(x)=f_{X,Y}(x,y),$$ so that
$$\int f_{Y|X}(y|x)f_X(x)\,dx=\int f_{X,Y}(x,y)\,dx=f_Y(y)$$ and hence $$\frac{f_{Y|X}(y|x)f_{X}(x)}{\int f_{Y|X}(y|x)f_{X}(x)\,dx} =\frac{f_{X,Y}(x,y)}{f_Y(y)} =f_{X|Y} (x|y).$$

$\endgroup$
1
  • $\begingroup$ I know it does not, nevertheless I wanted to give some context to the question. Thank you for the derivation! $\endgroup$ Commented Mar 7, 2020 at 10:41

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.