Can we use tests of runs to test randomness of a game?

  • Context: Graduate 
  • Thread starter Thread starter Bacle
  • Start date Start date
  • Tags Tags
    Game Randomness Test
Click For Summary
SUMMARY

The discussion centers on the effectiveness of using tests of runs to analyze the randomness of lottery numbers. The proposed method involves selecting N=50 consecutive winning combinations, calculating the total sum S_n for each, and determining the mean (Mu) and median (M) to assess the distribution. The user plans to categorize sums as '+' or '-' based on their relation to the median and then apply the U-statistic to test for randomness. An alternative suggestion includes using a chi-square test to evaluate the frequency of number occurrences.

PREREQUISITES
  • Understanding of statistical concepts such as mean, median, and U-statistic.
  • Familiarity with histogram plotting for data visualization.
  • Knowledge of chi-square tests for assessing categorical data distributions.
  • Basic grasp of lottery number generation and randomness testing methodologies.
NEXT STEPS
  • Research the application of U-statistics in randomness testing.
  • Learn about chi-square tests and their use in categorical data analysis.
  • Explore methods for visualizing data distributions, including histogram techniques.
  • Investigate the implications of using categorical data in statistical tests.
USEFUL FOR

Statisticians, data analysts, and educators interested in teaching randomness testing methods, particularly in the context of lottery number analysis and categorical data evaluation.

Bacle
Messages
656
Reaction score
1
Hi, everyone:

I am trying to prepare a class for tests of randomness. I am trying to use

as output, the 6 numbers of an (actual) lottery. Would a test of runs of the

means of the winning numbers be effective here? I am thinking of selecting, say N=50

consecutive winning combinations of six numbers, first finding the total sum S_n of

each of the 50 winning combinations. I will plot the data with a histogram, to see if

it is well-behaved-enough to use the mean Mu as a measure of center, or else

(outliers, non-symmetry of plot, etc.) I will use the median M as a measure of center.


After that, I will find the median M/ mean Mu of all the 50

sums, and then I will tag a sum S_n with a '-' , if S_n< m, and with a '+' otherwise

( I think it is not too likely I will hit the actual mean, nor the median), and then

define a run as a collection of consecutive ' +' or '-' values.


Then I can use the U-statistic to test actual randomness

at a certain significance level.

Would this work?

Thanks.
 
Physics news on Phys.org
The question with this approach is, what physical meaning does S_n have? (since the lotto numbers are really categorical data, just being convenient labels rather than quantities)

Perhaps instead look for evidence of numbers occurring more often than they should, e.g. with a variant of the chi-square test?
 
Thanks, bpet:

I am little confused, tho, in that I have seen the test-of-runs used to test whether

birthdays are uniformly-distributed , and birthdate also seems like categorical data.

Still, your point is well-taken.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 30 ·
2
Replies
30
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 11 ·
Replies
11
Views
4K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K