Probability Question

Random irrelevance that just didn't fit into other forums. Talk about anything.

Moderator: Talkative People

Post Reply
X Abstract X
Chaos Rift Regular
Chaos Rift Regular
Posts: 173
Joined: Thu Feb 11, 2010 9:46 pm

Probability Question

Post by X Abstract X »

Hey guys, I need some help with a probability question.

- We have 4 10-sided dice
- Success level starts at 0
- If a 9 or 10 is rolled, ++success
- If a 1 is rolled, --success

We roll the 4 dice and after all 4 rolls, if success < 0, we get a "fail"

How can I calculate the probability of getting a "fail"?

Edit: I think I have an answer but I might be crazy. Can anyone confirm this?

P(fail) = 1/10 * 8/10 +
2/10 * 1/10 * 16/10 * 8/10 +
3/10 * 2/10 * 1/10 * 6/10 * 4/10 * 2/10 +
3/10 * 2/10 * 1/10 * 24/10 * 16/10 * 8/10 +
4/10 * 3/10 * 2/10 * 1/10 * 8/10 * 6/10 * 4/10 * 2/10 +
4/10 * 3/10 * 2/10 * 1/10 * 32/10 * 24/10 * 16/10 * 8/10
User avatar
Ginto8
ES Beta Backer
ES Beta Backer
Posts: 1064
Joined: Tue Jan 06, 2009 4:12 pm
Programming Language of Choice: C/C++, Java

Re: Probability Question

Post by Ginto8 »

well for it to fail, 1 must be rolled at least 1 more time than 9 or 10, so we have these 2 possible cases:
-0*(9 or 10) and (1 or 2 or 3 or 4)*(1), where P = 343/1000*1/10+49/100*1/100+7/10*1/1000+1/10000
-1*(9 or 10) and (2 or 3)*(1), where P = 2/10*7/10*1/100+2/10*1/1000
so P(fail) = 343/1000*1/10+49/100*1/100+7/10*1/1000+1/10000+2/10*7/10*1/100+2/10*1/1000 = 0.0416

Someone should check my work on this one though :lol:
Quit procrastinating and make something awesome.
Ducky wrote:Give a man some wood, he'll be warm for the night. Put him on fire and he'll be warm for the rest of his life.
N64vSNES
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 632
Joined: Thu Aug 12, 2010 11:25 am

Re: Probability Question

Post by N64vSNES »

Ginto8 wrote:well for it to fail, 1 must be rolled at least 1 more time than 9 or 10, so we have these 2 possible cases:
-0*(9 or 10) and (1 or 2 or 3 or 4)*(1), where P = 343/1000*1/10+49/100*1/100+7/10*1/1000+1/10000
-1*(9 or 10) and (2 or 3)*(1), where P = 2/10*7/10*1/100+2/10*1/1000
so P(fail) = 343/1000*1/10+49/100*1/100+7/10*1/1000+1/10000+2/10*7/10*1/100+2/10*1/1000 = 0.0416

Someone should check my work on this one though :lol:
....Fucking 12 year olds are way to smart these days :|
User avatar
eatcomics
ES Beta Backer
ES Beta Backer
Posts: 2528
Joined: Sat Mar 08, 2008 7:52 pm
Location: Illinois

Re: Probability Question

Post by eatcomics »

N64vSNES wrote:
Ginto8 wrote:well for it to fail, 1 must be rolled at least 1 more time than 9 or 10, so we have these 2 possible cases:
-0*(9 or 10) and (1 or 2 or 3 or 4)*(1), where P = 343/1000*1/10+49/100*1/100+7/10*1/1000+1/10000
-1*(9 or 10) and (2 or 3)*(1), where P = 2/10*7/10*1/100+2/10*1/1000
so P(fail) = 343/1000*1/10+49/100*1/100+7/10*1/1000+1/10000+2/10*7/10*1/100+2/10*1/1000 = 0.0416

Someone should check my work on this one though :lol:
....Fucking 12 year olds are way to smart these days :|
Well you see... no they aren't. Ginto is just a straight up bad ass.
Image
User avatar
bnpph
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 75
Joined: Thu Mar 10, 2011 12:30 pm

Re: Probability Question

Post by bnpph »

Here is how I solved it - I am sure there is a better way.
I first found probability of success incrementing or decrementing.
Then I found chance of rolling 4 dice (for example, rolling 2 + and 2 -)
Then I found number of times the result could be found (for example, 3+ 1- can be: +++-, ++-+, +-++, -+++)
Then I added up the values for -1, -2, -3 , -4 to find probability.

Code: Select all

_ = 7/10 chance
+ = 2/10 chance
- = 1/10 chance

+4 = (+,+,+,+)  1 *   16/10000                                                      =    16/10000
+3 = (+,+,+,_)  4 *   56/10000                                                      =   224/10000
+2 = (+,+,_,_)  6 *  196/10000 + (+,+,+,-)  4 *   8/10000                           =  1208/10000
+1 = (+,_,_,_)  4 *  686/10000 + (+,+,-,_) 12 *  28/10000                           =  3080/10000
+0 = (_,_,_,_)  1 * 2401/10000 + (+,-,_,_) 12 *  98/10000 + (+,+,-,-) 6 *   4/10000 =  3601/10000
-1 = (-,_,_,_)  4 *  343/10000 + (-,-,+,_) 12 *  14/10000                           =  1540/10000
-2 = (-,-,_,_)  6 *   49/10000 + (-,-,-,+)  4 *   2/10000                           =   302/10000
-3 = (-,-,-,_)  4 *    7/10000                                                      =    28/10000
-4 = (-,-,-,-)  1 *    1/10000                                                      =     1/10000

(1540 + 302 + 28 + 1) / 10000 = 18.71% chance
So you will have 18.71% of success being < 0

I have tested this with a quick program, and got ~19%, and so I am sure this is the correct.
User avatar
Ginto8
ES Beta Backer
ES Beta Backer
Posts: 1064
Joined: Tue Jan 06, 2009 4:12 pm
Programming Language of Choice: C/C++, Java

Re: Probability Question

Post by Ginto8 »

bnpph wrote:So you will have 18.71% of success being < 0

I have tested this with a quick program, and got ~19%, and so I am sure this is the correct.
Ah, yeah, I forgot to factor in the different combinations (ie ++-- and +-+- etc.). :lol:
Quit procrastinating and make something awesome.
Ducky wrote:Give a man some wood, he'll be warm for the night. Put him on fire and he'll be warm for the rest of his life.
User avatar
eatcomics
ES Beta Backer
ES Beta Backer
Posts: 2528
Joined: Sat Mar 08, 2008 7:52 pm
Location: Illinois

Re: Probability Question

Post by eatcomics »

Ginto8 wrote:
bnpph wrote:So you will have 18.71% of success being < 0

I have tested this with a quick program, and got ~19%, and so I am sure this is the correct.
Ah, yeah, I forgot to factor in the different combinations (ie ++-- and +-+- etc.). :lol:
Its alright we still <3 you ginot :D
Image
Post Reply