Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • I think both of these methods will create a bias for certain values. i.e. if you the final subset does not meet the criteria, you remove a "bad" value (an outlier) and replace it with a "good" value. This will result in "good" values being used more often and "bad" values being used less often. Commented Sep 30, 2014 at 15:06
  • @PrestonS - So what? This comment of yours suggests you have some addition requirements that you have not yet told us. Commented Sep 30, 2014 at 15:19
  • @DavidHammen No, I specified random which means an even distribution across all possible values. Swapping out values in this way is definitely not random. Commented Sep 30, 2014 at 15:23
  • What does that even mean, Preston? You have not fully specified the problem. Commented Sep 30, 2014 at 15:40
  • @DavidHammen It means I'm looking for an algorithm to produce one subset that fulfills my criteria. Then, if I ran the algorithm many times, it would eventually have returned all the possible subsets an equal amount of times. Commented Sep 30, 2014 at 15:50