

The probability in each trial varies, but the cumulative probability of a tail streak length greater than or equal to 4 4 4 is between 0.1 0.1 0.1 to 0.3 0.3 0.3. This project was inspired by a mention of Matt Parker's coin flipping obsession on 'Still Untitled: The Adam Savage Project' (. To find the probability that the maximum tail streak length, take the sum of values in the vector S t r e a k s O v e r F o u r StreaksOverFour St re ak s O v er F o u r and divide it by the total number of trails 10 10 10.

These series of 0 = s u c c e s s 0=success 0 = s u ccess and 1 = f a i l u r e 1=failure 1 = f ai l u re values can be interpreted as the results of a series of Bernoulli trails. If the maximum tail streak length at i i i is > = 4 >=4 >= 4, the vector S t r e a k s O v e r F o u r StreaksOverFour St re ak s O v er F o u r at i i i is appended to 1 1 1, if the maximum tail streak length < 4 <4 < 4, the vector S t r e a k s O v e r F o u r StreaksOverFour St re ak s O v er F o u r at i i i is appended to 0 0 0. This is iterated 10 10 10 times to get the maximum tail streak length of 10 10 10 trials with 10 10 10 flips each.Īnother sequence iterated from i = 1 t o 10 i = 1\ to\ 10 i = 1 t o 10 evaluates each maximum tail streak length in m a x S t r e a k L i s t maxStreakList ma x St re ak L i s t.

The vector m a x S t r e a k L i s t maxStreakList ma x St re ak L i s t takes the maximum tail streak length in 10 10 10 coin flip by using the coin flip simulation function m a x S t r e a k maxStreak ma x St re ak which was discussed in class. I declared two empty vectors m a x S t r e a k L i s t maxStreakList ma x St re ak L i s t and S t r e a k s O v e r F o u r StreaksOverFour St re ak s O v er F o u r. What is the probability that you flip at least 4 consecutive tails? Estimate this probability using a simulation.
