GHK algorithm

From testwiki
Revision as of 17:23, 2 January 2025 by imported>Citation bot (Altered journal. Added doi. | Use this bot. Report bugs. | Suggested by Dominic3203 | Category:Regression models | #UCB_Category 2/46)
(diff) ← Older revision | Latest revision (diff) | Newer revision β†’ (diff)
Jump to navigation Jump to search

Template:Short description

The GHK algorithm (Geweke, Hajivassiliou and Keane)[1] is an importance sampling method for simulating choice probabilities in the multivariate probit model. These simulated probabilities can be used to recover parameter estimates from the maximized likelihood equation using any one of the usual well known maximization methods (Newton's method, BFGS, etc.). Train[2] has well documented steps for implementing this algorithm for a multinomial probit model. What follows here will apply to the binary multivariate probit model.

Consider the case where one is attempting to evaluate the choice probability of Pr(𝐲𝐒|𝐗𝐒β,Σ) where 𝐲𝐒=(y1,...,yJ), (i=1,...,N) and where we can take j as choices and i as individuals or observations, 𝐗𝐒β is the mean and Σ is the covariance matrix of the model. The probability of observing choice 𝐲𝐒 is

Pr(𝐲𝐒|𝐗𝐒β,Σ)=AJA1fN(𝐲i*|𝐗𝐒β,Σ)dy1*dyJ*Pr(𝐲𝐒|𝐗𝐒β,Σ)=πŸ™y*AfN(𝐲i*|𝐗𝐒β,Σ)d𝐲i*

Where A=A1××AJ and,

Aj={(,0]yj=0(0,)yj=1

Unless J is small (less than or equal to 2) there is no closed form solution for the integrals defined above (some work has been done with J=3[3]). The alternative to evaluating these integrals closed form or by quadrature methods is to use simulation. GHK is a simulation method to simulate the probability above using importance sampling methods.

Evaluating Pr(𝐲𝐒|𝐗𝐒β,Σ)=πŸ™y*AfN(𝐲i*|𝐗𝐒β,Σ)d𝐲i* is simplified by recognizing that the latent data model y𝐒*=𝐗𝐒β+ϵ can be rewritten using a Cholesky factorization, Σ=CC. This gives y𝐒*=𝐗𝐒β+Cηi where the ηi terms are distributed N(0,𝐈).

Using this factorization and the fact that the ηi are distributed independently one can simulate draws from a truncated multivariate normal distribution using draws from a univariate random normal.

For example, if the region of truncation 𝐀 has lower and upper limits equal to [a,b] (including a,b = ±) then the task becomes

a<y1*<ba<y2*<ba<yJ*<b

Note: y𝐒*=𝐗𝐒β+Cηi, substituting:

a<x1β1+c11η1<ba<x2β2+c21η1+c22η2<ba<xJβJ+k=1JcJ,kηk<b

Rearranging above,

ax1β1c11<η1<bx1β1c11a(x2β2+c21η1)c22<η2<b(x2β2+c21η1)c22a(xJβJ+k=1J1cJ,k)cJ,J<ηk<b(xJβJ+k=1J1cJ,k)cJ,J

Now all one needs to do is iteratively draw from the truncated univariate normal distribution with the given bounds above. This can be done by the inverse CDF method and noting the truncated normal distribution is given by,

u=Φ(xμσ)Φ(aμσ)Φ(bμσ)Φ(aμσ)

Where u will be a number between 0 and 1 because the above is a CDF. This suggests to generate random draws from the truncated distribution one has to solve for x giving,

x=σF1(u*(F(β)F(α))+F(α))+μ

where α=aμσ and β=bμσ and F is the standard normal CDF. With such draws one can reconstruct the y𝐒* by its simplified equation using the Cholesky factorization. These draws will be conditional on the draws coming before and using properties of normals the product of the conditional PDFs will be the joint distribution of the y𝐒*,

q(y𝐒*|π—πŸβ,Σ)=q(y1*|π—πŸβ,Σ)q(y2*|y1*,π—πŸβ,Σ)q(yJ*|y1*,,yJ1*,π—πŸβ,Σ)

Where q() is the multivariate normal distribution.

Because yj* conditional on yk, k<j is restricted to the set A by the setup using the Cholesky factorization then we know that q() is a truncated multivariate normal. The distribution function of a truncated normal is,

ϕ(xμσ)σ(Φ(bμσ)Φ(aμσ))

Therefore, yj* has distribution,

q(y𝐒*|𝐗𝐒β,Σ)=1c11ϕ1(yj*x1βc11)(Φ1(bx1βc11)Φ1(ax1βc11))××1cJJϕJ(yJ*(xJβ+cJ1η1+cJ2η2++cJJ1ηJ1)cJJ)(ΦJ(b(xJβ+cJ1η1+cJ2η2++cJJ1ηJ1)cJJ)ΦJ(a(xJβ+cJ1η1+cJ2η2++cJJ1ηJ1cJJ))=j=1J1cjjϕj(yj*k=1k<jcjkηkcjj)j=1J(Φj(bk=1k<jcjkηkcjj)Φ(ak=1k<jcjkηkcjj))

where ϕj is the standard normal pdf for choice j.

Because yj|{yk<j*}*N(𝐗𝐒β+k=1k<jcjkηk,cjj2) the above standardization makes each term mean 0 variance 1.

Let the denominator j=1JΦj(bk=1k<jcjkηkcjj)Φ(ak=1k<jcjkηkcjj)=j=1Jljj and the numerator j=1J1cjjϕj(yj*k=1k<jcjkηkcjj)=fN(y𝐒*|𝐗𝐒β,Σ) where fN() is the multivariate normal PDF.

Going back to the original goal, to evaluate the

Pr(𝐲𝐒|𝐗𝐒β,Σ)=AjfN(𝐲i*|𝐗𝐒β,Σ)dyj*

Using importance sampling we can evaluate this integral,

Pr(𝐲𝐒|𝐗𝐒β,Σ)=AjfN(𝐲i*|𝐗𝐒β,Σ)dyj*=AjfN(𝐲i*|𝐗𝐒β,Σ)q(y𝐒*|𝐗𝐒β,Σ)q(y𝐒*|𝐗𝐒β,Σ)dyj*=AjfN(𝐲i*|𝐗𝐒β,Σ)fN(𝐲i*|𝐗𝐒β,Σ)j=1Jljjq(y𝐒*|𝐗𝐒β,Σ)dyj*=𝔼πͺ(j=1Jljj)

This is well approximated by 1Ss=1Sj=1Jljj.

References

Template:Reflist