A Generalization Of The Partition Problem In Statistics