Formula for dice probability where numbers have different values

Click For Summary
SUMMARY

This discussion focuses on calculating the probabilities of rolling successes with multiple D6 dice in a game scenario. The user seeks to determine the probability of achieving a specific number of successes, defined as rolling 4s, 5s, and 6s, across 2D6 to 6D6. Additionally, the conversation explores the complexities introduced when two players roll against each other, particularly how an attacker's roll of a 3 can cancel the defender's successes. The mathematical formulation provided includes the polynomial G(x) for three dice, which accurately represents the probabilities of achieving zero to three successes.

PREREQUISITES
  • Understanding of basic probability theory
  • Familiarity with polynomial functions and their coefficients
  • Knowledge of D6 dice mechanics in gaming
  • Ability to perform combinatorial calculations
NEXT STEPS
  • Research "Combinatorial probability for dice games" to understand foundational concepts.
  • Learn about "Generating functions in probability" to apply polynomial techniques effectively.
  • Explore "Game theory basics" to analyze competitive scenarios between players.
  • Investigate "Monte Carlo simulations for probability estimation" to validate theoretical calculations.
USEFUL FOR

Game developers, mathematicians, and hobbyists interested in probability calculations for dice-based games will benefit from this discussion.

omni989
Messages
1
Reaction score
0
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 each other with their successes cancelling each other 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
 
Physics news on Phys.org
For 3 dice

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

= (\frac{3}{6} + \frac{2x}{6} + \frac{x^2}{6}) ^3

= \frac{1}{6^3}( 3 + 2x + x^2)^3

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

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

Similar threads

  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 41 ·
2
Replies
41
Views
6K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 16 ·
Replies
16
Views
4K
  • · Replies 42 ·
2
Replies
42
Views
5K
  • · Replies 8 ·
Replies
8
Views
5K
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
6K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K