Question: More Code Problems, Help Me Write

February 01 2013 askstatshelp 30
Maple
1

I need more help with code please!

A box of candy hearts contains 52 hearts, of which 19 are white, 10 are tan, 7 are pink, 3 are purple, 5 are yellow, 2 are orange, and 6 are green. If you select 9 pieces randomly without replacement, what is the probability that A_3 of the 9 are white, and B_3 of the 9 are white, 2 are tan 1 is pink and 1 is yellow and 2 are green

19 Whites in the pack / 52 hearts in the pack = .3654 possibility of picking a white from 1 draw.

Next question

If you select 9 pieces randomly without replacement, A_3 of the 9 are white, and B_3 of the 9 are white, 2 are tan 1 is pink and 1 is yellow and 2 are green?

a)     (9 C 3)(19/52)(18/51)(17/50)(33/49)(32/48)(31/47)(30/46)(29/45)(28/44) approximately = .292

b) (9!)/(19!2!1!1!2!)(19/52)(18/51)(17/50)(10/49)(9/48)(7/47)(5/46)(6/45)(5/44) approximately = .006

Please Wait...