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.
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top