Question

In: Statistics and Probability

If we create a 5 digit bit string that is randomly generated, all strings equally likely......

If we create a 5 digit bit string that is randomly generated, all strings equally likely...

1. possibility of string containing three consecutive zeroes?

2. conditional probability of it containing three consecutive zeroes where first number is a one?

Solutions

Expert Solution

Each of the 10 digits can generated for the first position.

Each of the 10 digits can be generated for the second position.

Each of the 10 digits can be generated for the third position.

Each of the 10 digits can be generated for the fourth position.

Each of the 10 digits can be generated for the fifth position.

So number of possible 5 digit bit string that can be randomly generated = 1010101010 = 100000

The string can contain 3 consecutive zeroes in the following ways :-

  • If there are 3 consecutive zeroes in the first 3 positions, then the fourth position will not have zero and the fifth position will have any of the 10 digits. So only 0 is generated for the first, second, and third position; any of the 9 digits (excluding 0) can be generated for the fourth position; and any of the 10 digits can be generated for the fifth position. Number of such 5 digit bit string that can be randomly generated = 111910 = 90
  • If there are 3 consecutive zeroes in the middle 3 positions, then the first and the fifth position will not have zero.. So only 0 is generated for the second, third and fourth position; any of the 9 digits (excluding 0) can be generated for the first and the fifth position. Number of such 5 digit bit string that can be randomly generated = 91119 = 81
  • If there are 3 consecutive zeroes in the last 3 positions, then the second position will not have zero and the first position will have any of the 10 digits. So only 0 is generated for the third, fourth, and fifth position; any of the 9 digits (excluding 0) can be generated for the second position; and any of the 10 digits can be generated for the first position. Number of such 5 digit bit string that can be randomly generated = 109111 = 90

So possibility of string containing three consecutive zeroes

= (90+81+90)/100000 = 0.00261

The string can contain 3 consecutive zeroes and 1 as the first number in the following ways :-

  • If 1 is the first number and there are 3 consecutive zeroes in the middle 3 positions, then fifth position will not have zero.. So only 1 is generated for the first position and only 0 is generated for the second, third and fourth position; any of the 9 digits (excluding 0) can be generated for the fifth position. Number of such 5 digit bit string that can be randomly generated = 11119 = 9
  • If 1 is the first number and there are 3 consecutive zeroes in the last 3 positions, then the second position will not have zero. So only 1 is generated for the first position and only 0 is generated for the third, fourth, and fifth position; any of the 9 digits (excluding 0) can be generated for the second position. Number of such 5 digit bit string that can be randomly generated = 19111 = 9

So possibility of string containing three consecutive zeroes and 1 as the first number

= (9+9)/100000 = 0.00018

If 1 is the first number; then each of the second, third, fourth and fifth position can contain any of the 10 digits. So only 1 is generated for the first position and any of the 10 digits can be generated for each of the second, third, fourth and fifth position. Number of such 5 digit bit string that can be randomly generated = 110101010 = 10000

So possibility of string where the first number is one

= 10000/100000 = 0.1

So conditional probability of it containing three consecutive zeroes where first number is a one

= 0.00018/0.1 = 0.0018


Related Solutions

Recall that a 5-bit string is a bit strings of length 5, and a bit string...
Recall that a 5-bit string is a bit strings of length 5, and a bit string of weight 3, say, is one with exactly three 1’s. a. How many 5-bit strings are there? b. How many 5-bit strings have weight 0? c. How many 5-bit strings have weight 1? d. How many 5-bit strings have weight 2? e. How many 5-bit strings have weight 4? f. How many 5-bit strings have weight 5? g. How many 5-bit strings have weight...
Suppose that you pick a bit string from the set of all bit strings of length...
Suppose that you pick a bit string from the set of all bit strings of length ten. Find the probability that the bit string has exactly two 1s; the bit string begins and ends with 0; the bit string has the sum of its digits equal to seven; the bit string has more 0s than 1s; the bit string has exactly two 1s, given that the string begins with a 1.
Suppose that you pick a bit string from the set of all bit strings of length...
Suppose that you pick a bit string from the set of all bit strings of length ten. Find the probability that the bit string has exactly two 1s; the bit string begins and ends with 0; the bit string has the sum of its digits equal to seven; the bit string has more 0s than 1s; the bit string has exactly two 1s, given that the string begins with a 1.
1. How many 12-bit strings (that is, bit strings of length 14) start with the sub-string...
1. How many 12-bit strings (that is, bit strings of length 14) start with the sub-string 011? 2. You break your piggy bank to discover lots of pennies and nickels. You start arranging them in rows of 6 coins. How many coins would you need to make all possible rows of 6 coins (not necessarily with equal numbers of pennies and nickels)? 3. How many shortest lattice paths start at (4, 4) and end at (13, 13)? 4. What is...
1. How many 6 digit strings have a sum of 35? in a digit string the...
1. How many 6 digit strings have a sum of 35? in a digit string the first digit can be zero 2. In how many ways can one arrange the set {A,B,C,D,E} if E can not be on either end of the string A must be in an even position B must be in an odd position (Solve by direct method and P.I.E.)
A bag contains 5 ​batteries, all of which are the same size and are equally likely...
A bag contains 5 ​batteries, all of which are the same size and are equally likely to be selected. Each battery is a different brand. If you select 2 batteries at​ random, use the counting principle to determine how many points will be in the sample space if the batteries are selected ​a) with replacement. ​b) without replacement. ​a) With replacement
We have to randomly select 2 students for an award from a group of 5 equally...
We have to randomly select 2 students for an award from a group of 5 equally deserving students. Of the five students two are female and three are male.Event C as selecting at least one female. Define event D as awarding only one male, what is the probability of event D? P(C U D) 8. P(C ∩ D) Are C and D disjoint? Explain in detail using sample space if possible. And pls if you use symbols like this: a)...
How many 7-bit strings are there which... (a) Start with the sub string 10? Explain. (b)...
How many 7-bit strings are there which... (a) Start with the sub string 10? Explain. (b) Have exactly 4 ones? Explain. (c) Either start with 10 or end with 11 (or both)? Explain.
Construct a quantum protocol that produces equally likely binary strings of length six. (A quantum protocol...
Construct a quantum protocol that produces equally likely binary strings of length six. (A quantum protocol is a classical algorithm which uses at least one quantum computation. For example, an algorithm which uses Shor’s algorithm to factor a natural number as part of an attack to decrypt a code.)
We distribute 15 books among four students so that all allocations are equally likely. What is...
We distribute 15 books among four students so that all allocations are equally likely. What is the probability that a. the first student gets at least 2 books? b. the first or the last student gets at least two books? c. no one gets less than three books?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT