Probability involving coin flips

  • Thread starter Thread starter Kalinka35
  • Start date Start date
  • Tags Tags
    Probability
Click For Summary

Homework Help Overview

The problem involves calculating the probability of observing a specific number of changes in the outcomes of a series of coin flips, where a change is defined as a transition from heads to tails or vice versa. The context is centered around the probability of getting heads, denoted as p, and the number of flips, n, particularly when p is set to 1/2.

Discussion Character

  • Exploratory, Mathematical reasoning, Problem interpretation

Approaches and Questions Raised

  • Participants discuss the use of the binomial probability mass function and the counting of possible changes between flips. There is exploration of the total number of ways to achieve k changes in n flips and the implications of the ratio of these counts. Questions arise regarding the justification for adjustments made to the initial probability formulation.

Discussion Status

The discussion is ongoing, with participants sharing their reasoning and questioning the validity of their approaches. Some guidance has been offered regarding the counting of outcomes and the relationship between changes and the initial conditions of the flips. There is no explicit consensus yet, but productive lines of inquiry are being explored.

Contextual Notes

Participants are working under the assumption that p=1/2 and are grappling with the implications of this on their calculations. There is mention of discrepancies between calculated probabilities and theoretical expectations, prompting further examination of the underlying reasoning.

Kalinka35
Messages
48
Reaction score
0

Homework Statement


We are flipping a coin with probability p of getting heads n times.
A "change" occurs when an outcome is different than the one before it. For example, the sequence HTHH has 2 changes.
If p=1/2 what is the probability that there are k changes?

Homework Equations


I've been working with the probability mass function of a binomial random variable:
(n C k) pk(1-p)n-k

The Attempt at a Solution


For the n flips there are n-1 possible "gaps" between flips when change could occur.
I then reasoned that at the end of every flip since you a flipping a fair coin, there is a 1/2 chance of getting a change and a 1/2 chance of not getting a change. My resulting formulation for probability of k changes in n flips was:
(n-1 C k)((1/2)k)((1/2)n-k)
but I worked out explicitly the probabilities of k changes for n=2, 3, and 4 and this function did not give me at all correct answers. I'm not sure how I should approach it differently.
 
Physics news on Phys.org
You've the right idea with (n-1 C k) counting the numbers of ways to get k flips in n throws in terms of where it flips. So how many total ways are there of throwing the coin n times and getting k flips? Now how many ways of throwing the coin n times without that restriction? Isn't the ratio going to be the probability?
 
"So how many total ways are there of throwing the coin n times and getting k flips? "
I say it's (n-1 C k) again.

"Now how many ways of throwing the coin n times without that restriction?"
2n

So this would give (n-1 C k)/2n, but when I run it against my calculated probabilities this gives half the value of the original answer. So it seems I should multiply by 2 in the formula. Not sure how to justify that though. Is it because you can have changes from H to T and T to H?
 
Kalinka35 said:
"So how many total ways are there of throwing the coin n times and getting k flips? "
I say it's (n-1 C k) again.

"Now how many ways of throwing the coin n times without that restriction?"
2n

So this would give (n-1 C k)/2n, but when I run it against my calculated probabilities this gives half the value of the original answer. So it seems I should multiply by 2 in the formula. Not sure how to justify that though. Is it because you can have changes from H to T and T to H?

Yes, if you have k flips, you can either start with H or T. 2*(n-1 C k) total ways, right?
 
Okay that was my line of reasoning. I just wanted to be sure I wasn't making a major miscalculation.
Thanks very much for your clear explanation.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
Replies
1
Views
1K
Replies
2
Views
1K
  • · Replies 15 ·
Replies
15
Views
7K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
1K
  • · Replies 2 ·
Replies
2
Views
3K