Skip to content

ehudkr/gmm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gmm: Generalized Method of Moments Estimation

Solves problems defined as solutions to moment conditions / estimating equations $E[g(\theta; Z)] = 0$ for some function $g(\theta; Z)$ of the data $Z$. Common examples include $g(\theta) = X(y - X\theta)$ for OLS and $g(\theta) = z(y - X\theta)$ for IV.

Supports both scipy.optimize.minimize and pytorch.minimize to solve the GMM for just- and over-identified problems (with Identity or Optimal weight matrix) and computes HAC-robust standard errors. See OLS and IV examples in example.ipynb.

image

The scipy optimizer uses an analytic expression for the jacobian of linear moment conditions, while the pytorch.minimize version uses forward-mode autodiff and therefore supports both linear and non-linear moment conditions.

Todo

  • Support numerical optimization via pytorch-minimize
  • Support Empirical Likelihood and Generalized Empirical Likelihood
  • Support Bayesian Bootstrap with exponential(1) weights for inference

About

Generalized Method of Moments estimation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 76.4%
  • Python 23.6%