Integrating with a non-analytical solution (random effects)

42 Views Asked by At

I would like to integrate a function with two random effects, implying three successive integrations. My problem is that after the first integration, it is not possible to obtain an analytical solution for the second integration, making impossible the third integration, even numerically (Monte-Carlo integration). What can I do ? I desperatly need a solution !

The function I need to integrate is $G(t; \beta_1, \beta_2)$ (below) first on $t$ between $[0;t^*]$, $t^*$ being a pre-specified constant such as $t^*>0$. We then need to integrate the expression we have obtained twice on $\Bbb R$: first, on the distribution of $\beta_1$ and secondly, on the distribution of $\beta_2$.

In practice :

$G(t; \beta_1, \beta_2) = \exp(- \lambda t^\gamma \exp(\beta_1 +\beta_2 Z))$,

The $\beta$'s are the random effects taken from normal distributions of mean 0 and variance $\sigma$, and mean $\mu$ and variance $\nu$, respectively.

The first integral is :

$\int_0^{t^*} G \ dt=\left[\frac{1}{\gamma}\Gamma\left(\frac{1}{\gamma}, \lambda\exp\beta Z t^\gamma \right)(\lambda\exp\beta Z)^{-1/\gamma}\right]_0^{t^*}$

Then, I need to integrate it twice over the two normal distributions of the $\beta$'s.

Which numerical algorithm may I use to obtain the area under the curve of $G(t; \beta_1, \beta_2)$, knowing we have specific values for $t^*$, $\lambda$, $\gamma$, $\sigma$, $\mu$ and $\nu$ ?

Thanks for any help !

1

There are 1 best solutions below

2
On BEST ANSWER

There may be algorithms for nD integration that are more efficient, but you can integrate a 2D or 3D function numerically using Simpson's rule.

Suppose you want $$I = \int_a^b\int_{c(x)}^{d(x)}\int_{e(x,y)}^{f(x,y)}g(x,y,z)dzdydx$$

Well, if you regard $$\int_{c(x)}^{d(x)}\int_{e(x,y)}^{f(x,y)}g(x,y,z)dzdy$$ as a function $h(x)$, then to find $I$, you can use Simpson't rule to integrate $h(x)$ from $a$ to $b$. Simpson's rule requires you to evaluate $h(x)$, which is an integral - but you can evaluate the integral using Simpson's rule in the same way.

Note that the time this needs blows up exponentially with the number of dimensions.