Skip to main content
QUICK REVIEW

[Paper Review] Statistical details of the default priors in the Bambi library

Jacob Westfall|arXiv (Cornell University)|Feb 3, 2017
Algorithms and Data CompressionComputer Science2 references14 citations
TL;DR

This paper details the statistical foundation of default weakly informative priors in the Bambi Python library for Bayesian generalized linear mixed models. It proposes setting independent Normal priors on regression slopes with variances derived from implied partial correlation standard deviations, enabling scale-invariant, interpretable priors that adapt to data structure while maintaining computational simplicity and robustness.

ABSTRACT

This is a companion paper to Yarkoni and Westfall (2017), which describes the Python package Bambi for estimating Bayesian generalized linear mixed models using a simple interface. Here I give the statistical details underlying the default, weakly informative priors used in all models when the user does not specify the priors. Our approach is to first deduce what the variances of the slopes would be if we were instead to have defined the priors on the partial correlation scale, and then to set independent Normal priors on the slopes with variances equal to these implied variances. Our approach is similar in spirit to that of Zellner's g-prior (Zellner 1986), in that it involves a multivariate normal prior on the regression slopes, with a tuning parameter to control the width or informativeness of the priors irrespective of the scales of the data and predictors. The primary differences are that here the tuning parameter is directly interpretable as the standard deviation of the distribution of plausible partial correlations, and that this tuning parameter can have different values for different coefficients. The default priors for the intercepts and random effects are ultimately based on the prior slope variances.

Motivation & Objective

  • To provide a principled, interpretable default prior specification for Bayesian generalized linear mixed models in the Bambi library.
  • To ensure prior informativeness is independent of predictor scaling by anchoring priors to partial correlation standard deviations.
  • To extend the g-prior framework with coefficient-specific tuning parameters for greater flexibility.
  • To support robust inference in small-sample or high-dimensional settings through weakly informative priors.
  • To enable users to easily apply principled priors without expert prior knowledge.

Proposed method

  • Derive implied variances for regression slopes by translating desired partial correlation standard deviations into multivariate normal prior variances.
  • Apply independent Normal priors to each regression slope with variances set to the derived implied variances.
  • Use a tuning parameter per coefficient representing the standard deviation of plausible partial correlations, enabling coefficient-specific informativeness.
  • Base intercept and random effects priors on the same variance structure derived from slope priors.
  • Ensure prior scale invariance by anchoring prior width to partial correlation effect sizes rather than raw regression coefficients.
  • Implement the framework in the Bambi library to automatically apply these priors when users do not specify custom priors.

Experimental results

Research questions

  • RQ1How can default priors in Bayesian regression be made both interpretable and robust to predictor scaling?
  • RQ2What is the statistical relationship between partial correlation standard deviations and the variances of regression slope priors?
  • RQ3How can the g-prior framework be extended to allow coefficient-specific informativeness?
  • RQ4What is the impact of using partial correlation-based priors on model convergence and posterior inference in mixed models?
  • RQ5How can weakly informative priors be automatically applied in a user-friendly Bayesian modeling library?

Key findings

  • The default priors in Bambi are derived from a desired standard deviation of plausible partial correlations, which is directly interpretable and scale-invariant.
  • Variance of each slope prior is set to the square of the partial correlation standard deviation, ensuring consistent prior informativeness across different predictor scales.
  • The method allows different coefficients to have different levels of prior informativeness through coefficient-specific tuning parameters.
  • The approach generalizes Zellner's g-prior by making the tuning parameter interpretable as a partial correlation standard deviation.
  • Intercept and random effects priors are implicitly determined by the same variance structure used for fixed effects, ensuring coherence across model components.
  • The framework enables robust, automatic prior specification in Bambi without requiring user expertise in prior selection.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.