Original Post
Hey everyone, I've got a probability problem that has been stumping me for the last two days, and I'm hoping you can help. If you want to know what it is for, I'm writing a barcode decoder for fun (Its actually been pretty interesting so far). Anyways, the problem is this: Given multiple finite discrete random variables {X,Y,Z}, how do you enumerate the possible combinations from most probable to least probable? For example, the most probable combination is just the set of most probable outcomes for each variable. But how do you find the second most probable, and then the third, etc etc? I've tried searching for a solution, but I'm not narrowing down my search very well. Any ideas for the problem, or what to look into?