statsmodels.genmod.bayes_mixed_glm.BinomialBayesMixedGLM.fit_vb

BinomialBayesMixedGLM.fit_vb(mean=None, sd=None, fit_method='BFGS', minim_opts=None, verbose=False)

Fit a model using the variational Bayes mean field approximation.

Parameters:
  • mean (array-like) – Starting value for VB mean vector
  • sd (array-like) – Starting value for VB standard deviation vector
  • fit_method (string) – Algorithm for scipy.minimize
  • minim_opts (dict-like) – Options passed to scipy.minimize
  • verbose (bool) – If True, print the gradient norm to the screen each time it is calculated.

Notes

The goal is to find a factored Gaussian approximation q1*q2*… to the posterior distribution, approximately minimizing the KL divergence from the factored approximation to the actual posterior. The KL divergence, or ELBO function has the form

E* log p(y, fe, vcp, vc) - E* log q

where E* is expectation with respect to the product of qj.

References

Blei, Kucukelbir, McAuliffe (2017). Variational Inference: A review for Statisticians https://arxiv.org/pdf/1601.00670.pdf

© 2009–2012 Statsmodels Developers
© 2006–2008 Scipy Developers
© 2006 Jonathan E. Taylor
Licensed under the 3-clause BSD License.
http://www.statsmodels.org/stable/generated/statsmodels.genmod.bayes_mixed_glm.BinomialBayesMixedGLM.fit_vb.html