I would like to integrate a function with a random effect.
The function is :
G(t;β)=exp(−λtγexp(βZ)),
β being the random effect taken from a normal distribution of mean 0 and variance σ.
The solution would be to make a double integration, first on t and then over the distribution of the random effect.
But, I don't know ho to do in practice ! I am ready to use Monte-Carlo integration, I just need to calculate the area under the curve.
Any suggestion ?
Thanks a lot !
Answer
Define K:=λexpβZ so G=exp−Ktγ and ∫∞0Gdt=1γΓ(1γ)K−1/γ. Next integrate out the β dependence, viz. ∫R1σ√2πexp(−β22σ2−Zγβ)⋅1γΓ(1γ)λ−1/γdβ=1γΓ(1γ)λ−1/γexp(Zσ)22γ2.
No comments:
Post a Comment