Working out the sides on a die and the numerical ratio on the die

In summary, the conversation discusses a probability problem involving a set of numbers and randomly drawing two numbers from the set. The goal is to find the probabilities of certain combinations occurring and determine the number of sides needed on the dice for each number to appear. The problem can be translated into simultaneous equations and solved using algorithms such as Buchberger's algorithm or Wu's method of elimination. The final solution involves a probability of 130/135 for one number and 2/135 for the others.
  • #1
lyric
2
0
Being a hobbiest programmer, I know enough about probability to get by. However, I've set myself an impossible (for me) calculation in my current personal project.

I have a set of numbers. For this particular problem it is a set of four numbers {248, 184, 120, 56}, but I'll be repeating the process for many different sets of numbers (both in value and size).

Twice, I randomly draw a number from the set. Each draw is independent of the last so each draw can be thought of as a roll of 2 identical dice. I am looking for the following probabilities occurring:

(248.248) || (248.184) || (248.120) || (248.56) || (184.120) = 1998/2000

(184.184) || (184.56) || (56.56) = 1/2000

(120.120) || (120.56) || (56.56) = 1/2000

And wondering which way I should 'load' my dice i.e. how many sides do they need and on how many sides should each number appear?

I'm not sure of the notation mathematics uses for this, so I've stuck in logical operators as used in computing. "." = AND, "||" = OR. I guess I'm looking for this

(A AND A) OR (A AND B) OR (A AND C) OR (A AND D) OR (B AND C) = 1998/2000

(B AND B) OR (B AND D) OR (D AND D) = 1/2000

(C AND C) OR (C AND D) OR (D AND D) = 1/2000

I've gotten close, but that (D AND D) reappearing in both groups has me absolutely stumped.

I'm more interested in the method than the answer (if there is one) as I need to repeat this for 183 more steps of different set sizes, values and probabilities and I'm calculating/feeding it all into my program by hand.
 
Physics news on Phys.org
  • #2
I would translate your equations to simultaneous equations in the unknowns a,b,c,d.

[tex] a^2 + ab + ac + ad + bc = \frac{1998}{2000} [/tex]
[tex] b^2 + bd + d^2 = \frac{1}{2000} [/tex]
[tex] c^2 + cd + d^2 = \frac{1}{2000} [/tex]

I can't tell whether you also want:

[tex] a + b + c + d = 1 [/tex]

If you do, the first equation becomes

[tex] a + bc = \frac{1998}{2000} [/tex]

Perhaps someone will see a simple to solve these equations. At the moment, I don't.

If you are trying to find rational number solutions for a,b,c,d this would fall under the topic of "simultaneous polynomial diophantine equations", about which I know nothing.

If you will accept real number solutions for a,b,c,d, this problem falls under the general topic of "simultaneous polynomial equations". Two general purpose algorithms for solving such things are "Buchberger's algorithm" and "Wu's method of elimination".

Of course, it is possible to write simultaneous equations which have no solutions.
 
  • #3
Are all your processes discrete uniform? (That is, for each set that you talking about, does each element have the same probability of occurring as every other element in the same set)

I'm assuming that each process (with the A,B,C,D) all come from the same set, so that the probability of anything happening will be the same. Is this right?

If this is the case, then independence simplifies everything and using definitions for probability (like P(A OR B) = P(A) + P(B) - P(A and B), and P(A and B) = P(A)P(B)) will make things easier.
 
  • #4
Stephen Tashi said:
I would translate your equations to simultaneous equations in the unknowns a,b,c,d.

[tex] a^2 + ab + ac + ad + bc = \frac{1998}{2000} [/tex]
[tex] b^2 + bd + d^2 = \frac{1}{2000} [/tex]
[tex] c^2 + cd + d^2 = \frac{1}{2000} [/tex]

I can't tell whether you also want:

[tex] a + b + c + d = 1 [/tex]

If you do, the first equation becomes

[tex] a + bc = \frac{1998}{2000} [/tex]

Perhaps someone will see a simple to solve these equations. At the moment, I don't.

If you are trying to find rational number solutions for a,b,c,d this would fall under the topic of "simultaneous polynomial diophantine equations", about which I know nothing.

If you will accept real number solutions for a,b,c,d, this problem falls under the general topic of "simultaneous polynomial equations". Two general purpose algorithms for solving such things are "Buchberger's algorithm" and "Wu's method of elimination".

Of course, it is possible to write simultaneous equations which have no solutions.

To solve, write the equations as integer polynomials, then find the Groebner basis of the equations with lex ordering (uses Buchenberger's algorithm). If the equations are consistent then one of the resulting polynomials will have one variable, e.g. 'a', then solve for example by applying the rational root theorem to get a finite list of candidate solutions in terms of the integer factorization of the first and last polynomial coefficients, then for each solution substitute into the remaining equations and solve.
 
  • #5
Thank you for the replies. I'm not strong on maths, so the terms/links provided have had me scrambling about learning new things, which I what I appreciate a lot. bpet, I must admit that that every second word in your post was like a foreign language to me - I've had to do a lot of reading! Thank you everyone for your replies.

I've realized that the 1/2000 probability was not helpful. I've changed it to 1/2025 as that was close enough for me and allowed me to begin from 2 dice with 45 sides. I also realized that probability is much like boolean algebra, which helped me a lot. The second two probability equations were the ones of interest to me, so I stuck with those.

P(BB or BD or DD) = 1/2025 and P(CC or CD or DD) = 1/2025

Through boolean algebra became:

P(B or D) = 1/45
P(C or D) = 1/45

It was then rather apparent that:

P(B) = 2/135
P(C) = 2/135
P(D) = 1/135

And, therefore:

P(A) = 130/135

Thank you all for your help!
 

1. How do you determine the sides on a die?

The number of sides on a die can be determined by counting the number of pips, or dots, on each face of the die. A standard die has six sides, each with a different number of pips ranging from one to six.

2. What is the numerical ratio on a die?

The numerical ratio on a die refers to the proportion of the numbers represented on each side. For example, on a standard die, the ratio of odd numbers to even numbers is 3:3, or 1:1.

3. How is the numerical ratio on a die calculated?

The numerical ratio on a die is calculated by dividing the number of sides with the same number of pips by the total number of sides. For example, on a standard die, there are three sides with one pip and three sides with two pips, resulting in a ratio of 3:3 or 1:1.

4. Are there different types of dice with varying numerical ratios?

Yes, there are many different types of dice with varying numerical ratios. Some dice may have more or less than six sides, while others may have different proportions of numbers represented on each side. These variations can be used for different types of games and activities.

5. How does understanding the sides and numerical ratio on a die relate to science?

Understanding the sides and numerical ratio on a die is important in many areas of science, such as probability and statistics. It can also be used in experiments and simulations to represent random events. Additionally, understanding the properties of a die can help scientists design and test new games and activities.

Similar threads

  • Set Theory, Logic, Probability, Statistics
Replies
10
Views
2K
  • Precalculus Mathematics Homework Help
2
Replies
53
Views
5K
  • Set Theory, Logic, Probability, Statistics
Replies
6
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
5
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
1
Views
2K
  • Set Theory, Logic, Probability, Statistics
2
Replies
41
Views
3K
  • Set Theory, Logic, Probability, Statistics
Replies
29
Views
3K
Replies
1
Views
482
Replies
2
Views
4K
  • Set Theory, Logic, Probability, Statistics
Replies
20
Views
8K
Back
Top