Sample size estimation for task-related functional MRI studies using Bayesian updating

Dev Cogn Neurosci. 2025 Jan:71:101489. doi: 10.1016/j.dcn.2024.101489. Epub 2024 Dec 17.

Abstract

Task-related functional MRI (fMRI) studies need to be properly powered with an adequate sample size to reliably detect effects of interest. But for most fMRI studies, it is not straightforward to determine a proper sample size using power calculations based on published effect sizes. Here, we present an alternative approach of sample size estimation with empirical Bayesian updating. First, this method provides an estimate of the required sample size using existing data from a similar task and similar region of interest. Using this estimate researchers can plan their research project, and report empirically determined sample size estimations in their research proposal or pre-registration. Second, researchers can expand the sample size estimations with new data. We illustrate this approach using four existing fMRI data sets where Cohen's d is the effect size of interest for the hemodynamic response in the task condition of interest versus a control condition, and where a Pearson correlation between task effect and age is the covariate of interest. We show that sample sizes to reliably detect effects differ between various tasks and regions of interest. We provide an R package to allow researchers to use Bayesian updating with other task-related fMRI studies.

Keywords: Bayesian updating; Effect size; Power analysis; R package; Region of interest; Sample sizes.

MeSH terms

  • Adult
  • Bayes Theorem*
  • Brain / diagnostic imaging
  • Brain / physiology
  • Brain Mapping / methods
  • Female
  • Humans
  • Magnetic Resonance Imaging* / methods
  • Male
  • Sample Size