Skip to main content

GATE CSE 2020Probability › Probability DistributionsVerified

GATE CSE 2020 PYQ: For n > 2 n>2 n > 2 , let a ∈ { 0 , 1 } n a \in \{0,1\}^n a ∈ { 0 , 1 } n be a non-zero vector. Suppose that…

For n>2n>2, let a∈{0,1}na \in \{0,1\}^n be a non-zero vector. Suppose that xx is chosen uniformly at random from {0,1}n\{0,1\}^n. Then, the probability that Σi=1naixi\displaystyle{} \Sigma_{i=1}^n a_i x_i  is an odd number is______________

    Answer

    0.5

    Approach

    Since a is a non-zero binary vector, at least one coordinate has $a_i=1$. The sum only depends on the bits $x_i$ at those positions, and each such bit is an independent fair coin. For any nonempty set of fair bits, the parity of their sum is equally likely to be even or odd.

    The parity of a nonempty sum of independent uniform bits is balanced. Exactly half of all $x∈{0,1}^n$ make the sum odd, so the required probability is 0.5.

    Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.