Skip to main content
Scientific Reports logoLink to Scientific Reports
. 2026 Mar 22;16:14502. doi: 10.1038/s41598-026-44126-y

Variance-calibrated cross-individual bootstrapping for small-sample neuroscience

Ismail Uyanik 1,✉
PMCID: PMC13149521  PMID: 41866588

Abstract

Small sample sizes are a pervasive limitation in experimental neuroscience and related biological fields, frequently compromising statistical power and the reliability of inference. Conventional resampling techniques, such as stratified or hierarchical bootstrapping, often fail to balance coverage accuracy with interval precision, particularly when data are skewed or violate strict exchangeability assumptions. Here, we introduce Variance-Calibrated Cross-Individual Bootstrapping (CIB-VC), a robust resampling framework designed for datasets characterized by few subjects but distinct within-subject trial structures. The method constructs synthetic individuals by recombining trials across subjects to maximize informational use, coupled with a variance calibration step that restores empirical between-subject variability. Using extensive Monte Carlo simulations across Gaussian, heavy-tailed, and lognormal distributions, we demonstrate that CIB-VC consistently achieves near-nominal 95% coverage. In contrast, stratified bootstrapping exhibits severe under-coverage under distributional skew (coverage Inline graphic), while hierarchical bootstrapping yields overly conservative confidence intervals. Crucially, empirical validation on behavioral tracking data from weakly electric fish (Inline graphic) confirmed the practical utility of the method: CIB-VC produced confidence intervals approximately 23% narrower than standard hierarchical bootstrapping without introducing bias. By providing a statistically principled solution that preserves Type-I error control without sacrificing power, CIB-VC offers a practical tool for improving reproducibility in studies where increasing the number of subjects is ethically or logistically constrained.

Keywords: Small sample size, Resampling methods, Statistical power, Hierarchical data, Reproducibility, Computational neuroscience

Subject terms: Computational biology and bioinformatics, Neuroscience

Introduction

Reliable statistical inference in the biological and behavioral sciences is frequently constrained by the difficulty of obtaining large sample sizes. In fields ranging from experimental neuroscience and psychophysics to biomechanics, ethical considerations, logistical costs, and the complexity of data acquisition often limit studies to a small number of independent subjects (N). Yet, these same studies often generate rich datasets within individuals, characterized by large numbers of repeated trials or observations (M). The resulting data structure is hierarchical, creating a fundamental tension in analysis: while trial-level data is abundant, population-level inference remains statistically underpowered1,2. Standard analytical approaches typically resolve this by averaging responses across trials to produce a single metric per subject, effectively discarding intra-individual variability and reducing the dataset to N data points. When N is small (e.g., Inline graphic), this aggregation leads to unstable parameter estimates, inflated Type-II error rates, and a pervasive crisis of reproducibility3,4.

Bootstrap resampling offers a powerful, nonparametric alternative to classical parametric inference, allowing researchers to estimate sampling distributions without rigid assumptions about normality or homoscedasticity5,6. To address the hierarchical nature of experimental data, several bootstrap variants have been proposed. The stratified bootstrap resamples trials within each subject, preserving individual-specific variability, but often yields anti-conservative confidence intervals when data are skewed or when N is small7. Conversely, the hierarchical bootstrap (or cluster bootstrap) resamples at both the subject and trial levels8,9. While this approach respects the nested design, it tends to be overly conservative in small-N settings, producing confidence intervals that are often prohibitively wide for detecting subtle physiological or behavioral effects10.

A critical gap therefore remains for a resampling framework that can leverage the richness of trial-level data to stabilize population estimates without succumbing to the biases of stratified resampling or the excessive conservatism of hierarchical methods. This need is particularly acute when data violate standard assumptions of exchangeability, such as in the presence of session-level drifts11, heavy-tailed noise distributions12, or heteroscedasticity across subjects.

To address this challenge, we introduce Variance-Calibrated Cross-Individual Bootstrapping (CIB-VC), a robust resampling framework designed to maximize the utility of small-N datasets. The method generates “synthetic individuals” by recombining trials drawn across different subjects, a process that intentionally disrupts within-subject nesting to maximize the exploration of the between-subject state space. To correct for the variance compression inherent in this synthetic construction, we integrate a variance calibration step that aligns the bootstrap distribution with the empirical between-subject variability.

