Formula for dice probability where numbers have different values

  • Thread starter omni989
  • Start date
  • #1
1
0

Main Question or Discussion Point

Hi all

Im hoping someone here can help me out. I'm developing a game and I have a dice system I'm using but I am having trouble mapping the probabilities. I should state that I know very little about such things and my maths is basic but a reasonably explained answer should cause me no problems.

Firstly I need to calculate the probability of rolling X number of successes on multiple D6 where 1-3 are failures, 4 & 5 are one success each and 6 is two successes. I will need to map out the probability of exactly 1 success, 2 success, 3 success etc on 2D6, 3D6, 4D6 up to 6 D6.

In case you are finding that too easy can anyone suggest how I would go about calculate the probabilities with the following variance. There are now two players rolling against eachother with their successes cancelling eachother out, the winner is the player with successes left. For one player, the attacker, 3 is also a success and cancels upto two 4's that the defender rolls. How can I map how effective the extra number will be to the attacker and how detrimental to the defender? Taking into account that if the attacker does not roll a 3 then the defender gets his 4's but if he does then he loses some of them.

I do hope I have explained that clearly and that someone will offer some solutions.

Thanks in advance
 

Answers and Replies

  • #2
Stephen Tashi
Science Advisor
7,007
1,233
For 3 dice

Let [tex] G(x) = (\frac{1}{6} + \frac{1}{6} + \frac{1}{6} + \frac{x}{6} + \frac{x}{6} + \frac{x^2}{6})^3[/tex]

[tex] = (\frac{3}{6} + \frac{2x}{6} + \frac{x^2}{6}) ^3 [/tex]

[tex] = \frac{1}{6^3}( 3 + 2x + x^2)^3 [/tex]

If my hand calculation is correct this is:
[tex] = \frac{1}{6^3}(27 + 54x + 63x^2 + 44x^3 + 21x^4 + 6x^5 + x^6) [/tex]

Probability of zero successes [itex] = \frac{1}{6^3}(27) [/itex]
Probability of one success [itex] = \frac{1}{6^3}(54) [/itex] ( = the coefficient of [itex] x [/itex] .)
Probability of two successes [itex] = \frac{1}{6^3}(63)[/itex] ( = the coefficient of [itex] x^2 [/itex])
....etc.
 

Related Threads for: Formula for dice probability where numbers have different values

Replies
42
Views
2K
  • Last Post
Replies
3
Views
2K
  • Last Post
Replies
2
Views
4K
  • Last Post
Replies
9
Views
2K
  • Last Post
Replies
16
Views
304
  • Last Post
Replies
2
Views
1K
Replies
3
Views
5K
  • Last Post
Replies
10
Views
7K
Top