
How to calculate this P-Value of uniform binary variable?
Suppose the image was supposed to be a uniform distribution of a binary variable (ie red dot vs blue dot) along the x axis, with some probability of blue being "P". How do I calculate the probability that such a "clump/grouping" as that found in Node #1 could even come about under a uniform distribution? In other words how would I find the p-value that this is truly a uniform distribution given it has such a "cluster" at low values of the x axis?
Edit:: My apologies, asking if it's uniform is the incorrect question. I mean is the proportion (ratio) of red to blue consistent throughout the x axis. In which case standard logistic regression p value may be my best option.