We validate the CIB-VC framework through a dual approach combining extensive Monte Carlo simulations and empirical application. First, using simulations across Gaussian, Student’s t, and log-normal distributions, we demonstrate that CIB-VC achieves near-nominal 95% confidence interval coverage while exhibiting superior robustness to experimental stressors where traditional methods fail (e.g., session-level bias and noise imbalance). Second, we demonstrate the practical utility of the method by applying it to behavioral tracking data from weakly electric fish (Inline graphic). In this empirical setting, CIB-VC yields confidence intervals that are significantly narrower than those produced by hierarchical bootstrapping without introducing bias. By bridging the gap between individual-level richness and population-level rigor, CIB-VC provides a practical pathway toward more reliable and statistically efficient inference in data-limited experimental disciplines.

Results

To rigorously validate the Variance-Calibrated Cross-Individual Bootstrap (CIB-VC), we executed a comprehensive validation pipeline spanning both extensive Monte Carlo simulations and empirical biological application. Our analysis was designed to benchmark CIB-VC against the current standard practices in the field: Stratified Bootstrapping, which represents the high-precision but often anti-conservative lower bound of interval estimation6,13, and Hierarchical Bootstrapping, which represents the theoretically valid but often overly conservative upper bound8,9. We also evaluated an Uncalibrated Cross-Individual Bootstrap to serve as an ablation control, isolating the specific contribution of the variance calibration step.

The simulation framework scrutinized performance across three outcome distributions chosen to mimic common neurobiological data structures: standard Gaussian inputs (baseline for aggregate potentials2), Student’s Inline graphic (mimicking heavy-tailed measurement noise or artifacts12,14), and Lognormal distributions (mimicking skewed physiological metrics such as firing rates or reaction times15,16). Furthermore, to assess reliability under non-ideal conditions, we subjected the methods to two specific stress tests: Session Bias (violating temporal stability) and Noise Imbalance (violating homoscedasticity). The results are structured to demonstrate the method’s performance hierarchy: first establishing statistical validity, then demonstrating robustness to stress, quantifying efficiency gains, and finally validating utility on real behavioral tracking data.

Validity under distributional skew and heavy tails

Under ideal conditions with Gaussian data, all resampling methods approximated the nominal coverage probability (Inline graphic) reasonably well. However, as sample sizes decreased to the critical thresholds common in neuroscience (Inline graphic17–21), distinct failure modes emerged that highlight the limitations of conventional approaches.

Hierarchical bootstrapping proved consistently over-conservative, often yielding coverage probabilities approaching Inline graphic. While technically “valid” (in that it does not exceed the Type-I error rate), this inflation indicates confidence intervals that are prohibitively wide. This conservatism arises from the discreteness of resampling small sets: with only Inline graphic subjects, the bootstrap distribution becomes “lumpy,” dominated by the specific combination of subjects selected, which artificially expands the interval and dilutes the statistical power to detect real effects.

In contrast, standard Stratified bootstrapping displayed excessive fragility to distributional shape. While performing acceptably for Gaussian inputs, its performance degraded significantly for heavy-tailed (Inline graphic) and skewed (Lognormal) distributions. In these non-Gaussian regimes, the method consistently underestimated the true population variance, leading to under-coverage. This failure confirms that preserving within-subject trial structure alone is insufficient for population inference when between-subject variability is non-normal.

CIB-VC, however, maintained near-nominal coverage (Inline graphic) across all three distribution types. By generating synthetic individuals, CIB-VC effectively smoothes the discreteness that hampers hierarchical methods; by calibrating the variance, it corrects the underestimation that plagues stratified methods. This result demonstrates that the framework effectively decouples the estimation of distribution shape (via synthetic mixing) from distribution scale (via calibration), ensuring validity regardless of the underlying data topology.

Robustness to experimental stressors

Real-world experimental data rarely satisfy perfect exchangeability assumptions11,22,23. To evaluate method performance under realistic constraints, we introduced two stressors: Session Bias, representing a systematic baseline drift (Inline graphic) for specific subjects, and Noise Imbalance, representing subject-specific heterogeneity in recording quality.

As shown in Fig. 1, CIB-VC exhibited “Robust Invariance,” maintaining valid coverage (Inline graphic) regardless of the stressor or underlying distribution. In stark contrast, Stratified bootstrapping exhibited severe under-coverage under stress, revealing a critical vulnerability in standard resampling practices. Notably, we observed a “paradox of variance” where Stratified methods performed worse on clean Gaussian data than on noisy heavy-tailed data. For example, under Session Bias (Inline graphic), Stratified coverage dropped to Inline graphic for Gaussian data but remained significantly higher (Inline graphic) for Student’s Inline graphic data. This counter-intuitive result arises because the heavy tails of the Inline graphic distribution naturally inflate the within-subject residual variance, inadvertently widening the confidence intervals enough to encompass the biased mean. In contrast, the “clean” Gaussian data yields high precision around the biased subject means, resulting in intervals that exclude the true population parameter entirely.

