You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+76-1Lines changed: 76 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,8 @@ For starters, check out some of our walk-through notebooks:
11
11
2.[Principled Bayesian workflow for cognitive models](docs/source/tutorial_notebooks/LCA_Model_Posterior_Estimation.ipynb)
12
12
3.[Posterior estimation for ODEs](docs/source/tutorial_notebooks/Linear_ODE_system.ipynb)
13
13
4.[Posterior estimation for SIR-like models](docs/source/tutorial_notebooks/Covid19_Initial_Posterior_Estimation.ipynb)
14
+
5.[Model comparison for cognitive models](docs/source/tutorial_notebooks/Model_Comparison_MPT.ipynb)
15
+
6.[Hierarchical model comparison for cognitive models](docs/source/tutorial_notebooks/Hierarchical_Model_Comparison_MPT.ipynb)
14
16
15
17
## Project Documentation
16
18
@@ -177,7 +179,76 @@ preprint</em>, available for free at: https://arxiv.org/abs/2112.08866
177
179
178
180
## Model Comparison
179
181
180
-
Example coming soon...
182
+
BayesFlow can not only be used for parameter estimation, but also to approximate Bayesian model comparison via posterior model probabilities or Bayes factors.
183
+
184
+
Let's extend the minimal example from before with a second model $M_2$ that we want to compare with our original model $M_1$:
Our approximator shows excellent calibration, with the calibration curve being closely aligned to the diagonal, an expected calibration error (ECE) near 0 and most predicted probabilities being certain of the model underlying a data set. We can further assess patterns of misclassification with a confusion matrix:
For the vast majority of simulated data sets, the generating model is correctly detected. With these diagnostic results backing us up, we can safely apply our trained network to empirical data.
250
+
251
+
BayesFlow is also able to conduct model comparison for hierarchical models. See this [tutorial notebook](docs/source/tutorial_notebooks/Hierarchical_Model_Comparison_MPT.ipynb) for an introduction to the associated workflow.
181
252
182
253
### References and Further Reading
183
254
@@ -190,6 +261,10 @@ doi:10.1109/TNNLS.2021.3124052 available for free at: https://arxiv.org/abs/2004
190
261
Bayesian Model Comparison. <em>ArXiv preprint</em>, available for free at:
191
262
https://arxiv.org/abs/2210.07278
192
263
264
+
- Elsemüller, L., Schnuerch, M., Bürkner, P. C., & Radev, S. T. (2023). A Deep
265
+
Learning Method for Comparing Bayesian Hierarchical Models. <em>ArXiv preprint</em>,
266
+
available for free at: https://arxiv.org/abs/2301.11873
0 commit comments