All Projects → FRBNY-DSGE → SMC.jl

FRBNY-DSGE / SMC.jl

Licence: BSD-3-Clause license
Sequential Monte Carlo algorithm for approximation of posterior distributions.

Programming Languages

julia
2034 projects

Projects that are alternatives of or similar to SMC.jl

pyfilter
Particle filtering and sequential parameter inference in Python
Stars: ✭ 52 (-1.89%)
Mutual labels:  time-series, bayesian-inference, sequential-monte-carlo
BayesHMM
Full Bayesian Inference for Hidden Markov Models
Stars: ✭ 35 (-33.96%)
Mutual labels:  time-series, bayesian-inference, mcmc
Exoplanet
Fast & scalable MCMC for all your exoplanet needs!
Stars: ✭ 122 (+130.19%)
Mutual labels:  time-series, bayesian-inference, mcmc
MultiBUGS
Multi-core BUGS for fast Bayesian inference of large hierarchical models
Stars: ✭ 28 (-47.17%)
Mutual labels:  bayesian-inference, mcmc
walker
Bayesian Generalized Linear Models with Time-Varying Coefficients
Stars: ✭ 38 (-28.3%)
Mutual labels:  time-series, mcmc
microprediction
If you can measure it, consider it predicted
Stars: ✭ 158 (+198.11%)
Mutual labels:  time-series, online-algorithms
BeaData.jl
A Julia interface for retrieving data from the Bureau of Economic Analysis (BEA).
Stars: ✭ 17 (-67.92%)
Mutual labels:  economics, econometrics
priceR
Economics and Pricing in R
Stars: ✭ 32 (-39.62%)
Mutual labels:  economics, econometrics
LogDensityProblems.jl
A common framework for implementing and using log densities for inference.
Stars: ✭ 26 (-50.94%)
Mutual labels:  bayesian-inference, mcmc
DynamicHMCExamples.jl
Examples for Bayesian inference using DynamicHMC.jl and related packages.
Stars: ✭ 33 (-37.74%)
Mutual labels:  bayesian-inference, mcmc
pomp
R package for statistical inference using partially observed Markov processes
Stars: ✭ 88 (+66.04%)
Mutual labels:  time-series, sequential-monte-carlo
Bridge.jl
A statistical toolbox for diffusion processes and stochastic differential equations. Named after the Brownian Bridge.
Stars: ✭ 99 (+86.79%)
Mutual labels:  bayesian-inference, mcmc
webmc3
A web interface for exploring PyMC3 traces
Stars: ✭ 46 (-13.21%)
Mutual labels:  bayesian-inference, mcmc
anesthetic
Nested Sampling post-processing and plotting
Stars: ✭ 34 (-35.85%)
Mutual labels:  bayesian-inference, mcmc
blangSDK
Blang's software development kit
Stars: ✭ 21 (-60.38%)
Mutual labels:  bayesian-inference, mcmc
ose-course-data-science
course on data science for economists
Stars: ✭ 81 (+52.83%)
Mutual labels:  economics, econometrics
bacondecomp
Bacon-Goodman decomposition for differences-in-differences with variation in treatment timing.
Stars: ✭ 36 (-32.08%)
Mutual labels:  economics, econometrics
Birch
A probabilistic programming language that combines automatic differentiation, automatic marginalization, and automatic conditioning within Monte Carlo methods.
Stars: ✭ 80 (+50.94%)
Mutual labels:  bayesian-inference, sequential-monte-carlo
Econ-Data-Science
Articles/ Journals and Videos related to Economics📈 and Data Science 📊
Stars: ✭ 102 (+92.45%)
Mutual labels:  economics, econometrics
SCICoNE
Single-cell copy number calling and event history reconstruction.
Stars: ✭ 20 (-62.26%)
Mutual labels:  bayesian-inference, mcmc

SMC.jl

Build Status codecov

Sequential Monte Carlo

This package implements the Sequential Monte Carlo (SMC) sampling algorithm, an alternative to Metropolis Hastings Markov Chain Monte Carlo sampling for approximating posterior distributions. The SMC algorithm implemented here is based upon and extends Edward Herbst and Frank Schorfheide's paper "Sequential Monte Carlo Sampling for DSGE Models" and the code accompanying their book, Bayesian Estimation of DSGE Models. More information and the original MATLAB scripts from which this code was derived can be found at Frank Schorfheide's website.

Our implementation features an adaptive schedule and what we term generalized tempering for "online" estimation, as outlined in our recent paper, "Online Estimation of DSGE Models." For a broad overview of the algorithm, one may refer to the following Liberty Street Economics article.

Comments and suggestions are welcome, and best submitted as either an issue or a pull request. ☝️

Installation and Versioning

SMC.jl is a registered Julia package in the General registry, compatible with Julia v1.x. To install it, open your Julia REPL, type ] to enter the package manager, and run

pkg> add SMC

Usage

The package requires our auxiliary package, ModelConstructors.jl, which contains useful data structures for creating custom models (e.g. Parameter, State, Observable, Setting types).

For examples of how to set up a model in the form SMC can estimate, see scripts in the examples/ folder.

Precompilation

The SMC.jl package is not precompiled by default because when running code in parallel, we want to re-compile the copy of SMC.jl on each processor to guarantee the right version of the code is being used. If users do not anticipate using parallelism, then users ought to change the first line of src/SMC.jl from

isdefined(Base, :__precompile__) && __precompile__(false)

to

isdefined(Base, :__precompile__) && __precompile__(true)

Disclaimer

Copyright Federal Reserve Bank of New York. You may reproduce, use, modify, make derivative works of, and distribute and this code in whole or in part so long as you keep this notice in the documentation associated with any distributed works. Neither the name of the Federal Reserve Bank of New York (FRBNY) nor the names of any of the authors may be used to endorse or promote works derived from this code without prior written permission. Portions of the code attributed to third parties are subject to applicable third party licenses and rights. By your use of this code you accept this license and any applicable third party license.

THIS CODE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT ANY WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, EXCEPT TO THE EXTENT THAT THESE DISCLAIMERS ARE HELD TO BE LEGALLY INVALID. FRBNY IS NOT, UNDER ANY CIRCUMSTANCES, LIABLE TO YOU FOR DAMAGES OF ANY KIND ARISING OUT OF OR IN CONNECTION WITH USE OF OR INABILITY TO USE THE CODE, INCLUDING, BUT NOT LIMITED TO DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, PUNITIVE, SPECIAL OR EXEMPLARY DAMAGES, WHETHER BASED ON BREACH OF CONTRACT, BREACH OF WARRANTY, TORT OR OTHER LEGAL OR EQUITABLE THEORY, EVEN IF FRBNY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES OR LOSS AND REGARDLESS OF WHETHER SUCH DAMAGES OR LOSS IS FORESEEABLE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].