Skip to content
GATEiit

GATE CSE 2019 Q32: Two numbers from {1,…,13}: probability their 4-bit MSBs match

Syllabus topic: Conditional probability and Bayes' theorem

Question

Two numbers are chosen independently and uniformly at random from the set {1,2,…,13}. The probability (rounded off to 3 decimal places) that their 4-bit (unsigned) binary representations have the same most significant bit is _________.

Try it: numerical answer: type the value

Numerical answer. No negative marking.
Show answer and explanation

Answer: 0.502 to 0.504 (official GATE 2019 final answer key)

Concept used: Independent events: P(same MSB) = P(both MSB 0) + P(both MSB 1).

Concept notes

Loading notes…

First step: Count how many of 1 to 13 have MSB 0 in 4 bits (1 to 7) and how many have MSB 1 (8 to 13), then add the squared probabilities.

Full step-by-step solution

Loading…

Answer from the official final answer key. Found a mistake? Use Report issue and we will fix it.

More questions on Conditional probability and Bayes' theorem

Every PYQ on this topic →

Share this question

WhatsAppDownload image

Source: official GATE 2019 CS question paper and final answer key, organised by IIT Madras. Question paper · Answer key