Skip to main content
QUICK REVIEW

[Paper Review] A Hitchhiker's Guide to Statistical Comparisons of Reinforcement Learning Algorithms

Cédric Colas, Olivier Sigaud|arXiv (Cornell University)|Apr 15, 2019
Reinforcement Learning in RoboticsComputer Science10 references24 citations
TL;DR

This paper provides a rigorous statistical framework for comparing reinforcement learning (RL) algorithms, advocating for Welch's t-test with adjusted significance levels to ensure valid type I error control. It demonstrates through simulations and real-world RL experiments (SAC vs. TD3 on Half-Cheetah) that improper tests lead to inflated false positive rates, and offers practical guidelines and code for selecting appropriate sample sizes based on expected effect sizes to achieve adequate statistical power.

ABSTRACT

Consistently checking the statistical significance of experimental results is the first mandatory step towards reproducible science. This paper presents a hitchhiker's guide to rigorous comparisons of reinforcement learning algorithms. After introducing the concepts of statistical testing, we review the relevant statistical tests and compare them empirically in terms of false positive rate and statistical power as a function of the sample size (number of seeds) and effect size. We further investigate the robustness of these tests to violations of the most common hypotheses (normal distributions, same distributions, equal variances). Beside simulations, we compare empirical distributions obtained by running Soft-Actor Critic and Twin-Delayed Deep Deterministic Policy Gradient on Half-Cheetah. We conclude by providing guidelines and code to perform rigorous comparisons of RL algorithm performances.

Motivation & Objective

  • To address the reproducibility crisis in RL by providing a principled statistical framework for comparing algorithm performances.
  • To evaluate the performance of common statistical tests (t-test, Mann-Whitney, bootstrap, permutation, ranked t-test) in terms of false positive rate and statistical power under varying conditions.
  • To provide practical, empirically grounded recommendations for sample size (number of random seeds) based on expected effect size.
  • To warn against the use of unreliable tests such as bootstrap and permutation tests with small sample sizes.
  • To promote the use of Welch's t-test with adjusted significance levels to maintain a true false positive rate below the nominal level.

Proposed method

  • The authors simulate performance distributions under various conditions (normal, skewed, unequal variances) to evaluate statistical tests' type I error and power.
  • They compare five statistical tests: Student's t-test, Welch's t-test, Mann-Whitney U test, bootstrap test, and permutation test.
  • Empirical data from running SAC and TD3 on Half-Cheetah are used to validate test performance on real RL learning curves.
  • Statistical power and false positive rates are computed as functions of sample size (N) and effect size (ϵ), with ϵ defined as the standardized mean difference.
  • The authors use a significance level α < 0.05 (e.g., α = 0.01) to ensure the actual false positive rate α∗ remains below 0.05 when distributions deviate from normality.
  • They provide a public repository with code and raw results to reproduce all experiments and guide practitioners in applying the recommended methods.

Experimental results

Research questions

  • RQ1Which statistical test maintains the lowest false positive rate across diverse performance distribution shapes and sample sizes in RL comparisons?
  • RQ2How does the statistical power of common tests vary with sample size (number of random seeds) and effect size in RL experiments?
  • RQ3To what extent do violations of normality, equal variance, and identical distribution assumptions affect the reliability of statistical tests in RL evaluations?
  • RQ4What is the minimum number of random seeds required to achieve 80% statistical power for detecting a given relative effect size in RL algorithm comparisons?
  • RQ5How do multiple comparisons (e.g., pairwise algorithm comparisons) affect the family-wise error rate, and what corrections are effective?

Key findings

  • Welch's t-test consistently shows lower false positive rates and comparable statistical power to other tests, especially under unequal variances and non-normal distributions.
  • The bootstrap test is unreliable for N < 50, often producing inflated false positive rates, and should be avoided in small-sample RL evaluations.
  • The Mann-Whitney U test and ranked t-test are only reliable when distributional assumptions are carefully checked; otherwise, they risk high type I error rates.
  • Permutation tests are unstable for N < 10, leading to high false positive rates, and are not recommended for small sample sizes in RL experiments.
  • For a relative effect size ϵ = 0.5, approximately 100 seeds are needed to achieve 80% statistical power; for ϵ = 1, about 20 seeds suffice; for ϵ = 2, 5–10 seeds are sufficient.
  • Real-world comparisons of SAC and TD3 on Half-Cheetah required N = 10–15 seeds for ϵ = 0.93 (mean comparison), and about 5 more seeds for median comparison (ϵ = 0.80), confirming the need for sample size planning based on effect size.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.