How can I determine if a set of numbers is truly random based on a histogram?

abcdmichelle
Messages
18
Reaction score
0
1. The problem statement

If i generate a list of 300 random numbers in excel, each number between 1-50 for example, and i plot the frequency that each number comes in a histogram, how can i tell, looking at the histogram, if the numbers are really random? is there a certain distribution the histogram will follow?

The Attempt at a Solution


I would assume that every number between 1 and 50 would have the same probability of coming up so the histogram would have more or less even bars. however, doesn't a poisson or gaussian distribution represent random events, and then wouldn't the histogram have to be a bell shaped curve?

can someone please help me!?
looking at the histogram, how can i tell if the numbers are actually random?
 
Physics news on Phys.org
It sounds like a Chi-square test is suitable for this. I think you use the fact that if it was random, you would expect each number 1-50 to come up 6 times, so the distribution should just be rectangular.
 
You can't tell by just looking. The chi-square test, as cosmo123 said, can test give a probability that numbers were generated randomly but remember it is possible (though extremely unlikely) that a randomly generated set of numbers could be all the same number! That is, there is no way of knowing for sure if a given set of numbers was randomly generated. Any set of numbers could be generated randomly.
 
Prove $$\int\limits_0^{\sqrt2/4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx = \frac{\pi^2}{8}.$$ Let $$I = \int\limits_0^{\sqrt 2 / 4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx. \tag{1}$$ The representation integral of ##\arcsin## is $$\arcsin u = \int\limits_{0}^{1} \frac{\mathrm dt}{\sqrt{1-t^2}}, \qquad 0 \leqslant u \leqslant 1.$$ Plugging identity above into ##(1)## with ##u...
Back
Top