Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

A coin is biased such that lands heads up 40% of the time and tails the other 60% of the time.

You flip this coin eight times and three of those flips land heads up.

If the greatest clustering is defined as three heads in a row anywhere in the series of flips and the least clustering is an equal number of flips between those three heads, what is the expected clustering of those three heads in the series of flips?

share|improve this question

closed as off-topic by Raff, Michael Albanese, T. Bongers, user91500, studiosus Jul 10 at 5:25

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question is missing context or other details: Please improve the question by providing additional context, which ideally includes your thoughts on the problem and any attempts you have made to solve it. This information helps others identify where you have difficulties and helps them write answers appropriate to your experience level." – Raff, Michael Albanese, Community, user91500, studiosus
If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

If exactly 3 of the eight coins are heads, then we don't need to worry about the bias of the coin flip. The other 5 coins flipped up tails.

In order to assign an expected value to clustering we need a numerical measure. Let's assign it the count of tails between the first and last head. Thus the greatest cluster has a value of 0, the least a value of 5.

There's a total of $\frac{8!}{5!3!} = 56$ possible arrangements of the 5 tails and 3 heads.

To count the number of arrangements of clusters of size $n$, count the permutations of $n$ tails and the single head between the end heads, and multiply by the count of permutations of the remaining $5-n$ tails and the cluster itself. That's $(n+1)(6-n)$.

Hence $P(N=n) = \dfrac{(n+1)(6-n)}{56}$

$$E[N] = \sum_{n=0}^5 n \cdot P(N=n) = \frac{1}{56} \sum_{n=0}^5 n(n+1)(6-n)$$

share|improve this answer
    
Thanks for answering. –  Gabe Apr 24 at 5:14

Not the answer you're looking for? Browse other questions tagged or ask your own question.