probably-baysig
probably-baysig copied to clipboard
Model of baysig language in Haskell (minus estimate)
there is code for detercting burn-in and effective sample size (ESS). Code for ESS needs to be checked by someone more capable than me.
It would be cool if all the function that require a gradient-calculation function on their input, e.g., the BFGS routine, had variants that took just the function whole gradient is...
In particular, a Summary of the AD work can be found in ad-experiments/README.md and ad-experiments/Example.hs.
if we modify the type of runChain such that the posterior function has type Vector Double -> Vector Int -> Double (but the gradient has the same type, or maybe...
using whatever plot library you like, ad for graident if necessary.
we need a sampler and PDF of the Inverse-Wishart distribution to have a good prior for covariance matrices
``` interleave :: Strategy a -> Strategy b -> Strategy (a,b) interleave (GStrategy a b) (VStrategy c d) = GStrategy ? ? interleave (VStrategy a b) (VStrategy c d) =...
port MALA code from probably/Math.Probably.MALA (or make it up from scratch) to probably-baysig. Need to check this is a correct MALA. I had to guess my way a bit when...
Right now the initial value is a single sample from the prior. We need to check that posterior values are not NaN and do a greedy optimisation.