Bayes factors and competing hypotheses#

The question and the claim#

A Bayes factor compares marginal likelihoods under specified models and parameter priors. Posterior model odds additionally require prior model odds. Evidence for a point null is different from demonstrating practical equivalence.

What you should be able to do#

  • Specify the scientific target and the observations needed to address it.

  • Plot prior sensitivity and identify when evidence is inconclusive. Separate BF10, BF01, and posterior model probability.

  • Explain the assumptions, uncertainty, and limits of your conclusion.

Worked investigation#

Compute an analytic Bayes factor for a normal mean with known sampling standard error and vary the proper alternative-prior scale. The worked notebook is self-contained and uses documented teaching data. Its output is evidence about that example, not a finding about a human population.

Challenge the result#

A uniform prior does not make parameter priors irrelevant. Its range affects the marginal likelihood; improper priors generally do not define ordinary Bayes factors. Before running an analysis, predict what this failure would change. After running it, distinguish a software check from a scientific justification.

Practice and verification#

Complete the exercise, then discuss the interpretation questions. Submit a runnable notebook, your assumptions, and a short evidence-based interpretation. The shared analysis workflow defines the reporting and assessment standard.

For AI assistance, first write your own target and expected behavior. Use generated suggestions as candidates, inspect the code or claims, and retain evidence of the checks you performed. The AI analysis guide includes a saved-output activity that requires no account or paid service.

Connection across lessons#

Contrast tail probabilities with model-relative evidence, then evaluate how either approach can miss errors.

Earlier lecture resources#

The recordings and slides below are retained from the earlier course edition and have not been revised. Use the written chapter, revised notebook, and exercise for current definitions and procedures; earlier examples may conflict with the corrections described here.

Required readings#

Wagenmakers, E. J. (2007). A practical solution to the pervasive problems of p values. Psychonomic bulletin & review, 14(5), 779-804.

Lecture (Video)#

Bayes factor

Slides (PDF)#

Bayes factor