Git Product home page Git Product logo

alanlujan91 / estimagic Goto Github PK

View Code? Open in Web Editor NEW

This project forked from opensourceeconomics/optimagic

0.0 0.0 0.0 26.63 MB

Estimagic is a Python package for nonlinear optimization with or without constraints. It is particularly suited to solve difficult nonlinear estimation problems. On top, it provides functionality to perform statistical inference on estimated parameters.

Home Page: https://estimagic.readthedocs.io/

License: MIT License

Python 99.97% CSS 0.01% HTML 0.02%

estimagic's Introduction

estimagic

image image image image image image image image image image image image

Introduction

estimagic is a Python package for nonlinear optimization with or without constraints. It is particularly suited to solve difficult nonlinear estimation problems. On top, it provides functionality to perform statistical inference on estimated parameters.

Optimization

  • estimagic wraps algorithms from scipy.optimize, nlopt, pygmo and more.
  • estimagic implements constraints efficiently via reparametrization, so you can solve constrained problems with any optimzer that supports bounds.
  • The parameters of an optimization problem can be arbitrary pytrees
  • The complete history of parameters and function evaluations can be saved in a database for maximum reproducibility.
  • Painless and efficient multistart optimization.
  • The progress of the optimization is displayed in real time via an interactive dashboard.

Estimation and Inference

  • You can estimate a model using method of simulated moments (MSM), calculate standard errors and do sensitivity analysis with just one function call.
  • Asymptotic standard errors for maximum likelihood estimation.
  • estimagic also provides bootstrap confidence intervals and standard errors. Of course the bootstrap procedures are parallelized.

Numerical differentiation

  • estimagic can calculate precise numerical derivatives using Richardson extrapolations.
  • Function evaluations needed for numerical derivatives can be done in parallel with pre-implemented or user provided batch evaluators.

Installation

The package can be installed via conda. To do so, type the following commands in a terminal:

$ conda config --add channels conda-forge
$ conda install estimagic

The first line adds conda-forge to your conda channels. This is necessary for conda to find all dependencies of estimagic. The second line installs estimagic and its dependencies.

Installing optional dependencies

Only scipy is a mandatory dependency of estimagic. Other algorithms become available if you install more packages. We make this optional because most of the time you will use at least one additional package, but only very rarely will you need all of them.

For an overview of all optimizers and the packages you need to install to enable them see {ref}list_of_algorithms.

To enable all algorithms at once, do the following:

conda install nlopt

pip install Py-BOBYQA

pip install DFO-LS

conda install petsc4py (Not available on Windows)

conda install cyipopt

conda install pygmo

pip install fides>=0.7.4 (Make sure you have at least 0.7.1)

Documentation

The documentation is hosted (on rtd)

Citation

If you use Estimagic for your research, please do not forget to cite it.

@Unpublished{Gabler2022,
  Title  = {A Python Tool for the Estimation of large scale scientific models.},
  Author = {Janos Gabler},
  Year   = {2022},
  Url    = {https://github.com/OpenSourceEconomics/estimagic}
}

estimagic's People

Contributors

aidatak97 avatar amageh avatar asouther4 avatar baharcos avatar christianzimpelmann avatar hmgaudecker avatar jacekb95 avatar janosg avatar lindamaok899 avatar loikein avatar luiscald avatar maxblesch avatar mchandra12 avatar mo2561057 avatar mpetrosian avatar pre-commit-ci[bot] avatar roecla avatar segsell avatar sidd3888 avatar sofiabadini avatar sofyaakimova avatar timmens avatar tobiasraabe avatar vgangaprasad avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.