Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2025 Jan:71:101489.
doi: 10.1016/j.dcn.2024.101489. Epub 2024 Dec 17.

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

Affiliations

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

Eduard T Klapwijk et al. Dev Cogn Neurosci. 2025 Jan.

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.

PubMed Disclaimer

Conflict of interest statement

Declaration of Competing Interest The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

Figures

Fig. 1
Fig. 1
Estimates of task effects for five different sample sizes (starting with N=20, then 1/5th parts of the total dataset). For each sample size 10 randomly chosen HDCI’s out of the 1000 HDCI’s computed are displayed (in light blue). The average estimate with credible interval summarizing the 1000 HDCI’s for each sample size are plotted in reddish purple. DLPFC = dorsolateral prefrontal cortex; mPFC = medial prefrontal cortex; NAcc = nucleus accumbens.
Fig. 2
Fig. 2
For each task, for five different sample sizes (starting with n=20, then 1/5th parts of the total dataset), the proportion of intervals not containing the value 0 is plotted in reddish purple.
Fig. 3
Fig. 3
Estimates of Pearson’s correlation between age and the task effect for five different sample sizes (starting with N=20, then 1/5th parts of the total dataset). For each sample size 10 randomly chosen HDCI’s out of the 1000 HDCI’s computed are displayed (in green). The average estimate with credible interval summarizing the 1000 HDCI’s for each sample size are plotted in orange. DLPFC = dorsolateral prefrontal cortex; mPFC = medial prefrontal cortex; NAcc = nucleus accumbens. Age is modeled as linearly increasing or decreasing.
Fig. 4
Fig. 4
For each task, for five different sample sizes (starting with N=20, then 1/5th parts of the total dataset), the proportion of intervals not containing the value 0 is plotted inorange. Age is modeled as linearly increasing or decreasing.
None
None
None

References

    1. Achterberg Michelle, van der Meulen Mara. Genetic and environmental influences on MRI scan quantity and quality. Dev. Cogn. Neurosci. 2019;38(August) doi: 10.1016/j.dcn.2019.100667. - DOI - PMC - PubMed
    1. Baker D.H., Vilidaite G., Lygo F.A., Smith A.K., Flack T.R., Gouws A.D., Andrews T.J. Power contours: optimising sample size and precision in experimental psychology and human neuroscience. Psychol. Methods. 2021;26(3):295. doi: 10.1037/met0000337. - DOI - PMC - PubMed
    1. Bennett Craig M., Miller Michael B. fMRI reliability: influences of task and experimental design. Cogn., Affect., Behav. Neurosci. 2013;13(4):690–702. doi: 10.3758/s13415-013-0195-1. - DOI - PubMed
    1. Bishop Dorothy. Rein in the four horsemen of irreproducibility. Nature. 2019;568(7753) doi: 10.1038/d41586-019-01307-2. - DOI - PubMed
    1. Braams Barbara R., Peters Sabine, Peper Jiska S., Güroğlu Berna, Crone Eveline A. Gambling for self, friends, and antagonists: differential contributions of affective and social brain regions on adolescent reward processing. NeuroImage. 2014;100(October):281–289. doi: 10.1016/j.neuroimage.2014.06.020. - DOI - PubMed

Publication types

LinkOut - more resources