Fig. 1.

Fig. 1

Methodological Robustness under Experimental Stress. Dot plot showing the coverage probability of 95% confidence intervals for Stratified (blue), Hierarchical (green), and CIB-VC (purple) methods across Gaussian, Inline graphic, and Lognormal distributions (Inline graphic). While Hierarchical and CIB-VC maintain coverage within the safety zone (shaded grey, Inline graphic), Stratified bootstrapping fails catastrophically under Session Bias, particularly for Lognormal distributions (labeled “False Precision”). CIB-VC demonstrates robust invariance, maintaining validity across all conditions.

However, the most severe methodological failure occurred under the combination of skew and bias. For Lognormal data with Session Bias, Stratified coverage plummeted to Inline graphic (Fig. 1, right panel). This phenomenon, which we term False Precision, occurs because the skewed distribution pulls the bootstrap distribution tightly around the sample median, while the session bias shifts the true population mean into the tail. Consequently, Stratified bootstrapping produces extremely narrow confidence intervals that are precisely located at the wrong value, effectively guaranteeing Type-I errors. CIB-VC, by pooling information across the population to estimate variance, correctly interprets these subject-specific drifts as sources of between-subject uncertainty (Inline graphic), maintaining coverage Inline graphic even in this worst-case scenario.

Statistical efficiency: the precision gain

While Hierarchical bootstrapping provides a safe (conservative) alternative to Stratified methods8,9, it achieves validity at the cost of precision. Because Hierarchical methods resample whole subjects with replacement, they are limited by the discrete combinations of subjects available (combinatorial granularity)10,24. When N is small, this results in “lumpy” bootstrap distributions and prohibitively wide confidence intervals that may obscure true physiological effects.

CIB-VC is designed to mitigate this conservatism by smoothing the sampling space. Figure 2 illustrates the “Efficiency Map,” plotting coverage probability against confidence interval width relative to the Hierarchical baseline (ratio Inline graphic indicates narrower intervals). Across the simulated scenarios, CIB-VC consistently occupied the optimal region: maintaining coverage near the nominal Inline graphic target while reducing interval width by approximately Inline graphic compared to Hierarchical bootstrapping.

Fig. 2.

Fig. 2

Relative Efficiency Map. Scatter plot of Coverage Probability versus Relative CI Width (normalized to the Hierarchical mean width of 1.0). The green shaded region represents the target accuracy (Coverage Inline graphic and Width Ratio Inline graphic). The red shaded region indicates invalid inference (Coverage Inline graphic). The inset zooms in on the efficiency gain, showing that CIB-VC (purple) systematically reduces interval width compared to Hierarchical bootstrapping (green) while avoiding the under-coverage of Stratified methods (blue).

This reduction represents a pure gain in statistical efficiency. By generating synthetic individuals, CIB-VC explores the variance structure between the discrete points accessible to hierarchical resampling. The inset (Fig. 2, bottom middle) highlights this systematic shift, showing CIB-VC estimates migrating to the left (increased precision) and down (corrected conservatism) relative to the Hierarchical centroid. In contrast, Stratified bootstrapping (far left) produced the narrowest intervals but fell deep into the “Invalid Zone” (shaded red). This confirms that the extreme precision of stratified methods is illusory–a form of False Precision that excludes the true population mean in favor of a tightly clustered but biased estimate.

Power and type-I error control

Finally, we evaluated the critical trade-off between statistical power (sensitivity) and Type-I error rate (false positives) for detecting a mean difference between two conditions (Inline graphic). In small-sample studies, methods often achieve high power only by sacrificing validity; the goal of CIB-VC is to break this dependency.

Figure 3 reveals the hidden cost of the apparent high power observed in Stratified methods. As shown in the inset (“The Graveyard”), Stratified estimates cluster far to the right, with Type-I error rates frequently exceeding Inline graphic. This disqualifies the method entirely: its ability to detect effects is not due to sensitivity, but to a systematic bias toward rejecting the null hypothesis, rendering its results statistically inadmissible.

Fig. 3.

Fig. 3

Power versus Validity. Scatter plot comparing Statistical Power (y-axis) against Type-I Error rate (x-axis). The main plot focuses on the valid zone (Inline graphic), while the inset shows the full scale. Connector lines link the Hierarchical result (green) to the CIB-VC result (purple) for identical datasets; vertical lines indicate a pure power gain with no loss of validity. Stratified methods (blue, inset) exhibit prohibitively high false-positive rates, disqualifying them despite their high apparent power.

