Repeating a message

A (very) noisy channel is known to flip bits 20% of the time. Alice decides to send the same bit multiple times, and Bob will interpret the message as the bit he receives more times (e.g. if Bob received 0, 1, 1, he would conclude the message was 1).

If Alice wants to ensure the message is correctly received with probability at least 95%, what is the minimum number of times Alice needs to send each bit?


The answer is 7.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Matt Williams
Apr 18, 2016

Relevant wiki: Error correcting codes

The probability for k successes in n trials, each independent and of probability p, is given by the binomial distribution. P r ( X = k ) = ( n k ) p k ( 1 p ) n k Pr(X=k)= {{n}\choose{k}} p^k(1-p)^{n-k} In this case I think it's easiest to interpret 'k successes' as the number of bits flipped in a bit sequence of length n, and each bit flip has a probability of 0.2. But because this tells the probability of an incorrect message being received then to answer the question we need to look for a total probability of less than 5%. Furthermore, an incorrect message will be received any time the number of bits flipped is greater than or equal** to the number of total bits, so we need to add together several binomial probabilities.

Let's try a bit length n = 3 n =3 first. An incorrect transmission will be received if two or three bits are flipped so P r ( f a i l u r e ) = P r ( X = 2 ) + P r ( X = 3 ) = ( 3 2 ) 0. 2 3 ( 1 0.2 ) + 0. 2 3 = . 104 Pr(\mathrm{failure}) = Pr(X=2)+Pr(X=3) = {{3}\choose{2}}0.2^3(1-0.2) + 0.2^3 = .104 This is above 5% so 3 bits is not good enough. Repeat with more bits and you will find that the n=7 the smallest that works, where 4, 5, or 6 bits must be flipped for Bob to receive the incorrect message.

** I say "or equal to" because if Bob received a 50/50 result with an even number of bits he can not be expected to interpret it correctly.

0.104 == 10.4% .. right?

why n=7 is the answer? when for n=7, Pr(failure) = Pr(X=6)+Pr(X=5)+Pr(X=4)+Pr(X=3)+Pr(X=2)+Pr(X=1) = 0.7902848 == 79% (approx) => Success = 1-79/100 = 21% (approx)

but with n=2 Pr(failure) = Pr(X=2)+Pr(X=1) = 0.36 == 79% (approx)

Why did not u consider the 1 bit error? ie Pr(X=1) ??

000 => 0 (after any one bit flip) 001=> 0 or 1 (after any one bit flip) 010 => 0 or 1 (after any one bit flip) .... 111=> 1 (after any one bit flip)

I mean are u considering any of the bit flip or the probability of the bit flip whose occurence is lower than the other?

And it will be 3C2(0.2)^2(0.8) .. please correct the cube for 3C2.

Came Here From the ECC wiki..

Ananya Aaniya - 4 years, 9 months ago

Ananya - only if the majority of the bits are flipped does the value of the transmission flip. 010 still equals 0, even with the one flipped bit. Likewise in N=7, you'd have to flip at least 4 bits to make the result incorrect, thus you're adding too many conditions together (only X=7; X=6; X=5; X=4; are relevant for this).

Linards Jukmanis - 4 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...