Premium
Rapid Generation of Frequency Tables
Author(s) -
Kemp C. D.,
Kemp Adrienne W.
Publication year - 1987
Publication title -
journal of the royal statistical society: series c (applied statistics)
Language(s) - English
Resource type - Journals
SCImago Journal Rank - 1.205
H-Index - 72
eISSN - 1467-9876
pISSN - 0035-9254
DOI - 10.2307/2347786
Subject(s) - statistics , computer science , econometrics , mathematics
SUMMARY This paper is concerned with situations where random samples of size n , from a discrete distribution, are required in the form of frequency tables rather than as streams of n individual variables. Instead of constructing each table by generating n observations and collecting them together, each table is generated directly by regarding it as a single sample from a multinomial distribution whose index is n and whose probabilities are those of the target distribution placed in decreasing order of magnitude. Sampling is achieved by a series of conditional binomial generations using a fast ‘variable‐parameter’ algorithm due to Kemp (1986). Results are presented which show that the new direct procedure is generally far faster than the standard indirect procedure using the very fast alias method to generate individual observations. Extensions to bivariate discrete distributions and to continuous distributions are noted.