Skip to main content
gamedev.net
🔒 Locked

probability problem

Started by Hase Nov 30, 2002 at 7:42 PM 4 replies 250+ views
Original Post
Hase
Hase
I have a little problem... it´s late and there has to be a flaw somewhere: There is a lottery, you draw 6 out of 45 numbers, without putting the balls back - so the number of getting all 6 right should be n!/n!-k! which in that case would be 45*44*43*42*41*40, which comes out to a probability of about 1:5.864.443.200. Now, there are about a million played games per drawing, and each drawing produces, on average, one hit (this is fact now) - if I put those million games into the number above I´m still a magnitude of 10^3 short... so where´d I go wrong? edit:typos [edited by - Hase on November 30, 2002 9:17:11 PM]
Argus
Argus
The number of combinations (unordered selection) of 6 objects out of 45 is (iirc) n! / r!(n - r)! which comes out as 8145060.

So roughly 1 in 8 million chance of getting them all I think.
Hase
Hase
ah right.. i forgot that the order is not important... thanks!
AnonymousPosterChild
AnonymousPosterChild
Doesn''t the lottery base itself of the right combination of six numbers?

...and that''s how I successfully lead operation Desert Storm.
With love, AnonymousPosterChild
Hase
Hase
no, the numbers are presented in ascending order, but the actual order they occur in is not important (at least not here).
AnonymousPosterChild
AnonymousPosterChild
Okay. I was thinking 6-49, but this is more like super-7

...and that''s how I successfully lead operation Desert Storm.
With love, AnonymousPosterChild

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.