Closed reubenharry closed 1 year ago
This is great - I am writing up an example of PMMH independent of monad-bayes - I've put notes in pdf form here:
The code is here:
I've also used Stan to infer the parameters albeit for a slightly(?) different model (one that is fully deterministic once you know the parameters). This is included in the pdf above and in the git repo.
This looks great. Looking forward to the PR. I can iterate through it.
Thanks for those notes! One of the more time-intensive parts of the docs that I haven't yet done is to have a worked through example of PMMH, so I may use your notes as reference material for writing that.
@reubenharry I don't know how much mathematical detail you want to put in the docs. I think the Stan documentation is great but even that does not try to explain Hamiltonian Monte Carlo. Ah but it does here: https://mc-stan.org/docs/2_29/reference-manual/hamiltonian-monte-carlo.html although not particularly rigorously or in great detail. Anyway I am nowhere near finished explaining HMC let alone how one can use it to approximate the posterior (log) likelihood for use in MCMC (or even HMC). You can see what you think when I have finished. I am attempting to make it accessible to a widish audience while still remaining mathematically unsullied :-)
I'm definitely very in favour of mathematical detail as long as it's presented in a way that doesn't obscure the high level picture. My thinking (somewhat influenced by https://documentation.divio.com/) was that we could divide the various documentation-like things into:
@idontgetoutmuch The one last thing I'd like to do here is to have a link on hackage to the website or the github repo, so that it's clear that's the place to go for a readme. I'm not experienced with Haddocks - do you know where I'd put that info so it appears on the front page of the docs on hackage?
How does this look? https://hackage.haskell.org/package/monad-bayes-1.1.0/candidate
Perfect! (There's only quotation mark that I think is a typo)
The broad goal is to make monad-bayes accessible to anyone with a beginner understanding of Haskell and a beginner understanding of Bayesian inference. That will require clear tutorials with simple working examples.