A repository of some simple Matlab / Octave code which executes Bayesian inference
The first code here (Matlab only) accompanies this blog post:-
https://samplingdistribution.blogspot.com/2023/04/using-bayesian-inference-to-predict.html
The name of the Matlab version only file is numerical_bayes_fish.m
The version which runs under either Octave or Matlab is numerical_bayes_fish_oct.m
The Octave compatible version calls the bespoke freestanding function gfxn.m
The Octave compatible version has more detailed commenting than the Matlab only file.
However this code implements a model which has a couple of features that are really naff,
and so an improved version of the model has been created.
The revised version of the model relates to this accompanying blog post:-
https://samplingdistribution.blogspot.com/2023/04/fixing-really-ugly-model-post-script-to.html
The new code runs under either Octave or Matlab and is called Bayes_fish_oct_new.m
alan-pickering / bayesian_inference Goto Github PK
View Code? Open in Web Editor NEWA repository of some simple matlab code which executes Bayesian inference