Skip to main content
QUICK REVIEW

[Paper Review] Sequential Nonparametric Testing with the Law of the Iterated Logarithm

Akshay Balsubramani, Aaditya Ramdas|arXiv (Cornell University)|Jun 10, 2015
Statistical Methods in Clinical TrialsMathematics22 references11 citations
TL;DR

This paper introduces a novel sequential nonparametric testing framework for i.i.d. data that achieves linear-time, constant-space computation with finite-sample type I and II error control. By constructing zero-mean martingale test statistics and using a uniform non-asymptotic law of the iterated logarithm (LIL) for rejection thresholds, the method adaptively stops after minimal samples—matching the power of batch tests while automatically detecting problem difficulty without prior knowledge.

ABSTRACT

We propose a new algorithmic framework for sequential hypothesis testing with i.i.d. data, which includes A/B testing, nonparametric two-sample testing, and independence testing as special cases. It is novel in several ways: (a) it takes linear time and constant space to compute on the fly, (b) it has the same power guarantee as a non-sequential version of the test with the same computational constraints up to a small factor, and (c) it accesses only as many samples as are required - its stopping time adapts to the unknown difficulty of the problem. All our test statistics are constructed to be zero-mean martingales under the null hypothesis, and the rejection threshold is governed by a uniform non-asymptotic law of the iterated logarithm (LIL). For the case of nonparametric two-sample mean testing, we also provide a finite sample power analysis, and the first non-asymptotic stopping time calculations for this class of problems. We verify our predictions for type I and II errors and stopping times using simulations.

Motivation & Objective

  • To develop a sequential hypothesis testing framework for multivariate, nonparametric problems under composite nulls with minimal computational and storage overhead.
  • To ensure finite-sample type I error control without relying on asymptotic approximations like the CLT.
  • To achieve near-optimal type II error control by adapting stopping time to the unknown difficulty of the problem.
  • To enable early stopping with theoretical guarantees, matching the power of linear-time batch tests while using only as many samples as necessary.
  • To provide a general, extendable method applicable to A/B testing, two-sample testing, and independence testing under i.i.d. data.

Proposed method

  • The method constructs test statistics as zero-mean martingales under the null hypothesis, ensuring valid sequential inference.
  • It uses a uniform, non-asymptotic version of the law of the iterated logarithm (LIL) to set rejection thresholds that control type I error uniformly over time.
  • Stopping time is determined by the first time the test statistic exits the LIL envelope, which adapts to the actual signal strength.
  • The framework leverages second-order uniform martingale concentration bounds (e.g., Freedman’s inequality) to derive tight, finite-sample deviation bounds.
  • A peeling argument over exponentially growing epochs in empirical variance is used to achieve the optimal iterated-logarithm rate in concentration.
  • The method relies only on on-the-fly computation of a scalar test statistic, requiring constant space and linear time per observation.

Experimental results

Research questions

  • RQ1Can a sequential nonparametric test achieve finite-sample type I error control without relying on asymptotic normal approximations?
  • RQ2How can stopping time be adaptively controlled to match the difficulty of the underlying problem without prior knowledge?
  • RQ3What is the finite-sample power behavior of a sequential test compared to its batch counterpart?
  • RQ4Can the law of the iterated logarithm be used to derive non-asymptotic, uniform bounds for sequential testing in high-dimensional or nonparametric settings?
  • RQ5To what extent does the sequential test’s stopping time reflect the true signal strength, and how does it compare to optimal batch sampling?

Key findings

  • The proposed method controls type I error uniformly over all stopping times using a finite-sample LIL bound, avoiding reliance on asymptotic normality.
  • The test achieves near-optimal power compared to linear-time batch tests, with the power loss bounded by a small constant factor.
  • The stopping time adapts to the unknown problem difficulty, diverging only when the required type II error approaches zero (i.e., power approaches one).
  • For nonparametric two-sample mean testing, the paper provides the first finite-sample power analysis and non-asymptotic stopping time calculations.
  • The method achieves optimal concentration rate of $ Oig(ig( ext{Var}_n ig) ext{ln ln} rac{ ext{Var}_n}{ heta}ig)^{1/2} $, matching the theoretical limit of the LIL.
  • Simulations confirm that predicted type I and II error rates and stopping times align closely with empirical performance.

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.