Suppose we have a sequence of items, from an alphabet of 2: {0,1}. For example, this 8-bit sequence: 10001010
You generate a random 8-bit string. The probability of you matching the first bit is $1/2$ or 50%, the last bit also $1/2$ or 50%, and of matching both: $1/2 * 1/2$ or 25%.
Part 1 concerns how many attempts someone would have to make to have the first and last bit match.
- Intuitively, it seems like 4 attempts would yield a high probability of achieving this match. But statistics is not always intuitive...
Part 2 concerns any particular bit in the sequence, but trying to match the most number possible.
- What is the probability of matching any bit correctly? (Of matching any $n$ bits correctly?)
- How many random generations would someone need to make to reach $n$ bit matches with probability=$1/2$? (With probability=$3/4$?)