Tuning the collision test for power

  • Authors:
  • W. W. Tsang;L. C. K. Hui;K. P. Chow;C. F. Chong;C. W. Tso

  • Affiliations:
  • The University of Hong Kong;The University of Hong Kong;The University of Hong Kong;The University of Hong Kong;The University of Hong Kong

  • Venue:
  • ACSC '04 Proceedings of the 27th Australasian conference on Computer science - Volume 26
  • Year:
  • 2004

Quantified Score

Hi-index 0.00

Visualization

Abstract

The collision test is an important statistical test for rejecting poor random number generators. The test simulates the throwing of balls randomly into urns. A problem in applying this test is to determine the number of urns, m, and the number of balls, n, so that the test is among the most powerful possible on a computer.The problem was tackled empirically. A set of canonical congruential generators with increasing periods was first implemented. The stringency of a test against congruential generators is measured as the number of canonical generators the test rejects. Experiments were then conducted to measure the stringencies of the collision tests for various (m, n) values. The results reveal that for a fixed m, the stringency of a test reaches maximum when m n ≤ 2m. Moreover, the stringency increases as m increases. Similar results were observed when the experiments were repeated on lagged Fibonacci generators and on shift-register generators. Further investigation showed that the variance of the number of collisions reaches maximum together with the stringencies, at n = [1.256431m].Eighteen well-known generators were tested against the collision tests with m = 221, 222, ..., up to 230. Many generators failed starting from some points along the way, including congruential generators, shift-register generators, lagged Fibonacci generators of lags less than 40, subtract-with-borrow generators of lags less than 24, and a combined generator.