# how to find probability of uniformity of data

I was working on image processing where I have some list of pixel value eg:-[5,2,5,2,4,2,4,2,2,2] so I found mean as 3 and variance as 1.77778

My question is how to find the probability of data been distributed eg if data is [1,1,1,1,1] then the probability should be 1 , if data is [1,2,3,4,5,6,7,8] then the probability should be 0. how to calculate the probability and what is probability of data distributed for [5,2,5,2,4,2,4,2,2,2].

• It's not at all clear what you're actually asking for here. May 1 '14 at 8:22
• i need to find how uniform the data is distributed but is should be scored in between 0 to 1. May 1 '14 at 9:12
• The problem seems to be one of communication. I'm guessing you mean "how nearly constant are the pixel values (against pixel order say)", whereas "uniformity" to a statistician will mean something like "how nearly constant is the probability distribution of different values", a fundamentally different issue. If I have correctly discerned what you're after, I'd suggest altering your question to avoid the word 'uniform' and to include some additional description (or even some plots) of some typical situations and what ultimate questions you're trying to answer ... ctd May 1 '14 at 9:43
• ctd ... (since your question at present doesn't seem to be well formulated) May 1 '14 at 9:43