Probability Modeling for Coin Flips

  • Context: Undergrad 
  • Thread starter Thread starter phya2020a
  • Start date Start date
  • Tags Tags
    Modeling Probability
Click For Summary

Discussion Overview

The discussion revolves around probability modeling for a scenario involving multiple coin flips, where each coin has different scoring outcomes based on whether it lands on heads or tails. Participants are exploring how to calculate the probability of achieving a negative total score after a series of trials and iterations.

Discussion Character

  • Exploratory
  • Technical explanation
  • Mathematical reasoning
  • Homework-related

Main Points Raised

  • One participant presents a specific scenario involving five coins with different scoring outcomes for heads and tails, and asks for the probability of the total score being negative after a set number of flips.
  • Another participant suggests calculating the probability distribution of the sum of scores, either by enumerating all possible outcomes or using analytic tools like probability generating functions.
  • A participant questions whether the problem can be solved manually and requests a broad approach for someone with programming skills to model the situation.
  • There are suggestions to draw a tree diagram to visualize all possible combinations of outcomes and merge probabilities for similar events to form a distribution.
  • One participant expresses skepticism about the feasibility of manual calculations for this type of problem, indicating that a deterministic calculation would require generating all combinations of heads and tails.
  • Another participant mentions that if the coins are fair and the tosses are independent, this should be clarified, as it affects the calculations.
  • There is a mention of using the Monte-Carlo method as an alternative for approximating the solution if deterministic calculations are not feasible.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the best method to calculate the probabilities, with some advocating for manual calculations and others suggesting programming approaches. The discussion remains unresolved regarding the specific probability values sought.

Contextual Notes

Participants express uncertainty about the feasibility of manual calculations and the need for clear definitions regarding the fairness of the coins and independence of flips, which are crucial for accurate modeling.

Who May Find This Useful

Individuals interested in probability theory, mathematical modeling, and programming applications in statistical analysis may find this discussion relevant.

phya2020a
Messages
3
Reaction score
0
Hi math gurus .
I have probability modeling question.
There are 5 coins A, B, C, D,E,F . Each coin has 2 outcomes on flipping Head (H) or Tail (T). For each coin type there is a different score associated with H or T outcome. The cumulative sum of score will be recorded for the number of flips performed for each coin type.

Trial X :
Coin type ...If H, Score....If T, Score...# of flips
A......110...... -70.....14
B......87......-62......9
C......90......-70......8
D......100......-70.....8
E......94......-62......4

Example :
So if A is flipped and outcome is H then score will be 110 and if outcome is T , the score will be -70. For H, T , H, H, T outcomes the score will be 110-70+110+110-70 = 190

For Trial X
Score A ( 14 flips)=190, Score B( 9 flips)= -25, Score C( 8 flips)= -140, Score D( 8 flips)= -110, Score E ( 4 flips)= 32

Total score for trial X = -53

Ques 1. What will be the probability of 'Total score for trial X ' be negative ?

Ques 2. If 20 iterations of trial X are performed then what will be the probability of sum of 'Total score for trial X ' for 20 iterations be negative ?

Example:
Iteration 1 : Total score for trial X = -53
Iteration 2 : Total score for trial X= 150
Iteration 3 : Total score for trial X = 50
...and so on

Sum ( Iteration 1 through Iteration 20) = 1200 { positive in this case}
 
Physics news on Phys.org
Hey phya2020a.

Hint: What is the distribution of the sum?

You can either calculate the probability function by assigning a probability to every single outcome (for n trials you will have 2^n outcomes) or you can use analytic tools like a probability generating function.

I would as a suggestion, find the PDF for every single possibility and then sum all probabilities where the sum is less than 0.
 
Hi chiro,
Thanks for the response .
Sorry I have no background in probability .

Can this be done manually ?

If no , I would appreciate if you could provide the broad approach/ additional details , so that I can request someone with programming background to have it coded & modeled .

All I am looking for is a value 0.01 to 0.99 for the 2 questions

Regards
phya




chiro said:
Hey phya2020a.

Hint: What is the distribution of the sum?

You can either calculate the probability function by assigning a probability to every single outcome (for n trials you will have 2^n outcomes) or you can use analytic tools like a probability generating function.

I would as a suggestion, find the PDF for every single possibility and then sum all probabilities where the sum is less than 0.
 
Basically you draw a tree diagram for all possible combinations and when you have more than one event that has the same outcome, then you merge the probabilities together.

Once you have done this your distribution is done by collecting all different events and their probabilities.

Then you take this distribution and add up all the probabilities for events less than 0 and that is your answer.

If you draw a tree diagram, note that every single flip of the coin is independent and the probability for A = a and B = b (A is one flip, B is another) is P(A=a) 8 P(B=b) so if you have probability of success is p, then probability of failure is 1 - p.

Some examples are:

P(A = success, B = success) = P(A=success) * P(B=success) = p*p = p^2
P(A = success, B = failure) = P(A=success)*P(B=failure) = p*(1-p).

Basically do this for all branches (which is 2^n branches) up to all leaves (i.e. the final branch with no other branches), collect all similar events together probability wise and then form a distribution using this.

The you just add all probabilities up where the event is less than zero and you're done.
 
phya2020a said:
Can this be done manually ?

I don't see any way to do it with a pencil-and-paper calculation. (I think you are asking about a general type of problem and you just gave one specific example.)

If no , I would appreciate if you could provide the broad approach/ additional details , so that I can request someone with programming background to have it coded & modeled .

If your coins are all "fair" and the the results of the tosses are independent then you should say so. Other than those details, I think you have described the problem well enough so that a programmer with a knowledge of probability theory could write a program to determine the answer. As Chiro says, the way to do a deterministic calculation is to generate all possible combinations of total numbers of heads and tails of each coin and note the score that results. To each score, you add the probability of each combination that results in that score.

A programmer who can't implement the deterministic calculation could get an approximate answer using the Monte-Carlo method.
 
Chiro/Stephen Tashi -appreciate all your help.
-p
 

Similar threads

  • · Replies 20 ·
Replies
20
Views
3K
  • · Replies 41 ·
2
Replies
41
Views
9K
Replies
2
Views
4K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 50 ·
2
Replies
50
Views
16K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 16 ·
Replies
16
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K