How Many Random Seeds? Statistical Power Analysis in Deep Reinforcement Learning Experiments
Cédric Colas, Olivier Sigaud, Pierre-Yves Oudeyer
TL;DR
This paper addresses reproducibility concerns in deep reinforcement learning by clarifying how the number of random seeds affects statistical power when comparing two algorithms. It advocates two main approaches—the Welch's two-sample t-test and bootstrap confidence intervals—and provides a concrete workflow: run a pilot study to estimate variances, perform power calculations to choose sample sizes, and then apply the chosen tests while accounting for assumption deviations. The authors show that standard methods can miscalibrate error rates under small samples or non-normal data, recommending empirical checks, fewer multiple comparisons, and conservative sample-size planning. They also release code to implement the tests. Overall, the work offers practical, theory-grounded guidelines to design RL experiments with reliable statistical conclusions.
Abstract
Consistently checking the statistical significance of experimental results is one of the mandatory methodological steps to address the so-called "reproducibility crisis" in deep reinforcement learning. In this tutorial paper, we explain how the number of random seeds relates to the probabilities of statistical errors. For both the t-test and the bootstrap confidence interval test, we recall theoretical guidelines to determine the number of random seeds one should use to provide a statistically significant comparison of the performance of two algorithms. Finally, we discuss the influence of deviations from the assumptions usually made by statistical tests. We show that they can lead to inaccurate evaluations of statistical errors and provide guidelines to counter these negative effects. We make our code available to perform the tests.
