GATE / CS ARCHIVE

GATE CSE 2019 / QUESTION 22

Equal most-significant bits in independent draws

Engineering Mathematics & Other Topics · Probability & Statistics · Full GATE CSE 2019 paper

GATE 2019, Q22 1 mark · NAT
Report issue

Probability & Statistics

Question 22, GATE 2019: Choose two numbers independently and uniformly from {1,…,13}. Represent each as a four-bit unsigned binary number, including leading zeros. Find the probability that their most significant bits agree, rounded to three decimal places.
Tap to enlarge
Answer & solution

Official answer: 0.502 to 0.504

Our answer: 0.503

Method: partition the sample space by the value of the leftmost four-bit position.

1. In four-bit unsigned representation, the most significant bit has weight 8. Numbers 1 through 7 have MSB 0; there are seven. Numbers 8 through 13 have MSB 1; there are six. Zero is not in the sampling set.
2. The MSBs agree in two disjoint cases: both draws come from the seven-number group, or both from the six-number group.
3. Independent draws give probability (7/13)² for the first case and (6/13)² for the second. The desired sum is (49+36)/169=85/169.
4. Numerically 85/169≈0.50295858, which rounds to 0.503.

Result: 0.503. Independence permits the same number to be drawn twice. Treating the draws as without replacement would change both denominators and the probability.

Original paper, page 8 · Answer key