GATE / CS ARCHIVE

SIMILAR QUESTIONS / DISCRETE MATHEMATICS

Count exactly k successes in independent identical trials

4 questions solved the same way, newest first. Back to Discrete Mathematics

2 marks · MCQ
Report issue

Exactly half of independent selections

Probability & Random Variables

Question 21, GATE 2006: Independently toss a fair coin for each of 2n elements and select the element on heads. What is the probability that exactly n elements are selected?
Options:
(A) C(2n,n)/4^n
(B) C(2n,n)/2^n
(C) 1/C(2n,n)
(D) 1/2
Question 21, GATE 2006: Independently toss a fair coin for each of 2n elements and select the element on heads. What is the probability that exactly n elements are selected?
Options:
(A) C(2n,n)/4^n
(B) C(2n,n)/2^n
(C) 1/C(2n,n)
(D) 1/2
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

1. Each subset of the 2n elements has probability 2-2n. There are binomial(2n,n) subsets with exactly n elements, so the desired probability is binomial(2n,n)/4n, A.

2. Teaching check: Every particular size-n subset corresponds to one pattern of n heads and n tails, with probability (1/2)2n. The number of such patterns is C(2n,n). Multiplying count by per-pattern probability gives the result; the expected subset size n does not imply probability 1/2 of exactly that size.

Original paper, page 3

1 mark · MCQ
Report issue

Two heads in four tosses

Probability & Random Variables

Question 25, GATE 2004: A fair coin is independently tossed four times. What is the probability of exactly two heads and two tails?
Options:
(A) 3/8
(B) 1/2
(C) 5/8
(D) 3/4
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

1. Among24=16 equally likely independent outcomes, binomial(4,2)=6 have exactly two heads and therefore two tails. Probability6/16=3/8, A.

2. Teaching check: Choose which two of the four positions contain heads: there are six choices. Each complete sequence has probability (1/2)4. Counting one arrangement such as HHTT gives only 1/16 and misses the other five arrangements.

Original paper, page 4

2 marks · MCQ
Report issue

Probability of a specified Hamming distance

Probability & Random Variables

Question 78, GATE 2004: Two n-bit binary strings are drawn independently and uniformly. What is the probability their Hamming distance (number of differing positions) is d, 0≤d≤n?
Options:
(A) C(n,d)/2^n
(B) C(n,d)/2^d
(C) d/2^n
(D) 1/2^d
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

1. Fix the first n-bit string. Exactly binomial(n,d) second strings differ in d positions, since the chosen positions uniquely determine their bit flips.

2. All 2n second strings are equally likely, giving binomial(n,d)/2n, A, for integer 0≤d≤n. This uses the intended independent uniform draws; uniform marginals alone without independence would not determine the result.

3. Teaching check: After fixing S1, choose the d positions where S2 differs; at each such binary position its value is forced. No additional factor 2d is needed. Summing C(n,d)/2n over all d gives 1, a useful normalization check.

Original paper, page 11

1 mark · MCQ
Report issue

Exactly one odd die result

Probability & Random Variables

Question 1.1, GATE 1998: A fair die is rolled independently three times. Find probability of exactly one odd result among 1/6, 3/8, 1/8, 1/2.
Tap to enlarge
Your answer
Answer & solution

Answer: B: 3/8 (no official key was published)

Each roll is odd with probability 3/6=1/2 and even with probability 1/2. Choose the unique odd roll in three ways. For each choice, independence gives probability (1/2)3=1/8. The three cases are disjoint, so their total is 3/8. Counting only one ordering would give 1/8 and omit the other positions. This calculation uses a fair die and independent rolls, the conventional premises.

Original paper, page 1