Focusing on the valid methods (Fig. 3, main plot), both Hierarchical and CIB-VC effectively clustered within the “Valid Zone,” controlling Type-I error rates near the nominal Inline graphic. However, a clear “Efficiency Gap” emerged between the two. CIB-VC demonstrated a consistent “vertical lift” in power: for the exact same dataset configurations, it achieved higher sensitivity than Hierarchical bootstrapping. This result confirms that the gain in interval precision (observed in Fig. 2) directly translates into improved hypothesis testing capability. By producing narrower valid intervals, CIB-VC is able to exclude the null hypothesis in cases where the wider Hierarchical intervals would fail to reject, effectively recovering statistical power that is otherwise lost to conservative approximation.

Empirical validation: tracking performance in weakly electric fish

To demonstrate the practical utility of CIB-VC in a realistic experimental setting, we applied the method to behavioral tracking data from weakly electric fish (Eigenmannia virescens). This dataset represents a quintessential small-N neuroscience study: data were collected from only Inline graphic subjects, but each subject performed multiple trials (M) of a refuge-tracking task requiring precise sensorimotor integration. We assessed the impact of sensory conflict (High vs. Low Illumination) on motor performance, quantified by the Frequency Tracking Error (FTE).

Figure 4A illustrates the comparison between standard Hierarchical bootstrapping and the proposed CIB-VC framework (parametric implementation). While both methods centered on the same mean difference estimate–indicating that CIB-VC introduces no bias relative to the standard approach–the precision of the inference differed markedly. Hierarchical bootstrapping yielded a wide confidence interval, reflecting the conservatism inherent in resampling only 5 subjects. In contrast, CIB-VC leveraged the rich trial-level structure to produce a significantly tighter interval, achieving a 22.8% reduction in interval width compared to the hierarchical baseline. This efficiency gain allows for more precise localization of the biological effect size, effectively increasing statistical power without the ethical cost of adding more animals.

Fig. 4.

Fig. 4

Empirical Validation on Weakly Electric Fish Data(Inline graphic). (A) Comparison of 95% confidence intervals for the mean difference in tracking error (FTE) between high and low illumination conditions. CIB-VC (purple) yields a 22.8% narrower interval compared to standard Hierarchical bootstrapping (green), demonstrating improved precision in a small-sample biological context. (B) Convergence analysis showing the stability of the 95% CI width as a function of the number of synthetic individuals generated (K). Data were restricted to a subset (Inline graphic trials) to stress-test the method. (C) The Monte Carlo error (coefficient of variation of the CI width) decreases as K increases, dropping below the 1% threshold (red line) for Inline graphic, indicating robust numerical stability.

We further scrutinized the numerical stability of the estimator by conducting a sensitivity analysis on a restricted subset of the data (Inline graphic trials per condition). As shown in Fig. 4B, the precision of the confidence interval boundaries stabilized rapidly as the number of synthetic individuals (K) increased. While small synthetic populations (Inline graphic) exhibited minor fluctuations due to Monte Carlo noise, the estimator achieved robust convergence at higher replicates. The coefficient of variation for the interval width dropped below the Inline graphic threshold at Inline graphic (Fig. 4C), confirming that the default setting of Inline graphic ensures numerical reliability even in data-limited regimes.

Discussion

The reproducibility crisis in the biological sciences is often attributed to low statistical power and the misapplication of analytical methods to small datasets1,3. In this study, we introduced and validated Variance-Calibrated Cross-Individual Bootstrapping (CIB-VC), a resampling framework specifically engineered for the hierarchical structure of neuroscience data–where subjects are few (N), but observations per subject are many (M). Our results demonstrate that CIB-VC effectively decouples the trade-off between statistical validity and power. By generating synthetic individuals and calibrating their variance, the method achieves the nominal coverage of conservative hierarchical models while delivering the statistical sensitivity required to detect subtle effects in small samples.

The perils of stratified resampling in small-N studies

A central finding of our simulations is the severe under-coverage of standard stratified bootstrapping under conditions of skew and experimental bias. While stratified resampling is theoretically sound for estimating within-subject stability, it fundamentally fails to account for between-subject sampling error when used for population inference, a methodological pitfall often termed pseudoreplication13.

