Simulation and modeling - Old Questions
Question Answer Details
3. What is the main objective of gap test? Explain gap test algorithm with example.
Answer
AI Generated Answer
AI is thinking...
Official Answer
The gap test is used to determine the significance of the interval between recurrence of the same digit. A gap of length x occurs between the recurrence of some digit. It Counts the number of digits that appear between repetitions of a particular digit and then uses the Kolmogorov-Smirnov test to compare with the expected number of gaps.
The probability of a particular gap length can be determined by a Bernoulli trail.
If we are only concerned with digits between 0 and 9, then
The theoretical frequency distribution for randomly ordered digits is given by

Steps involved in this test are: