Giter VIP home page Giter VIP logo

abc_g-and-k's Introduction

ABC-MCMC for g-and-k distributions

A MATLAB example of approximate Bayesian computation (ABC) MCMC algorithm to estimate parameters of a g-and-k distribution. See also my slides http://goo.gl/ypAOjs

We implement the example in Allingham et al 2009, except that we use our own custom summary statistics (see gk_summaries) and use a Gaussian kernel to compare summary statistics for simulated and actual data.

Content:

  • gk_run, the script running the example
  • gk_summaries, defines the summary statistics
  • gk_ prior, defines the prior distributions for the parameters to be estimated
  • gk_modelsimulate, produces a realization from the g-and-k distribution
  • abcmcmc, the ABC-MCMC algorithm. Uses a Gaussian kernel to compare summary statistics for simulated and actual data. Parameters are proposed using the (on-line) adaptive Gaussian Metropolis random walk of Haario et al. 2001.
  • cov_update, on-line covariance matrix update for the adaptive MCMC
  • param_mask, param_unmask, utilities that extract free parameters from the vector of complete parameters and insert them back in the compete vector of parameters.

References

  • Allingham, King and Mengersen 2009, "Bayesian estimation of quantile distributions", Stat Comput 19.
  • Haario, Saksman and Tamminen 2001, "An adaptive Metropolis algorithm", Bernoulli Volume 7, 223-242.

abc_g-and-k's People

Contributors

umbertopicchini avatar

Watchers

 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.