Hostname: page-component-6766d58669-vgfm9 Total loading time: 0 Render date: 2026-05-14T19:56:42.845Z Has data issue: false hasContentIssue false

Bayesian estimation in multiple comparisons

Published online by Cambridge University Press:  26 June 2025

Guilherme D. Garcia*
Affiliation:
Département de langues, linguistique et traduction, Université Laval, Québec, QC, Canada Centre for Research on Brain, Language and Music (CRBLM), Montréal, QC, Canada
Rights & Permissions [Opens in a new window]

Abstract

Traditional regression models typically estimate parameters for a factor F by designating one level as a reference (intercept) and calculating slopes for other levels of F. While this approach often aligns with our research question(s), it limits direct comparisons between all pairs of levels within F and requires additional procedures for generating these comparisons. Moreover, Frequentist methods often rely on corrections (e.g., Bonferroni or Tukey), which can reduce statistical power and inflate uncertainty by mechanically widening confidence intervals. This paper demonstrates how Bayesian hierarchical models provide a robust framework for parameter estimation in the context of multiple comparisons. By leveraging entire posterior distributions, these models produce estimates for all pairwise comparisons without requiring post hoc adjustments. The hierarchical structure, combined with the use of priors, naturally incorporates shrinkage, pulling extreme estimates toward the overall mean. This regularization improves the stability and reliability of estimates, particularly in the presence of sparse or noisy data, and leads to more conservative comparisons. Bayesian models also offer a flexible framework for addressing heteroscedasticity by directly modeling variance structures and incorporating them into the posterior distribution. The result is a coherent approach to exploring differences between levels of F, where parameter estimates reflect the full uncertainty of the data.

Information

Type
Methods Forum
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (http://creativecommons.org/licenses/by/4.0), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2025. Published by Cambridge University Press
Figure 0

Table 1. Sample of our dataset

Figure 1

Table 2. Number of observations per condition (cond), means, variances, and standard deviations of responses (resp)

Figure 2

Figure 1. Overall patterns in the data: box plots and associated means (dots in boxes) and standard errors (not visible).

Figure 3

Figure 2. Estimate comparison across three models ($ x $-axis). Standard errors (horizontal lines) and 95% confidence intervals (vertical lines) are also shown for each estimate. The dashed line represents the average across all conditions (panels on top).

Figure 4

Figure 3. Illustrative example of the joint posterior distribution of two parameters in a regression model.

Figure 5

Figure 4. Posterior distributions from hierarchical model with associated 95% HDIs. Region of practical equivalence is represented by shaded area around zero.

Figure 6

Table 3. Simplified output of the hypothesis() function from brms

Figure 7

Figure 5. A complete figure containing posterior distributions of multiple comparisons using our hierarchical model. Posterior distributions from a nonhierarchical model (analogous to LM in Figure 2) are shown with dark gray borders.

Figure 8

Figure 6. Overall patterns in the data: box plots and associated means (orange dots) and standard errors (not visible). Notice the variance of the c4 condition.

Figure 9

Figure 7. Multiple comparisons from a model where sigma is also estimated (black). Notice the different HDIs in comparisons involving c4 relative to a model where sigma is not estimated (orange).