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

Click For Summary
SUMMARY

This discussion focuses on determining the randomness of a set of numbers using a histogram. When generating 300 random numbers between 1 and 50, the expectation is that each number should appear approximately six times, resulting in a uniform distribution. The Chi-square test is identified as a suitable statistical method to assess the randomness of the distribution. It is emphasized that while the Chi-square test can provide a probability of randomness, it cannot definitively confirm that a set of numbers is random, as even random sets can exhibit patterns.

PREREQUISITES
  • Understanding of histogram construction and interpretation
  • Familiarity with Chi-square test methodology
  • Basic knowledge of probability distributions, including uniform and Gaussian distributions
  • Proficiency in Excel for generating random numbers and plotting histograms
NEXT STEPS
  • Research the application of the Chi-square test in statistical analysis
  • Learn about uniform distribution and its characteristics
  • Explore methods for generating random numbers in Excel
  • Study the implications of different probability distributions on randomness
USEFUL FOR

Statisticians, data analysts, and anyone interested in evaluating the randomness of numerical datasets through statistical methods.

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.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 2 ·
Replies
2
Views
5K
Replies
9
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
Replies
23
Views
2K
  • · Replies 33 ·
2
Replies
33
Views
3K