Pascal: The proverbial coin toss.

  • Thread starter Thread starter schema
  • Start date Start date
  • Tags Tags
    Pascal
Click For Summary
SUMMARY

The forum discussion centers on a logic challenge involving the comparison of probabilities between two sequences of coin flips, specifically HTHTHTHHTHTHTHTHTH and HHHHHHHHTTTTTTTTTT. Participants suggest using the Pascal triangle to analyze the sequences, while also emphasizing the importance of understanding whether the task is to compute or compare probabilities. It is established that sequences of independent flips of a fair coin have the same probability if they are of equal length, but the discussion raises questions about the impact of sequence repetition and independence on the probabilities.

PREREQUISITES
  • Understanding of probability theory, specifically regarding independent events.
  • Familiarity with the Pascal triangle and its applications in probability.
  • Basic knowledge of Bayesian statistics and its relevance to probability assessments.
  • Experience with programming concepts to implement a solution script.
NEXT STEPS
  • Learn how to apply the Pascal triangle in probability calculations.
  • Investigate the implications of sequence independence in probability theory.
  • Explore Bayesian statistics and its approach to probability comparisons.
  • Develop a script in a programming language like Python to automate probability calculations for coin flip sequences.
USEFUL FOR

Computer science students, probability theorists, and anyone interested in understanding the complexities of probability comparisons in sequences of random events.

schema
Messages
13
Reaction score
0
I should preface this question by saying that I am a computer science major.

A logic question was posed in an IT class as a challenge. It is extra-curricular and pertains very little to actual subject matter. The question, I assume, was a 'satirical' reference to the pascal language, or perhaps binary code. None of us are math majors, obviously, so hence the challenge. I think our proctor was hinting that we should program a script to solve this, which i intend to do. I just need some guidance in how I find the method in which I can deduce a solution.

We were give 2 sequences of flips (HT) and asked to compare the probabilities of the sequences.I immediately thought of the pascal triangle, which i think is a step in the right direction. However, one of the sequences is repeating while the other is seemingly random:

e.g. HTHTHTHHTHTHTHTHTH
HHHHHHHHTTTTTTTTTT

My question is, do I approach this by mapping this out with pascal triangle and just taking the probability of H in each sequence, or do i need to apply another method to take into account the repeating sequence?
 
Last edited:
Physics news on Phys.org
Maybe I don't understand the question. However any specific sequence has a probability (assuming a fair coin) of (1/2)n, where n is the number of tosses.
 
  • Like
Likes 1 person
thank you. that is more direct and simple than I thought.
 
Last edited:
schema said:
and asked to compare the probabilities of the sequences.

There are other ways to "compare" two probabilities than by computing each probability. We should first determine whether your instructor said to "compare" them or to "compute" them.

Two sequences of independent flips of a fair coin have the same probability if they have the same length.
 
Stephen Tashi said:
There are other ways to "compare" two probabilities than by computing each probability. We should first determine whether your instructor said to "compare" them or to "compute" them.

Two sequences of independent flips of a fair coin have the same probability if they have the same length.

The directive was to find "how much more probable" one was to the other. I didn't know if the sequence repetition played a part in how to find the solution.

thank you for the help. this is not my area of expertise.
 
mathman said:
Maybe I don't understand the question. However any specific sequence has a probability (assuming a fair coin) of (1/2)n, where n is the number of tosses.

That's assuming independence, which seems questionable in both the examples given.
 
awkward said:
That's assuming independence, which seems questionable in both the examples given.

The problem could be investigated not assuming a fair coin or not assuming independence if we take a Bayesian point of view. But if we take that point of view, a problem posed by an instructor not teaching a class in Bayesian statistics probably should be solved by assuming independence and a fair coin.
 

Similar threads

  • · Replies 41 ·
2
Replies
41
Views
8K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
3
Views
2K
Replies
3
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 45 ·
2
Replies
45
Views
5K
  • · Replies 19 ·
Replies
19
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
Replies
4
Views
3K
  • · Replies 10 ·
Replies
10
Views
1K