Probability problem - from another forum

In summary, the probability problem discussed in another forum involves finding the likelihood of drawing a specific card from a deck of playing cards after multiple shuffles. The solution involves using the concept of permutations and combinations to calculate the probability of each possible outcome. It also highlights the importance of understanding the fundamental principles of probability in solving more complex problems.
  • #1
Stephen Tashi
Science Advisor
7,861
1,598
This interesting problem was posted on another math forum (http://www.sosmath.com/CBB/viewtopic.php?f=6&t=62620):

The probability that a six sided (possibly loaded) die lands on the ith face is [itex] P_i [/itex]. The [itex] P_i [/itex] are unknown. We are given the values of [itex] S_i [/itex] = the probability that the [itex]i[/itex]_th face is first to land 100 times in a sequence of independent tosses of the die. Find the [itex] P_i [/itex] as functions of the [itex] S_i [/itex].
 
Physics news on Phys.org
  • #2
Although you cannot bias a coin, let's start with just heads and tails:

For each k from 100 to 199, we can calculate the probability to get 100 times heads and the probability to get 100 times tails. The resulting expression might look ugly, but not hard to set up.

Now we can add a third side to the coin ("corner"). For each k from 100 to 198, we can calculate the probability to get 100 corners - and for k where (heads+tails) exceeds 100, we know the probability that we stop from the previous step.

I think in this way it is possible to reduce the original 100^6 problem to five problems with ~100-500 cases with explicit formulas for each case.
 
  • #3
mfb said:
For each k from 100 to 199, we can calculate the probability to get 100 times heads and the probability to get 100 times tails. The resulting expression might look ugly, but not hard to set up.

I get this for the probability that you get 100 heads first.

[tex] \sum_{k=0}^{99} \frac {(99+k)!} {99! k!} {P_h}^{100}{P_t}^k[/tex] the k'th term is the probability of first getting 99 heads and k tails in any order, and then a single head.

Now we can add a third side to the coin ("corner"). For each k from 100 to 198, we can calculate the probability to get 100 corners - and for k where (heads+tails) exceeds 100, we know the probability that we stop from the previous step.

I think in this way it is possible to reduce the original 100^6 problem to five problems with ~100-500 cases with explicit formulas for each case.

I think you meant for k from 100 to 298?
I don't think it's that easy. I think you get a double summation, where you have to sum over the total number of throws as well as over the number of heads or tails.
 
Last edited:
  • #4
Oh typo, should be 298, yes.
Yeah, you get a sum with the previous sums as summands. So what? Still something you can write down, or calculate.
 
  • #5
willem2 said:
I get this for the probability that you get 100 heads first.

[tex] \sum_{k=0}^{99} \frac {(99+k)!} {99! k!} {P_h}^{100}{P_t}^k[/tex]


the k'th term is the probability of first getting 99 heads and k tails in any order, and then a single head.

...

Using the Negative Binomial CDF this can be expressed in terms of the regularised incomplete Beta function

[tex]1-I_{P_t}(100,100)=I_{P_h}(100,100)[/tex]
 
  • #6
Some intuitive musings:

Suppose I'm required to bet on face 1 "winning" in game of independent random tosses, but I have a choice about what what game is played. I can pick from games like "best 1 out of 1", "best out of 7", "first to occur 5 times in a row", "first to happen 100 times", etc.

My intuition is that if I have the advantage that the probability p[1] of face 1 coming up is greater than the other p then I have a better chance of winning in the games that can involve more throws than the "1 out of 1" toss game.

My intuition says that my chances of winning any of those games are greater if the probability of the other faces 1 - p[1] is divided equally among the the other faces (maximizing their competition with each other, so to speak).

One could define "perverse" games where the player with advantage in "1 out of 1" game has a disadvantage in games of longer length. However, in natural examples ( best n out of m, first n in a row, first to occur n) I think the longer length of the game amplifies the advantage a player holds in a "1 out of 1' game. I wonder if there is general mathematical argument that this is true.
 
  • #7
Stephen Tashi: Sure, that should be clear as for longer games the relative standard deviation goes down.

One could define "perverse" games where the player with advantage in "1 out of 1" game has a disadvantage in games of longer length.
I don't think you can go above 50%, but certainly above 1/6:

Let p1=0.4, p2=0.6, pi=0 otherwise, you need 1s to win.
"1 out of 1" has a winning probability of 0.4, "first to get 100" (="best of 199") has a winning probability of just 0.23%.
 
  • #8
mfb said:
"first to get 100" (="best of 199") has a winning probability of just 0.23%.

OK, this illustrates my inutuition that if you have an advantage in the "1 out of 1" game then the longer games favor you even more. If you are at a disadvantage, you have a greater disadvantage in the longer games.
 
  • #9
The probability with 6 faces on the die with probabilities P1...P6 and the probabiltiy to get the 1 face to 100 first is:

[tex] \frac {{P_1}^{100}}{99!}

\sum_{k_2 =0}^{99} \frac {{P_2}^{k_2}} {{k_2}!}
\sum_{k_3 =0}^{99} \frac {{P_3}^{k_3}} {{k_3}!}
\sum_{k_4 =0}^{99} \frac {{P_4}^{k_4}} {{k_4}!}
\sum_{k_5 =0}^{99} \frac {{P_5}^{k_5}} {{k_5}!}
\sum_{k_6 =0}^{99} \frac {{P_6}^{k_6} (99 + k_2+k_3+k_4+k_5+k_6)!} {{k_6}!}

[/tex]

I think I see how to compute this.

I think I can put the result of the innermost summation in a table with 400 elements, since it only depends on k2+k3+k4+k5.

The result of the 2 innermost summations only depends on k_2+k_3+k_4, so it can fit in a 300 element table. The 3 innermost summations fit in a 200 element table and the 4 innermost in a 100 element table.
All the tables will have to be recomputed when any of the Probabilities change.

This would make it fast enough to use some root finding algorithm to get P1...P6 from S1...S6. 6 variable root finding will be tricky tough.
 
  • #10
That looks similar to the approach I suggested in post 2, thanks for the formula.

Inverting that looks way too messy, but numeric approaches should work as increasing/decreasing Pi will always increase/decrease Si.
 
  • #11
The first problem that pops up when implementing it, is that the numbers involved can get larger than the maximum of double precision floating point numbers. I could use a multipecision library, but I don't need the extra precision, just a larger exponent.

I need to compute 1000 table values, and sum 100 numbers for each table value, and then repeat 6 times for each Si to compute, and then repeat the computation many times to find the rootm so I'd rather not use a multiprecision library. Maybe I can store the numbers as logarithms?
 

1. What is the difference between probability and odds?

Probability and odds represent different ways of measuring the likelihood of an event occurring. Probability is a number between 0 and 1 that represents the likelihood of an event occurring, with 0 indicating impossibility and 1 indicating certainty. Odds, on the other hand, are typically expressed as a ratio of the number of ways an event can occur to the number of ways it cannot occur. For example, if the odds of winning a game are 2 to 1, it means that there are two ways to win for every one way to lose.

2. How is probability calculated?

Probability is calculated by dividing the number of favorable outcomes by the total number of possible outcomes. For example, if you roll a six-sided die, the probability of rolling a 3 would be 1/6, because there is only one way to roll a 3 out of six possible outcomes.

3. What is the difference between independent and dependent events?

Independent events are events where the outcome of one event does not affect the outcome of the other. For example, flipping a coin twice would be considered independent events, as the outcome of the first flip does not affect the outcome of the second flip. Dependent events, on the other hand, are events where the outcome of one event does affect the outcome of the other. An example of this would be drawing two cards from a deck without replacing the first card drawn.

4. How do you use the addition and multiplication rules of probability?

The addition rule states that the probability of either of two mutually exclusive events occurring is equal to the sum of their individual probabilities. For example, the probability of rolling either a 2 or a 4 on a six-sided die would be 1/6 + 1/6 = 1/3. The multiplication rule states that the probability of two independent events occurring together is equal to the product of their individual probabilities. For example, the probability of flipping a heads and then rolling a 3 on a six-sided die would be 1/2 * 1/6 = 1/12.

5. How can probability be applied in real life?

Probability can be applied in a variety of real-life situations, such as predicting the weather, estimating the likelihood of a stock market crash, or determining the chances of winning a game of chance. It is also used in fields such as insurance, where probability is used to calculate risk and determine premiums.

Similar threads

  • Calculus and Beyond Homework Help
Replies
6
Views
857
  • General Math
Replies
1
Views
4K
  • Precalculus Mathematics Homework Help
Replies
8
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
6
Views
3K
  • Precalculus Mathematics Homework Help
Replies
7
Views
8K
  • Precalculus Mathematics Homework Help
Replies
4
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
2
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
8
Views
4K
  • Calculus and Beyond Homework Help
Replies
2
Views
5K
  • Precalculus Mathematics Homework Help
Replies
18
Views
3K
Back
Top