Does anyone have any ideas on how to quantify randomness? More, specifically, I need a measure of clustering.

Let's say I have 2 groups within a dataset. I plot their values based on two measures and color-code by group. When I do the same using other measures, I get a different scatter of red and black observations.

Is there a way to quantify whether the colors are more clustered/scattered (i.e., less able to distinguish between groups) from one plot to another?

In reality, I have multiple groups. And I'm looking to find the measures that lead to the most "even mixing" of the groups.

If you can implement something in R, I'd be even more appreciative!

Let's say I have 2 groups within a dataset. I plot their values based on two measures and color-code by group. When I do the same using other measures, I get a different scatter of red and black observations.

Is there a way to quantify whether the colors are more clustered/scattered (i.e., less able to distinguish between groups) from one plot to another?

In reality, I have multiple groups. And I'm looking to find the measures that lead to the most "even mixing" of the groups.

If you can implement something in R, I'd be even more appreciative!

Last edited: