Originally Posted by

**bumcheekcity** I have some data which I theorise to be uniformly distibuted in the set:

$\displaystyle {-10,-9,...,-2,-1,1,2,...,9,10}$

i.e. a 5% chance of choosing any of the non-zero integers in [-10,10]. If I have a given, know, set of observations from this random variable, let's say I have:

$\displaystyle {1, 5, -6, -3, 7, 2, 3, 3, -6, -10, -2, -5, -7, 1, 9, 10, 8}$

And I am given that each observation is independent, how do I calculate the p-value that the given set of data was observed from the given distribution?