Re: Pls. help to count probabilities




valery wrote:
Note [*]
Let say we've chose two 32 bit numbers A and B uniformly at random.
That mean that probability of their XOR to be equal to a chosen number
C will be (1/2)^32.
1. From that would it be correct to say that probability that numbers A
and B differs in only by one bit is (1/2)^27? (rationale: we have 32
numbers that are powers of 2 in 32 bit number => probability that A XOR
B is equal one of them is 32/(2^32) = (1/2)^27)
2. What would be probability that A and B are different in only two
bits?
3. If we define a "good" set to be 1/8 th of all 32 bit numbers, then
what is probability that both A and B falls to a "good" set and are
different by a). 1 bit; b). 2 bits.
4. How these probabilities change if A and B will be two distinct 32
numbers that are chosen uniformly at random (i.e. we first pick A from
all 32 bits numbers and than we pick B from {0...2^32}\A.

Thanks in advance,
-Valery.
http://www.harper.no/valery

[*] this is not homework (just to avoid flame-baits). I've graduated 20
years ago and my math is a bit rusty today.

1. Correct. Another rationale is that given A, the number of choices
of B which give the desired result is exactly 32 out of 2^32.

2. There are (32 * 31 / 2) instances of the desired XOR result, so
the same number of choices of B, approximately 1 in 2^23.

3. Surely just multiply the probabilities above by 1 in 2^6, for the
further independent probability that both A and B are "good".

4. B distinct from A changes the probability that their XOR would
be zero, from 1 in 2^32 to zero. It increases the other
probabilities by a factor of 1 in 2^32, since it makes one
unsuccessful outcome impossible.
--

.



Relevant Pages

  • Re: Pseudorandom Hashing
    ... to significantly reduce the probability of ... IIRC you XOR and feed back on the input, and just XOR on the output. ... Wescott Design Services ...
    (sci.electronics.design)
  • Re: Another Conditional Probability Question
    ... The first test correctly identifies blood ... type with probability .7, and the second test with probability .8. ... Normally, the statement "at least one of E, F" means exactly {E union ... Pr(E XOR F)? ...
    (sci.math)
  • Niggling differential probability question.
    ... Biham and Shamir give a formula for the ... probability of a certain (xor) difference after modulo addition: ...
    (sci.crypt)
  • Re: Another Conditional Probability Question
    ... The first test correctly identifies blood ... type with probability .7, and the second test with probability .8. ... Normally, the statement "at least one of E, F" means exactly {E union ... Pr(E XOR F)? ...
    (sci.math)
  • Re: Another Conditional Probability Question
    ... The first test correctly identifies blood ... type with probability .7, and the second test with probability .8. ... Normally, the statement "at least one of E, F" means exactly {E union ... Pr(E XOR F)? ...
    (sci.math)

Quantcast