Skip to Content
 

Chance calculation help needed

2 replies [Last post]
X3M
X3M's picture
Offline
Joined: 10/28/2013

For a balance check, I decided to calculate one little skirmish from start to end. Thus with some decision taking moments that will branch of in the tree with chances.

I don't know if I am calculating it correctly. Thus I need help with this. Just some back up calculations from the math people here is what I ask.

In my game:
A die roll means doing damage.
Rolling 1 or 2, means 0 damage.
Rolling 3 or 4, means 1 damage.
Rolling 5 or 6, means 2 damage.
The results of all the dice are added up.
Thus with 2 dice, I could get 0 to 4 damage, with 3 dice 0 to 6 damage etc.

For simplicity, I only ask to calculate 2 dice.

Situation A (99% certain that this is correct):
2 Dice are rolled. What are the chances to roll damage:
0? 1? 2? 3? and 4?

A chance out of 36
0 damage: 4 = 11,1%
1 damage: 8 = 22,2%
2 damage: 12 = 33,3%
3 damage: 8 = 22,2%
4 damage: 4 = 11,1%
Correct?

***

Situation B (absolutely (somehow) a question for me):
Again 2 dice are rolled. However, this time if you roll a 1(=0 damage) with one of the dice. You may reroll that die just 1 more time. If both dice, both roll a 1 (=0 total damage), both may reroll again.
When rolling 2, the damage is of course 0 and no reroll is allowed for that die.

Again the chances of getting damage:
0? 1? 2? 3? and 4?

I have currently 2 different solutions for situation B!
I know that the chance on 0 damage diminishes compared to situation A, but the total damage will never exceed 4.

0 damage: 7,4% or 4,9%
1 damage: 20,4% or 17,3%
2 damage: 33,3% or 32,4%
3 damage: 25,9% or 30,2%
4 damage: 13,0% or 15,1%

Which one is the one that I need?

Zag24
Offline
Joined: 03/02/2014
Here you go

Looking just at one die

0: 1/6 + (1/6)(1/3) = 4/18 = 2/9
1: 1/3 + (1/6)(1/3) = 7/18
2: 1/3 + (1/6)(1/3) = 7/18

That is, the chance of rolling a 0 is 1/6 (i.e. rolling a 2) plus 1/6 * 1/3 (i.e. rolling a 1, then rolling a 1 or a 2).

So the chance of getting these combos is
0, 0: (2/9)(2/9) = 4/81
0, 1: (2/9)(7/18) = 7/81
0, 2: (2/9)(7/18) = 7/81
1, 0: (7/18)(2/9) = 7/81
1, 1: (7/18)(7/18) = 49/324
1, 2: (7/18)(7/18) = 49/324
2, 0: (7/18)(2/9) = 7/81
2, 1: (7/18)(7/18) = 49/324
2, 2: (7/18)(7/18) = 49/324

Sum, rolling 2 dice
0: 4/81 ~= 4.9%
1: 7/81 + 7/81 ~= 17.3%
2: 7/81 + 49/324 + 7/81 ~= 32.5%
3: 49/324 + 49/324 ~= 30.2%
4: 49/324 ~= 15.1%

So your second set was correct.

X3M
X3M's picture
Offline
Joined: 10/28/2013
Thanks for the info.

Thanks for the info.

It seems that I noticed my mistake in time.

Syndicate content


forum | by Dr. Radut