Our data revealed a “paradox of variance”: stratified methods appeared more robust under heavy-tailed noise (Inline graphic) than under Gaussian noise in the presence of session bias. This occurs because heavy tails naturally inflate the within-subject residual variance14, inadvertently widening the confidence intervals enough to encompass the biased mean. In contrast, the “clean” Gaussian data yields high precision around the biased subject means, resulting in intervals that miss the true population parameter entirely. However, this protection in the heavy-tailed case is illusory. When the outcome distribution was skewed (Lognormal) and biased–a common scenario in reaction time or firing rate data–stratified coverage collapsed to near zero (Inline graphic). This phenomenon, which we term False Precision, arises because the method resamples the bias of the few available subjects with high precision. These findings serve as a cautionary tale: narrow confidence intervals in small-N studies should be viewed with skepticism unless the resampling method explicitly accounts for the hierarchical structure of the variance25.

Efficiency gains via synthetic construction

While hierarchical (cluster) bootstrapping addresses the validity problem by resampling subjects, it does so inefficiently. By selecting whole subjects with replacement, hierarchical bootstrapping creates “lumpy” resampled datasets; if an outlier subject is selected twice, the bootstrap mean shifts dramatically10. This results in overly wide confidence intervals (often Inline graphic coverage in our simulations) and reduced power26.

CIB-VC mitigates this by constructing synthetic individuals–composites of trials drawn from different original subjects. This process “smooths” the bootstrap distribution, allowing for a more granular exploration of the sampling space5. The theoretical advantage of this smoothing was confirmed by our empirical validation on weakly electric fish data (Inline graphic). In a direct comparison using the full pooled dataset, CIB-VC produced a confidence interval for behavioral tracking error that was Inline graphic narrower than that produced by hierarchical bootstrapping (Fig. 4A), without altering the point estimate. Crucially, our sensitivity analysis (Fig. 4B–C) demonstrated that this precision is numerically stable; the estimator converges rapidly, with Monte Carlo error dropping to negligible levels (Inline graphic) when the synthetic population size Inline graphic.

Implications for experimental design and ethics

The ability to extract valid, high-power inference from small sample sizes has profound ethical and logistical implications. In animal research, the principle of Reduction (one of the 3Rs) mandates minimizing the number of animals used27,28. However, reducing N often compromises statistical rigor1. While Linear Mixed Models (LMMs) represent the parametric standard for hierarchical data29, they frequently suffer from singular fits (variance collapse) or convergence failures when the number of clusters is small (Inline graphic)30,31. CIB-VC offers a methodological pathway to satisfy both ethical constraints and statistical requirements without the instability of complex parametric models.

As demonstrated by our real-data application, CIB-VC extracted significantly higher precision from the same 5 animals than standard methods could. To achieve equivalent precision using hierarchical bootstrapping, a researcher would likely need to increase the sample size by Inline graphic, directly conflicting with ethical reduction goals28. Similarly, in human neuroimaging or clinical studies involving rare patient populations, where increasing N is often impossible due to disease rarity or cost4,32, CIB-VC provides a robust mechanism to validate findings that might otherwise be dismissed as anecdotal.

Limitations and assumptions

Our framework relies on the assumption that trials are exchangeable across subjects to the extent that they belong to the same experimental condition. While we demonstrated robustness to mild non-exchangeability (Session Bias, Noise Imbalance), a critical boundary condition is population homogeneity. If the subject pool contains distinct subpopulations (e.g., distinct clusters of “responders” and “non-responders”), the synthetic mixing process will average these effects, potentially obscuring biological heterogeneity. In such cases, the variance calibration step will widen the interval to reflect the high variance, but it will not reveal the multimodal structure. Researchers should therefore inspect individual subject distributions before applying this framework. Additionally, while the method is computationally more demanding than standard bootstrapping, our convergence results indicate that standard desktop computing resources (Inline graphic replicates) are sufficient for reliable inference.

Conclusion

Small sample sizes remain an unavoidable reality in many frontiers of neuroscience. CIB-VC provides a statistically principled, computationally efficient, and robust alternative to traditional resampling methods. By acknowledging the hierarchical nature of experimental data while leveraging the richness of within-subject observations, this framework offers a practical and rigorous framework for reliable inference in data-limited environments.

Methods

Variance-calibrated cross-individual bootstrap (CIB-VC)

The CIB-VC framework addresses the limitations of small sample sizes (N) by leveraging the richness of within-subject observations (M) to construct a more representative bootstrap distribution. The algorithm proceeds in two stages: (1) generation of synthetic individuals via cross-individual resampling to maximize combinatorial diversity, and (2) variance calibration to restore the appropriate population-level variability structure.

Synthetic individual construction

Let Inline graphic denote the experimental dataset, where Inline graphic indexes subjects and Inline graphic indexes trials. The standard population mean is estimated as Inline graphic, where Inline graphic is the subject-level mean.

