Discrete Math Computer Science Question

AI Thread Summary
The discussion focuses on calculating the probability of a 10-bit string beginning with a 1 or ending with 00 under different probability scenarios for the bits. For equal likelihood of 0 and 1, the probability is calculated as (1/2)^7 for the 7 middle bits. When the probability of a bit being 1 is 0.7, the calculation changes to (0.7)^7 for the same middle bits. The third scenario uses a decreasing probability for each bit, resulting in a more complex calculation of (1/2)^28. The thread seeks validation of the approach and clarification on the relevance of the middle bits in the problem statement.
Noriko Kamachi
Messages
6
Reaction score
0

Homework Statement


Find the probability that a randomly generated bit string of length 10 begins with a 1 or ends with a 00 if

a)a 0 bit and a 1 bit are equally likely.
b)The probability that a bit is a 1 is .7
c)The probability that the ith bit is a 1 is 1/2i for i=1,2,3,...,10

Homework Equations

The Attempt at a Solution


[/B]
Since I know that the length is 10, and that the first and last two spots are already selected, I only have to worry about the middle 7 spots. A bit can only be 2 choices 0 or 1.

a) If the odds are the same for both, then I just calculated (1/2)7 based on the 7 remaining choices.

b) Probability here would be (.7)7 going by the same remaining choices.

c)For this I did

(1/2)(1+7)*7/2 which would equal a probability of (1/2)28.

Was my approach to this problem correct?
 
Physics news on Phys.org
How many bits does the question ask about? Are there any bits it does not ask about?
 
Tom.G said:
How many bits does the question ask about? Are there any bits it does not ask about?

A string of length 10 where the choices are either 0 or 1. The first one is labeled as 1, the last two as 00. This leaves seven choices where the selected bit can be 0 or 1.
 
Noriko Kamachi said:
Find the probability that a randomly generated bit string of length 10 begins with a 1 or ends with a 00
What part of this problem statement asks about the seven bits in the middle?
 

Similar threads

Replies
3
Views
1K
Replies
1
Views
397
Replies
17
Views
3K
Replies
5
Views
3K
Replies
2
Views
1K
Back
Top