[Paper Review] Data aggregation can lead to biased inferences in Bayesian linear mixed models
This study demonstrates that data aggregation in Bayesian linear mixed models leads to biased Bayes factors when the sphericity assumption is violated or item-level variance is ignored. Using simulation-based calibration, the authors show that aggregated analyses produce overly liberal or conservative evidence, while non-aggregated models with full random effects structures yield unbiased inferences.
Bayesian linear mixed-effects models are increasingly being used in the cognitive sciences to perform null hypothesis tests, where a null hypothesis that an effect is zero is compared with an alternative hypothesis that the effect exists and is different from zero. While software tools for Bayes factor null hypothesis tests are easily accessible, how to specify the data and the model correctly is often not clear. In Bayesian approaches, many authors recommend data aggregation at the by-subject level and running Bayes factors on aggregated data. Here, we use simulation-based calibration for model inference to demonstrate that null hypothesis tests can yield biased Bayes factors, when computed from aggregated data. Specifically, when random slope variances differ (i.e., violated sphericity assumption), Bayes factors are too conservative for contrasts where the variance is small and they are too liberal for contrasts where the variance is large. Moreover, Bayes factors for by-subject aggregated data are biased (too liberal) when random item variance is present but ignored in the analysis. We also perform corresponding frequentist analyses (type I and II error probabilities) to illustrate that the same problems exist and are well known from frequentist tools. These problems can be circumvented by running Bayesian linear mixed-effects models on non-aggregated data such as on individual trials and by explicitly modeling the full random effects structure. Reproducible code is available from https://osf.io/mjf47/.
Motivation & Objective
- To investigate whether data aggregation in Bayesian linear mixed models leads to biased Bayes factor inference.
- To examine the impact of violating the sphericity assumption on Bayes factor reliability in aggregated data.
- To assess the effect of unmodeled item-level variance on Bayes factor accuracy in by-subject aggregated analyses.
- To compare the performance of aggregated versus non-aggregated Bayesian models in detecting true effects.
- To provide guidance on best practices for specifying random effects structures in Bayesian repeated measures designs.
Proposed method
- Conducted simulation-based calibration (SBC) to evaluate the reliability of posterior predictive p-values and Bayes factors.
- Simulated multiple experimental designs with varying random slope variances and item-level variance to test sphericity violations.
- Applied Bayesian linear mixed models (LMMs) and ANOVA using brms and BayesFactor packages on both aggregated and non-aggregated data.
- Used bridgesampling to compute Bayes factors for model comparison in hierarchical models.
- Evaluated bias in Bayes factors by comparing expected and observed posterior predictive p-values across conditions.
- Assessed model performance under different random effects structures, including full vs. reduced models.
Experimental results
Research questions
- RQ1Does aggregating data to the by-subject level lead to biased Bayes factor estimates in Bayesian linear mixed models?
- RQ2How does violation of the sphericity assumption affect the accuracy of Bayes factors in aggregated data analyses?
- RQ3What is the impact of unmodeled item-level variance on Bayes factor inference when data are aggregated?
- RQ4Can non-aggregated Bayesian models with full random effects structures eliminate bias in Bayes factor estimation?
- RQ5Under what conditions do Bayes factors remain unbiased even when using aggregated data?
Key findings
- Bayes factors become overly liberal for contrasts with large random slope variances and overly conservative for those with small variances when sphericity is violated.
- Aggregating data while ignoring item-level variance leads to biased Bayes factors that overestimate evidence for an effect.
- Non-aggregated models with full random effects structures (including both subject and item random slopes) significantly reduce or eliminate bias in Bayes factor estimation.
- Even with non-aggregated data, some bias persisted in BayesFactor package analyses when sphericity was violated, indicating limitations in default model specifications.
- The use of aggregated data in Bayesian ANOVA leads to systematically distorted evidence when the sphericity assumption is not met.
- Modeling both subject and item random effects explicitly in non-aggregated data is essential for unbiased inference in Bayesian repeated measures designs.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.