To estimate the sampling distribution of Inline graphic, CIB-VC generates a distribution of B synthetic individuals. Each synthetic individual mean Inline graphic (Inline graphic) is constructed by randomly selecting exactly one trial from each of the N original subjects without replacement within the draw. Specifically:

graphic file with name d33e920.gif 1

where Inline graphic is a random index selected uniformly from Inline graphic for subject i.

This mixing process serves two theoretical functions: it preserves the structure of between-subject variability (as every synthetic point contains a contribution from every subject), and it breaks the serial correlation of within-subject trials to smooth the granularity of the bootstrap distribution. For the main simulations, we generated Inline graphic bootstrap replicates.

Variance calibration and parametric construction

While cross-individual resampling increases combinatorial diversity, it treats trials from different subjects as exchangeable components of a single synthetic observation. This assumes that the variance of the synthetic mean is driven solely by trial-level noise, which systematically underestimates the standard error in the presence of true biological heterogeneity. We correct for this via variance calibration.

Let Inline graphic be the empirical standard deviation of the distribution of synthetic means Inline graphic. We calculate a target standard error, Inline graphic, based on the empirical between-subject variance of the original data:

graphic file with name d33e960.gif 2

where Inline graphic is the unbiased sample variance of the original subject means Inline graphic. A calibration factor Inline graphic is computed as Inline graphic. The final adjusted standard error is Inline graphic.

To ensure robust coverage at small N, we implement a Parametric CIB-VC approach. The confidence interval is constructed as:

graphic file with name d33e994.gif 3

where Inline graphic is the critical value from the Student’s t-distribution with Inline graphic degrees of freedom (Inline graphic). This usage of t-statistics explicitly accounts for the uncertainty in the variance estimate when Inline graphic, preventing the under-coverage typical of standard normal approximations in small samples. For Inline graphic, standard normal z-scores may be used.

Bootstrapping for paired differences

For experimental designs comparing two conditions (e.g., Condition A vs. Condition B) within subjects, CIB-VC is applied to the difference scores. Let Inline graphic and Inline graphic represent the data matrices for the two conditions. We first compute the trial-level difference matrix D. If trials are strictly temporally paired, we compute Inline graphic. If no strict trial-to-trial correspondence exists (as is common in behavioral tasks where trial counts may vary or temporal alignment is irrelevant), we generate difference scores by randomly pairing trials between conditions within each subject. The synthetic resampling and variance calibration steps described above are then applied directly to the difference matrix D to estimate the confidence interval for the mean difference Inline graphic.

Simulation framework

We validated the method using extensive Monte Carlo simulations (Inline graphic iterations per scenario) across a grid of sample sizes (Inline graphic) and trial counts (Inline graphic).

Outcome distributions

Data were generated from three probability distributions chosen to represent distinct neurobiological data types:

  • Gaussian: Inline graphic, representing ideal experimental conditions or averaged potentials.

  • Student’s Inline graphic: Inline graphic, representing heavy-tailed biological noise or datasets containing measurement artifacts.

  • Lognormal: Inline graphic, representing positively skewed metrics such as reaction times, firing rates, or synaptic weights.

In all cases, subject means Inline graphic were drawn from a standard normal distribution Inline graphic to introduce between-subject variability.

Experimental stress tests (non-exchangeability)

To evaluate robustness against violations of exchangeability, we modeled two specific stressors:

  1. Session Bias: A systematic baseline drift (Inline graphic) added to the first Inline graphic of trials for all subjects, mimicking temporal effects such as fatigue, sensor drift, or learning.

  2. Noise Imbalance: Heteroscedasticity introduced by doubling the trial-level noise variance (Inline graphic) for a random Inline graphic of subjects, mimicking variable recording quality.

Real data analysis

To assess performance on empirical data, we analyzed behavioral tracking error (FTE) from Inline graphic adult weakly electric fish (Eigenmannia virescens) performing a refuge-tracking task under Low versus High Illumination conditions.

Subjects and Ethics: Fish (7–15 cm; 15–30 g; Inline graphic8–18 months old; either sex) were obtained from certified commercial vendors and housed in individual tanks on a 12:12 light:dark cycle. Water conductivity was maintained between Inline graphic and temperature at Inline graphic. All experimental procedures were approved by the Hacettepe University Animal Experiments Ethics Committee (Approval No: 2023/33) and conducted by certified personnel (I.U.). Methods were carried out in accordance with the ethical principles of the European Parliament Directive 2010/63/EU and associated national regulations. Furthermore, we confirm that this study is reported in accordance with the ARRIVE guidelines.

