Pascal: The proverbial coin toss.

  • Context: Undergrad 
  • Thread starter Thread starter schema
  • Start date Start date
  • Tags Tags
    Pascal
Click For Summary

Discussion Overview

The discussion revolves around a logic question related to comparing the probabilities of two sequences of coin flips, specifically in the context of programming a solution. Participants explore methods to analyze the sequences, considering factors like independence and the nature of the sequences themselves.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant suggests using Pascal's triangle to deduce probabilities, while questioning whether to account for the repeating nature of one sequence.
  • Another participant states that the probability of any specific sequence of flips is (1/2)n, where n is the number of tosses, assuming a fair coin.
  • A later reply emphasizes that two sequences of independent flips have the same probability if they are of the same length, but questions whether the instructor's intent was to compute or compare probabilities.
  • One participant expresses uncertainty about the role of sequence repetition in determining probability comparisons.
  • Another participant raises the issue of independence, suggesting that the problem could be approached from a Bayesian perspective, though noting that this may not align with the instructor's teaching focus.

Areas of Agreement / Disagreement

Participants express differing views on how to approach the problem, particularly regarding the assumptions of independence and the implications of sequence repetition. There is no consensus on the best method to analyze the sequences.

Contextual Notes

Participants highlight the importance of clarifying the instructor's directive regarding whether to compute or compare probabilities, as well as the assumptions about the fairness of the coin and independence of flips.

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   Reactions: 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 6 ·
Replies
6
Views
2K
  • · Replies 41 ·
2
Replies
41
Views
9K
  • · Replies 66 ·
3
Replies
66
Views
8K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 13 ·
Replies
13
Views
6K
  • · Replies 19 ·
Replies
19
Views
3K
  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 6 ·
Replies
6
Views
5K
  • · Replies 1 ·
Replies
1
Views
3K