Skip to main content
QUICK REVIEW

[Paper Review] A randomized Halton algorithm in R

Art B. Owen|arXiv (Cornell University)|Jun 9, 2017
Mathematical Approximation and IntegrationMathematics31 references26 citations
TL;DR

This paper presents rhalton, an R function implementing a randomized Halton sequence for quasi-Monte Carlo integration, enabling efficient, extensible sampling in arbitrary dimensions and sample sizes. It achieves up to thousands of times greater efficiency than plain Monte Carlo on smooth, low-effective-dimension integrands, with simple pseudocode for easy implementation and porting to other languages.

ABSTRACT

Randomized quasi-Monte Carlo (RQMC) sampling can bring orders of magnitude reduction in variance compared to plain Monte Carlo (MC) sampling. The extent of the efficiency gain varies from problem to problem and can be hard to predict. This article presents an R function rhalton that produces scrambled versions of Halton sequences. On some problems it brings efficiency gains of several thousand fold. On other problems, the efficiency gain is minor. The code is designed to make it easy to determine whether a given integrand will benefit from RQMC sampling. An RQMC sample of n points in $[0,1]^d$ can be extended later to a larger n and/or d.

Motivation & Objective

  • To provide a simple, extensible R implementation of randomized Halton sequences for numerical integration.
  • To enable researchers to easily test whether their specific integrand benefits from randomized quasi-Monte Carlo (RQMC) sampling.
  • To support dynamic extension of simulations in both sample size (n) and dimension (d) without recomputing prior values.
  • To offer a minimal, human-readable pseudocode that can be easily implemented in other programming languages or used for educational purposes.

Proposed method

  • The method uses a doubly infinite random matrix representation of scrambled Halton sequences, with elements generated via digital randomization of standard Halton sequences.
  • The rhalton(n, d) function returns the upper-left n×d submatrix of this infinite matrix, ensuring reproducibility when the random seed is set.
  • Randomization is based on a digital scramble, specifically the method used in Wang and Hickernell (2000), which improves convergence and enables sample-driven error estimation.
  • The implementation supports incremental extension: new rows (for larger n) or new columns (for larger d) can be computed independently of prior values.
  • A single element X_ij can be accessed via rhalton(1,1,n0=i-1,d0=j-1,singleseed=s), enabling fine-grained control.
  • The design prioritizes simplicity and extensibility over maximal theoretical efficiency, making it suitable for prototyping and teaching.

Experimental results

Research questions

  • RQ1Can a simple, extensible R implementation of randomized Halton sequences effectively accelerate Monte Carlo integration for practical problems?
  • RQ2To what extent does RQMC reduce variance compared to plain Monte Carlo on integrands with varying smoothness and effective dimension?
  • RQ3How does the performance of the proposed rhalton function compare to more sophisticated implementations like ghalton in the qrng R package?
  • RQ4In what scenarios does RQMC provide orders-of-magnitude efficiency gains, and when are the gains minimal or absent?
  • RQ5Can the rhalton function be extended in n or d without recomputing previous samples, and how does this affect reproducibility and computational cost?

Key findings

  • On smooth, low-effective-dimension integrands, rhalton achieves efficiency gains of several thousand times over plain Monte Carlo, with root mean squared error (RMSE) approaching O(n⁻¹) behavior.
  • For some test problems, the RMSE of rhalton closely matches theoretically predicted rates, with only a mild dependence on dimension up to d=50.
  • On other integrands, particularly high-dimensional or non-smooth ones, the benefits of RQMC are minor and decay rapidly with increasing dimension.
  • The rhalton function is approximately 12–24% less efficient than the ghalton function in the qrng package, which uses more sophisticated scrambles, but offers superior extensibility and simplicity.
  • The rhalton implementation allows seamless extension in both n and d: new rows or columns can be computed independently, preserving reproducibility and avoiding recomputation.
  • Despite theoretical limitations, the method remains practical and effective for most real-world problems, especially when integrands exhibit smoothness or low effective dimension.

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.