Experimental Protocol: Experiments were strictly non-invasive; no anesthesia, sedation, analgesia, or surgical procedures were used. Fish were transferred to the experimental setup and allowed to acclimate for Inline graphic hours prior to data collection. To minimize stress, 2-minute rest intervals were provided between trials. Animals were returned to their home tanks immediately following the experiments with no observed harm.

Pooled Analysis (Fig. 4A): To benchmark efficiency on a realistic dataset, we pooled trials by concatenating data across secondary conditions (Conductivity and Refuge), resulting in Inline graphic trials per subject per illumination level. We compared the width of 95% confidence intervals generated by Hierarchical Bootstrapping versus Parametric CIB-VC (using t-distribution critical values as defined above, with Inline graphic).

Sensitivity Analysis (Fig. 4B–C): To stress-test the stability of the method, we restricted the dataset to a strict subset of trials (Inline graphic, holding Conductivity, Window, and Refuge fixed). We systematically varied the number of synthetic individuals K (equivalent to bootstrap replicates B) from 50 to 5000. For this specific convergence analysis, we utilized a Percentile CIB-VC approach (using the quantiles of the calibrated bootstrap distribution rather than the parametric t-interval) to visualize the raw stability of the bootstrap distribution shape without the smoothing assumption of the t-distribution.

Comparative analysis

CIB-VC was benchmarked against three methods: Stratified Bootstrap (resampling trials within subjects), Hierarchical Bootstrap (resampling subjects then trials), and Uncalibrated CIB (ablation control). Performance was assessed via three metrics:

  • Coverage Probability: The proportion of 95% confidence intervals containing the true population mean (Target: 0.95).

  • Relative CI Width: The ratio of the mean confidence interval width of a given method to that of the Hierarchical bootstrap (Values Inline graphic indicate improved precision).

  • Statistical Power: The probability of correctly rejecting the null hypothesis (Inline graphic) when the true difference was Inline graphic. Rejection was defined as the 95% confidence interval excluding zero. Type-I error rates were similarly assessed at Inline graphic.

Author contributions

I.U. conceived the study, developed the methodology, performed the simulations, analyzed the results, and wrote the manuscript.

Funding

This research was supported by The Scientific and Technological Research Council of Türkiye (TUBITAK) under Grants No. 123E155 awarded to Ismail Uyanik.

Data availability

