Suppose that you has to guess given a set of numbers
- If they are random.
- The mathematical expectation
Is there a definition of randomness that allow this prove/test?
Is even possible? if so: How many value would be enough ?
Example:
If numbers come from a coin experiment, results could be coded as 0 or 1,
000100010110100011.....
Then how many "bits" are enough to "test" variable randomness?
According to the law of large numbers, the average of the results (adding the results and dividing by the number of trials) should become closer and closer to the expected value as more trials are performed.
But if we don't know where those numbers come from then we don't know what to expect!
What are the law of large numbers hypothesis?
Does the definition of random cointain a reference to average and to the expected value?
It is deeply confusing to me,
thanks in advance for any information
You may like to understand the randomness of you sequence heuristically as follows. This may help you to get more intuition.
Write favorite binary sequence you would like to test for randomness in a file and try to compress it (e.g. with zip, etc...).
Then take the ratio between the size of the compressed file and the size of the original one. If the ratio is close to 1, it means the sequence is quite random, and if the ratio is close to zero then it means that the sequence is not very random.