Giter VIP home page Giter VIP logo

mcmc-demo's People

Contributors

chi-feng avatar divijsharma18 avatar johannesbuchner avatar julianoks avatar kaleidoglobe-gh avatar linusseelinger avatar micahjsmith avatar michaelosthege avatar qacwnfq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mcmc-demo's Issues

Cholesky root

Hi, @chi-feng, i have a question:
We know equation log(det(A)) = 2*sum(log(vecdiag(R))) is true, where A be your matrix and R = root(A) be the Cholesky root of the matrix A, but in line 30 of Multivariate.js, we see this.logDet = this.covL.diagonal().map(Math.log).sum(); , no need to multiply a constant 2 here?
Thanks.

new development

Hi, @chi-feng, thanks for this insightful demo, it helps me a lot for understanding MCMC.
There is a related and interesting paper using Stein's method to approximate a target distribution, would it possible to rewrite it in js for online demo?

Question about the histograms

Hi, I was trying the RadFriends-NS algorithm on the multimodal distribution. I find that after some time, it seems that no new samples are drawn (at least at the two lower peaks), but still the histograms are rapidly changing. Is this a bug or am I missing something here?

implement funnel distribution

If it's easy to add new distributions, it'd be nice to have Neal's funnel, even if only in 2D. The density is given by

a ~ normal(0, 3)
b ~ normal(0, exp(a / 2))

where the normal is taking a scale parameter (std deviation). The funnel is originally described in this paper:

  • Neal, Radford M. 2003. Slice Sampling. Annals of Statistics 31 (3): 705โ€“67.

P.S. Thanks for producing this---I direct people to the app all the time.

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.