Git Product home page Git Product logo

selectstatisticsabc.jl's Introduction

Instructions for replicating the results in  "On Selection of Statistics for Approximate Bayesian Computing (or the Method of Simulated Moments)", Michael Creel and Dennis Kristensen, 2015, Computational Statistics & Data Analysis, http://dx.doi.org/10.1016/j.csda.2015.05.005

Note: I recommend the methods presented in https://github.com/mcreel/NeuralNetsForIndirectInference.jl over the ones presented here. Those methods smoothly weight statistics, rather that selecting statistics. That option is simpler, faster, and has better performance, in my experience.

This is updated code,  which can use either local constant or local linear kernel regression. The default is local constant, for speed. To obtain the exact code used in the paper, checkout version 1.0 of  this repository.

files:
make_simdata.jl: used to make data files for the linear regression
                 example
Select.jl:       the selection program, serial version
Select_mpi.jl:   the selection program, parallel version
SelectionAlgorithm.jl: the main algorithm: the objective
                function, the simulated annealing algorithm, and
                the K nearest neighbors smoother for computing 
                the ABC estimator.

To create the data for the linear regression example by
typing, at the Julia prompt
     include("make_simdata.jl")

To perform selection of statistics:

The file Select.jl computes one replication of the
selection algorithm, using the simdata.30 data set.
Run this by typing the following line, at the Julia prompt
     include("Select.jl")

To perform selection in parallel, Select_mpi.jl
performs 100 replications of the method, again using
the simdata.30 data set. To run this, execute
    mpirun -np X julia Select_mpi.jl
from the system prompt. X should be less than the
total compute cores, and should be an even divisor
of 100.

Analyze.m is a GNU Octave script that analyzes the
results of multiple runs, picking out the best set of
statistics, and giving other information.
Use it via "octave --eval Analyze"

To repeat this for the sample size n=100, edit
make_simdata.jl appropriately, then repeat
the above instructions.

To perform selection for the jump-diffusion model,
please contact me for the data set.

For any doubts, please write [email protected]     

selectstatisticsabc.jl's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

selectstatisticsabc.jl's Issues

Some errors when running under V5.0

Hi, Michael:
Nice program. However, when I try to run the code under Julia V5.0, some errors emerged,say
In SelectionAlgorithm.jl line 20 , you define
neighbors = 100. # a float type
That cause a "Invalid Index" error
and

image

among others

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.