I submitted this question to answer it myself, since I recently updated my Bayesian inference repository on GitHub with a function called BayesianLinearRegression
that does just this. I wrote a general introduction to its functionalities on the Wolfram Community and Wolfram Blog and the example notebook on GitHub shows some more advanced uses of the function. I also submitted the function to the Wolfram function repository and you can use this version simply by evaluating:
Update link to point to a release tag instead (so future updates can't break the examples).
Sjoerd Smit
- 24.8k
- 48
- 80