For n > 2, let a ∈ {0,1}n be a non-zero vector. Suppose that x is chosen uniformly at random from {0,1}n. Then, the probability that Σi=1n ai xi is an odd number is …
Topic-wise GATE CS PYQs with verified steps
GATE CSE 2020 · Q45
Time
Your answerNumerical answer
Solution
Official answer: 0.5
Probability and StatisticsLet . The parity of is equivalent to computing .
Since is a non-zero binary vector, it has at least one component .
We can split the sum as:
Since is chosen uniformly at random from , the components are independent and identically distributed Bernoulli random variables with .
Conditioning on any choice of , the sum evaluates to some integer . Then:
Since is independent of and takes values and with equal probability :
By the law of total probability, the overall probability is:
Thus, the answer is 0.5.
Try the question first, then check your work.
Examiner trap
Pick any index where . The outcome of is equally likely to be 0 or 1, which flips the parity of the sum regardless of the other bits.
This Probability and Statistics previous year question is Q45 of the GATE CSE 2020 paper. Find more GATE CSE PYQs on Probability and Statistics in Engineering Mathematics, or browse all GATE CSE PYQs.
Free diagnostic
Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Probability and Statistics PYQs now with no account.
An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.
Probability and Statistics has 46 GATE CSE PYQs across 23 papers from 2011 to 2026. 15 of them are 2-mark NAT questions like this one, and it is the only one in GATE CSE 2020.
How GATE tests Probability and StatisticsIndependent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.