以下是引用snowflower在2004-8-16 5:33:00的发言: 2,2个盒子,一个4个apple,2个orrange,另一个盒子3个apple,5个orrange,问随即从盒子里取, 一个是apple, 另一个是orrange的概率? 请问:如果不说什么先后顺序,是不是就是C(7,1)*C(7,1)/(14*13); 要是说先从第一个盒子里去一个apple,然后从第二个盒子里去一个orrange的概率,那就是:C(4,1)*C(5,1)/[C(6,1)*C(8,1)]?
I'm not very good with combos, and usually i do the stupid and safe way which is:
COUNT THEM OUT BY HAND, 1, 2, 3, 4, 5, 6...
.........
JUST KIDDING

.........
.........
...as ya'll right now probably shaking your heads and laughing at my stupid sense of humor, here's how i would try to solve this question:
1) if order doesn't matter:
how many ways can we actually get 1 apple and 1 orange from two boxes?
well, in general there are two ways: (1) get 1 apple from the 1st box and 1 orange from the 2nd box, (2) get 1 orange from the first box and 1 apple from the 2nd box
and let's do that: (1) c(4, 1)/c(6, 1) * c(5, 1)/c(8, 1), (2) c(2, 1)/c(6, 1) * c(3, 1)/c(8, 1)
and we add them together: we have (4 * 5 + 2 * 3) / (6 * 8) = 26 / 48, which is about 54%, sounds reasonable...
in order to check this, we can a similiar problem with a smaller sample size, for example: if we have the 1st box has 1 apple and 1 orange, and 2nd box has 1 apple and 1 orange, then we want to know the same thing we would have (1 * 1 + 1 * 1)/(2 * 2) = 1/2 = 50%, since the only outcomes are: (1) 1st box apple, 2nd box orange, (2) 1st box apple, 2nd box apple (3) 1st box orange, 2nd box apple, (4) 1st box orange, 2nd box orange...
2) if order does matter:
you actually got it right... |