1
$\begingroup$

I have $X_i|b_i \sim Poisson(\lambda_i)$, and $log(\lambda_i)=x_i^t\beta+\varepsilon_i$ further $\varepsilon\sim N(0,\sigma^2)$

then, how to find $E(X_i)$?

I try using the iterated expectation $E(X_i)=E[E(X_i|b_i)]$, so $E(X_i)=E(\lambda_i)$ but how to use $log(\lambda)$ to find the solution?

thanks.

  • 0
    What is the $x_i^t$ in your equation for $\log(\lambda_i)?$ A constant unrelated to $X_i$?2017-02-20
  • 0
    linear model $x^t_i \beta +\varepsilon$2017-02-20
  • 0
    so the $x_i$ is unrelated to the $X_i$? Why not call $X_i$ something different?2017-02-20
  • 0
    Is different $x_i$ and $X_i$2017-02-20

1 Answers 1

0

Your iterated expectations strategy looks good.

We have $\lambda_i = Ce^{\epsilon_i}$ where $C=e^{x_i^t\beta}$ so can take the expected value $$E(\lambda_i) = CE(e^{\epsilon_i})=C\int_{-\infty}^\infty e^t \frac{1}{\sqrt{2\pi\sigma^2}}e^{-\frac{t^2}{2\sigma^2}}dt $$ since $\epsilon_i\sim N(0,\sigma^2).$ The integral is a Gaussian integral and can be done by completing the square.

  • 0
    Why does the expected value have that form? That is, why f (x)=N(0,1)2017-02-20
  • 1
    @albert I'm using the fact that $\epsilon_i \sim N(0,\sigma^2).$ Since $\lambda_i =e^{x_i^t\beta}e^{\epsilon_i},$ we have$E(\lambda_i) = e^{x_i^t\beta}E(e^{\epsilon_i}).$ So you need to compute $E(e^Z)$ where $Z\sim N(0,\sigma^2)$ which is $\int e^z f_Z(z)dz$ where $f_Z(z)$ is the PDF for a $N(0,\sigma^2)$.2017-02-20