How many ways can a coin be tossed 14 times with at least 6 tails in a row?

  • Thread starter toothpaste666
  • Start date
  • Tags
    Sequence
In summary: So you have:There are 9 letters in the word, and 3 of them are H's. So there are a total of 12 arrangements.
  • #1
toothpaste666
516
20

Homework Statement


Suppose a coin is tossed 14 times and there are 3 heads and 11 tails. How many such sequences are there in which there are at least 6 tails in a row?

The Attempt at a Solution


I will treat the sequence of coin tosses as a "word" where each letter is a toss and is either an H or T to represent the result of that toss. In order to ensure at least 6 tails in a row I will treat "TTTTTT" as a separate "letter". so now there are 14 - 6 + 1 = 9 letters in the word and there are 3 H's , 5 T's and 1 "TTTTTT"
we need to find the number of arrangements of these letters
there are 9 letters , 3 of type 1 , 5 of type 2 and 1 of type 3 so the total number of arrangements is
9!/3!5!1! = 9!/3!5!

is this correct?
 
Physics news on Phys.org
  • #2
Code:
counter = 0
validtosses = 0
matchingtosses = 0
bstring = ""

while not counter == int('11111111111111',2):  #tails = 1, heads = 0
    bstring = '{0:08b}'.format(counter)  #convert our counter to binary string
    if bstring.count("1") == 11:  #if there are exactly 11 tails increment validtosses
        validtosses += 1
        if not bstring.find("111111") == -1:  #if there is a string of "111111" increment matchingtosses
            matchingtosses +=1
    counter += 1

print "valid tosses: %d \n matching tosses: %d" % (validtosses, matchingtosses)

valid tosses: 364
matching tosses: 224

Your work is a little hard to follow. Are you sure you aren't double counting?:
HHH†TTTTT
HHHT†TTTT


are the same, but look different under your methodology († = TTTTTT)

EDIT: fixed!
 
Last edited:
  • #3
Why do you think that's the number of arrangements?

I doubt the answer will involve only factorials because the Tails are not distinguishable from one another, and neither are the heads.

We know that there is a string of at least six consecutive Tails. Call the first string of six Tails in that sequence Bob. How many tosses can there be before Bob begins? In the case where that number is k, how many different possible combinations are there of the other five tosses in the series?
 
Last edited:
  • #4
EDIT: Made another error, now fixed:

So we will do a sequence like you suggested, with † = TTTTTT. There are 9 possible starting indices for †.
For a given index, n : 1 ≤ n ≤ 8, the formula for the number of combinations is as follows:
c = (8-n) choose (2) + (n-1)(8-n) + (n-1) choose 2 = 21

The reason for this is that, except for where n = 0, each successive value of n requires that † have an [H] immediately preceding it, otherwise it we will double count between indexes. Thus, 8-n is the amount of space on the right side of †, and n-1 is the amount of space on the left side of †, minus 1 because of the [H] that has to be preceding it. Of the two remaining head flips, two can be on the left "(n-1) choose 2", two can be on the right "(8-n) choose 2", or 1 can be on each side (n-1)(8-n).
For each of these 8 indices, we get 21 combos, or 168 total. We have to go back and calculate the value at n = 0, because when n = 0 it can't have an [H] preceding the †, so the formula above doesn't work. Instead, there are 8 spaces to the right and three [H] to distribute, so 8c3, which is 56. Thus the answer becomes 168+56 = 224
 
Last edited:
  • #5
toothpaste666 said:

Homework Statement


Suppose a coin is tossed 14 times and there are 3 heads and 11 tails. How many such sequences are there in which there are at least 6 tails in a row?

The Attempt at a Solution


I will treat the sequence of coin tosses as a "word" where each letter is a toss and is either an H or T to represent the result of that toss. In order to ensure at least 6 tails in a row I will treat "TTTTTT" as a separate "letter". so now there are 14 - 6 + 1 = 9 letters in the word and there are 3 H's , 5 T's and 1 "TTTTTT"
we need to find the number of arrangements of these letters
there are 9 letters , 3 of type 1 , 5 of type 2 and 1 of type 3 so the total number of arrangements is
9!/3!5!1! = 9!/3!5!

is this correct?
First, your answer is 504, which is greater than 14-C-3 = 364. So, it can't be correct.

You can adapt your idea by considering two cases. One where there is an initial sequence of at least 6 tails. The second is where there is a word HTTTTTT somewhere.

You need the uniqueness of the string with 6 tails, as pointed out above.
 

FAQ: How many ways can a coin be tossed 14 times with at least 6 tails in a row?

What is a sequence of coin tosses?

A sequence of coin tosses refers to a series of flips of a coin, where each flip results in either heads or tails. It can also be described as a string of outcomes, where each outcome is either a heads or tails.

How many possible sequences of coin tosses are there?

The number of possible sequences of coin tosses depends on the number of tosses. For example, with one toss, there are two possible sequences (heads or tails). With two tosses, there are four possible sequences (heads-heads, heads-tails, tails-heads, tails-tails). The number of possible sequences increases exponentially with the number of tosses.

What is the probability of getting a specific sequence of coin tosses?

The probability of getting a specific sequence of coin tosses is dependent on the number of tosses and the desired outcome. For example, the probability of getting heads-heads-tails in three tosses is 1/8 or 12.5%. The probability of getting a specific sequence decreases as the number of tosses increases.

What is the significance of studying a sequence of coin tosses?

Studying a sequence of coin tosses can have various applications in statistics, probability, and even in psychology. It can be used to understand randomness, make predictions, and analyze patterns. It is also a common tool used in experiments to test hypotheses and make statistical inferences.

Can a sequence of coin tosses be biased?

Yes, a sequence of coin tosses can be biased if the coin is not fair. This means that one outcome (heads or tails) is more likely to occur than the other. Biased coin tosses can be intentionally created by altering the weight or shape of the coin, or unintentionally due to external factors such as wind or surface texture.

Similar threads

Replies
10
Views
1K
Replies
4
Views
2K
Replies
8
Views
2K
Replies
4
Views
3K
Replies
41
Views
5K
Replies
6
Views
3K
Back
Top