All statistical analyses and simulations were implemented in MATLAB (R2025b, The MathWorks Inc., Natick, MA). All data and custom analysis code supporting the findings of this study are publicly available via Aperta – Türkiye Open Archive (https://aperta.ulakbim.gov.tr) and can be accessed via the following DOI: 10.48623/aperta.286921.

Declarations

Competing interests

The authors declare no competing interests.

Footnotes

Publisher’s note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

References

  • 1.Button, K. S. et al. Power failure: Why small sample size undermines the reliability of neuroscience. Nat. Rev. Neurosci.14, 365–376 (2013). [DOI] [PubMed] [Google Scholar]
  • 2.Kass, R. E., Eden, U. T. & Brown, E. N. Analysis of neural data Vol. 491 (Springer, 2014). [Google Scholar]
  • 3.Ioannidis, J. P. Why most published research findings are false. PLoS Med.2, e124 (2005). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4.Szucs, D. & Ioannidis, J. P. Empirical assessment of published effect sizes and power in the recent cognitive neuroscience and psychology literature. PLoS Biol.15, e2000797 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 5.Efron, B. The jackknife, the bootstrap and other resampling plans (SIAM, 1982). [Google Scholar]
  • 6.Davison, A. C. & Hinkley, D. V. Bootstrap methods and their application Vol. 1 (Cambridge university press, 1997). [Google Scholar]
  • 7.Lazic, S. E., Mellor, J. R., Ashby, M. C. & Munafo, M. R. A Bayesian predictive approach for dealing with pseudoreplication. Sci. Rep.10, 2366 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8.Saravanan, V., Berman, G. J. & Sober, S. J. Application of the hierarchical bootstrap to multi-level data in neuroscience. Neurons Behav. Data Anal. Theory3, https–nbdt (2020). [PMC free article] [PubMed] [Google Scholar]
  • 9.Field, C. A. & Welsh, A. H. Bootstrapping clustered data. J. R. Stat. Soc. B.69, 369–390 (2007). [Google Scholar]
  • 10.Cameron, A. C., Gelbach, J. B. & Miller, D. L. Bootstrap-based improvements for inference with clustered errors. Rev. Econ. Stat.90, 414–427 (2008). [Google Scholar]
  • 11.Rule, M. E., O’Leary, T. & Harvey, C. D. Causes and consequences of representational drift. Curr. Opin. Neurobiol.58, 141–147 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12.Nolan, H., Whelan, R. & Reilly, R. B. Faster: Fully automated statistical thresholding for EEG artifact rejection. J. Neurosci. Methods.192, 152–162 (2010). [DOI] [PubMed] [Google Scholar]
  • 13.Lazic, S. E. The problem of pseudoreplication in neuroscientific studies: Is it affecting your analysis?. BMC Neurosci.11, 5 (2010). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 14.Wilcox, R. R. Introduction to robust estimation and hypothesis testing (Academic press, 2012). [Google Scholar]
  • 15.Buzsáki, G. & Mizuseki, K. The log-dynamic brain: How skewed distributions affect network operations. Nat. Rev. Neurosci.15, 264–278 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 16.Ratcliff, R. Group reaction time distributions and an analysis of distribution statistics. Psychol. Bull.86, 446 (1979). [PubMed] [Google Scholar]
  • 17.Biswas, D. et al. Closed-loop control of active sensing movements regulates sensory slip. Curr. Biol.28, 4029–4036 (2018). [DOI] [PubMed] [Google Scholar]
  • 18.Sutton, E. E., Demir, A., Stamper, S. A., Fortune, E. S. & Cowan, N. J. Dynamic modulation of visual and electrosensory gains for locomotor control. J. R. Soc. Interface.13, 20160057 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 19.Sponberg, S., Dyhr, J. P., Hall, R. W. & Daniel, T. L. Luminance-dependent visual processing enables moth flight in low light. Science348, 1245–1248 (2015). [DOI] [PubMed] [Google Scholar]
  • 20.Karagoz, O. K., Kilic, A., Aydin, E. Y., Ankarali, M. M. & Uyanik, I. Predictive uncertainty in state-estimation drives active sensing. Bioinspir. Biomim.20, 016018 (2024). [DOI] [PubMed] [Google Scholar]
  • 21.Uyanik, I. et al. Variability in locomotor dynamics reveals the critical role of feedback in task control. Elife9, e51219 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 22.Amarasingham, A., Harrison, M. T., Hatsopoulos, N. G. & Geman, S. Conditional modeling and the jitter method of spike resampling. J. Neurophysiol.107, 517–531 (2012). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 23.Gilden, D. L. Cognitive emissions of 1/f noise. Psychol. Rev.108, 33 (2001). [DOI] [PubMed] [Google Scholar]
  • 24.MacKinnon, J. G. & Webb, M. D. The wild bootstrap for few (treated) clusters. Econom. J.21, 114–135 (2018). [Google Scholar]
  • 25.Halsey, L. G., Curran-Everett, D., Vowler, S. L. & Drummond, G. B. The fickle p value generates irreproducible results. Nat. Methods12, 179–185 (2015). [DOI] [PubMed] [Google Scholar]
  • 26.Hesterberg, T. C. What teachers should know about the bootstrap: Resampling in the undergraduate statistics curriculum. Am. Stat.69, 371–386 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 27.Russell Wms, B. & Burch, R. The principles of humane experimental technique. Special ed. South Mimms, Potters Bar, Herts, England: Universities Federation for Animal Welfare 165 (1959).
  • 28.Festing, M. F. Reduction of animal use: Experimental design and quality of experiments. Lab. Anim.28, 212–221 (1994). [DOI] [PubMed] [Google Scholar]
  • 29.Baayen, R. H., Davidson, D. J. & Bates, D. M. Mixed-effects modeling with crossed random effects for subjects and items. J. Mem. Lang.59, 390–412 (2008). [Google Scholar]
  • 30.Bates, D., Mächler, M., Bolker, B. & Walker, S. Fitting linear mixed-effects models using lme4. J. Stat. Softw.67, 1–48 (2015). [Google Scholar]
  • 31.Matuschek, H., Kliegl, R., Vasishth, S., Baayen, H. & Bates, D. Balancing type i error and power in linear mixed models. J. Mem. Lang.94, 305–315 (2017). [Google Scholar]
  • 32.Friston, K. Ten. ironic rules for non-statistical reviewers. Neuroimage61, 1300–1310 (2012). [DOI] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Data Availability Statement

All statistical analyses and simulations were implemented in MATLAB (R2025b, The MathWorks Inc., Natick, MA). All data and custom analysis code supporting the findings of this study are publicly available via Aperta – Türkiye Open Archive (https://aperta.ulakbim.gov.tr) and can be accessed via the following DOI: 10.48623/aperta.286921.


Articles from Scientific Reports are provided here courtesy of Nature Publishing Group

RESOURCES