Discrete Mathematics · Probability & Random Variables
52 questions, newest first
GATE CSE has asked 52 questions on Probability & Random Variables (Discrete Mathematics) from 1994 to 2020, in 30 of the 46 papers; the most recent is in GATE CSE 2020. In the last five years it carried 0 marks per 100-mark paper on average, against 1.5 since 2003. Since 2014 the questions have been 12 NAT. 4 groups of questions here are solved the same way; “One per method” keeps the newest of each.
For n>2, a is a fixed nonzero vector in {0,1}^n and x is uniform in {0,1}^n. What is the probability that Σ a_i x_i is odd?
Answer & solution
Official answer: 0.5
Worked explanation
View the sum modulo 2. Since a is nonzero, at least one coordinate j has coefficient 1. Fix every random bit except xj; those fixed bits determine some parity c. The remaining sum parity is c⊕xj. A uniform xj makes that result equally likely to be 0 or 1, regardless of c. Averaging over all choices of the other bits preserves probability 1/2. The pairing proof below is the equivalent combinatorial version. The nonzero hypothesis matters: if a were the zero vector, the sum would always be 0 and the probability would be 0.
Derivation and answer
Because a is nonzero, choose an index j with aj=1. Pair each vector x with the vector obtained by flipping only xj. This is a fixed-point-free bijection on all 2n equally likely inputs, and it reverses the parity of the dot product. Exactly half of the inputs yield an odd sum, so the probability is 1/2. The argument in fact works for any n≥1 with nonzero a.
Guwahati H,M,L probabilities are .2,.5,.3. Delhi conditional H,M,L probabilities by Guwahati row are H:(.40,.48,.12), M:(.10,.65,.25), L:(.01,.50,.49). Find P(Guwahati H | Delhi H), to two decimals.
Answer & solution
Official answer: 0.60 to 0.62
Our answer: 0.60
Method
The table conditions on Guwahati, whereas the question conditions on Delhi, so reading .40 directly reverses the conditioning incorrectly. The denominator must include all three ways Delhi can be hot: Guwahati hot, medium or low. Their joint probabilities are .08,.05,.003. The desired event is just the first contribution divided by their sum .133. Columns of a conditional table need not sum to one before weighting by the row probabilities.
Solution
By total probability, P(H_D)=0.40*0.2+0.10*0.5+0.01*0.3=0.133. The joint probability P(H_G and H_D)=0.40*0.2=0.08. Bayes gives 0.08/0.133=80/133≈0.601504, which rounds to 0.60. The full accepted interval 0.60–0.62 is preserved.
X has a Poisson distribution with mean 5. Find E[(X+2)²].
Answer & solution
Official answer: 54.0
Our answer: 54
1. A Poisson variable has variance equal to its mean, so E[X]=5 and Var(X)=5. The second-moment identity Var(X)=E[X²]-(E[X])² gives E[X²]=5+25=30.
2. Expand before taking expectations: (X+2)²=X²+4X+4. Linearity of expectation therefore gives E[(X+2)²]=30+4·5+4=54.
3. A useful check is Var(X+2)+(E[X+2])²=5+7²=54, since adding a constant does not change variance. Squaring the mean alone would give 49 and omit the variance contribution.
Repeatedly toss a fair coin twice. TH outputs Y and stops; HH or HT outputs N and stops; TT restarts the experiment. Find the probability of eventually outputting Y, to two decimal places.
Answer & solution
Official answer: 0.33 : 0.34
Our answer: 1/3 ≈0.33
Let p be the probability of eventual Y. A first-round TH gives Y with probability 1/4, while TT with probability 1/4 restarts independently. Thus p=1/4+p/4, so p=1/3. Infinite restart has probability lim(1/4)n=0. Two-decimal answer 0.33.
Another derivation conditions on the first round that does not restart. Of the equally likely terminal outcomes TH,HH,HT, exactly one produces Y, giving 1/3. Or sum the disjoint cases: Y after k restarts has probability(1/4)k(1/4), and their geometric series is(1/4)/(1−1/4). The single-round probability 1/4 is not the final answer because TT does not end the experiment in failure.
A shop stocks equal numbers of Type 1 and Type 2 LED bulbs. Their respective probabilities of lasting over 100 hours are 0.7 and 0.4. Find the probability for a uniformly chosen bulb.
Answer & solution
Official answer: 0.55 : 0.55
Our answer: 0.55
Equal populations give prior probabilities 1/2 for each type. The law of total probability gives(0.7+0.4)/2=0.55.
The two bulb types partition the sample space, so add their joint survival probabilities: P(survive,type1)=0.5×0.7=0.35 and P(survive,type2)=0.5×0.4=0.20. Their sum is 0.55. Multiplying 0.7 by 0.4 would describe a different event involving both types rather than one randomly selected bulb.
A slotted LAN has four nodes S1–S4. Frames start only at slot boundaries; more than one transmission in a slot collides. Their frame-generation probabilities in the first slot are 0.1,0.2,0.3,0.4. Find the probability of one collision-free frame.
Answer & solution
Official answer: 0.40 to 0.46
Our answer: 0.4404
Assume independent generation at the four nodes, as required by the intended product calculation. “Any station succeeds” means exactly one transmits, not at least one. The disjoint cases S1 only through S4 only have probabilities 0.0336,0.0756,0.1296,0.2016. Their sum is 0.4404. Multiplying all nontransmission probabilities would instead count an idle slot; subtracting that from one would also include collisions.
Solution: Assuming independent transmission attempts, exactly one succeeds with probability 0.1·0.8·0.7·0.6+0.2·0.9·0.7·0.6+0.3·0.9·0.8·0.6+0.4·0.9·0.8·0.7=0.4404, within the official 0.40 to 0.46 range. Marginal attempt probabilities alone would not determine this without the independence assumption.
X1,X2,X3 are independent, identically distributed bits with P(Xi=0)=P(Xi=1)=1/2. Let Y=(X1X2) XOR X3, where juxtaposition denotes ordinary multiplication of bits. Find P(Y=0 | X3=0).
Answer & solution
Official answer: 0.75
1. The four conditional equally likely (X1,X2) pairs are 00,01,10,11. With X3=0, XOR changes nothing, so the first three give Y=0 and only 11 gives Y=1.
2. Conditioning on X3=0 makes Y=X1X2. Independence leaves X1 and X2 independent fair bits. Their product is 1 only when both are 1, with probability 1/4. Therefore Pr(Y=0|X3=0)=3/4=0.75.
Four independent fair six-sided dice are rolled. The probability of a total of 22 is X/1296. Find X.
Answer & solution
Official answer: 10
1. Method and setup. There are 6⁴ equally likely ordered outcomes. Because 22 is close to the maximum 24, work with deficits from six rather than enumerating all possible die values. A deficit sum of two can arise as one deficit of two or two deficits of one, providing a quick independent count of 4+6 outcomes.
2. Work through the result and its assumptions. Write each die result as 6−di. Sum22 means d1+d2+d3+d4=2 with nonnegative deficits. The upper bound di≤5 is automatic, so stars and bars gives C(5, 3)=10 outcomes among 64=1296. Hence X=10, assuming independent fair dice.
An office security system has 10 computers, exactly 4 working. Four are inspected uniformly at random without replacement. The system is declared functional if at least 3 inspected computers work. If this probability is p, find 100p.
Answer & solution
Official answer: 11.85 to 11.95
Our answer: 11.9047619
1. Set up the reasoning. Use a hypergeometric count because selections are without replacement. A successful sample has either exactly three working computers and one failed computer, or four working computers.
2. Derive the result. There are C(10, 4)=210 equally likely subsets. Favorable subsets contain 3 working and 1 failed computer, C(4, 3)C(6, 1)=24, or all 4 working, one more. Thus p=25/210 and 100p≈11.9048, inside the key interval.
3. Check the interpretation. The two favorable cases are disjoint, so add their counts. Do not use four independent trials with success probability 4/10: the composition changes after each draw. The question requests the percentage-scale number 100p, not p.
Each of the nine words in “The quick brown fox jumps over the lazy dog” is written on its own slip. One of the nine slips is chosen uniformly. Find the expected word length, rounded to one decimal place.
Answer & solution
Official answer: 3.8 to 3.9
Our answer: 3.9
1. Set up the reasoning. Every slip has probability 1/9, including both occurrences of the word the. Count letters in each word and use the probability-weighted average.
2. Derive the result. The nine word lengths are 3, 5, 5, 3, 5, 4, 3, 4, 3, totaling 35. Uniform selection gives expectation 35/9≈3.8889, rounded to one decimal place 3.9.
3. Check the interpretation. The random choice is of words, not individual letters and not distinct word spellings. Therefore repeated words must retain their separate slips in the denominator and numerator.
Choose an integer uniformly from 1 through 100 inclusive. What is the probability it is divisible by none of 2,3,5?
Answer & solution
Official answer: 0.259 to 0.261
Our answer: 0.26
1. Set up the reasoning. Count the complement using inclusion-exclusion. Multiples of two or more divisors are counted repeatedly in the initial sum and must be corrected using their least common multiples.
2. Derive the result. Among1..100, counts divisible by 2, 3, 5 are 50, 33, 20. Pair intersections contribute 16, 10, 6 and the triple contributes 3. Their union has 50+33+20−16−10−6+3=74, leaving 26 integers. Under uniform selection the probability is 26/100=0.26, inside the official interval.
3. Check the interpretation. Use floor(100/d) for each divisor d. Subtract pair intersections for 6,10,15 and add back the triple intersection for 30, then subtract the union count from 100. The integer 1 is eligible and must not be excluded.
Events A and B are mutually exclusive and exhaust sample space S, so A∪B=S. What is the largest possible P(A)P(B)?
Answer & solution
Official answer: 0.25
Step 1: Mutual exclusion gives P(A∪B)=P(A)+P(B), and exhaustion makes this sum 1. Let p=P(A), so P(B)=1−p with 0≤p≤1. Step 2: Complete the square: p(1−p)=1/4−(p−1/2)². The square is nonnegative, so the product is at most 1/4. Step 3: Equality is possible when both events have probability 1/2. Thus the maximum consistent with the given constraints is 0.25; this is not a claim that every particular probability space contains such an equal partition.
Cars arriving per minute follow a Poisson distribution of mean 3. Find P(X<3): A8/(2e³), B9/(2e³), C17/(2e³), D26/(2e³).
Your answer
Answer & solution
Official answer: C
For Poisson mean 3, P(X<3)=P(0)+P(1)+P(2)=e−3(1+3+9/2)=17/(2e³), C.
For Poisson mean λ, P(X=k)=e−λλk/k!. The event fewer than 3 consists of the disjoint outcomes 0, 1, 2. Substituting λ=3 gives probabilities e−3, 3e−3, and(9/2)e−3. Their sum is(1+3+4.5)e−3=8.5e−3=17/(2e³). Do not include X=3: “fewer than” is strict.
An undirected random graph has 8 vertices, with edge probability 1/2 for each vertex pair. Find the expected number of unordered triangles. A1/8, B1, C7, D8. The standard independent-edge model is intended.
Your answer
Answer & solution
Official answer: C
Our answer: C under independent-edge model
For each of C(8, 3)=56 vertex triples, its triangle indicator has mean(1/2)3=1/8 under the standard independent-edge random-graph model. By linearity of expectation the expected count is 56/8=7, C. Equal individual edge probabilities alone would not establish independence: choosing either the complete or empty graph with probability 1/2 would instead give mean 28. The usual random-graph model is therefore a necessary convention.
Use one indicator variable for each unordered three-vertex subset, not for each ordered traversal of a triangle. There are 8·7·6/6=56 such subsets. Its three edges must all occur, with probability(1/2)³ under independence. The expected sum is the sum of expectations, so 56/8=7. Distinct triangle indicators can share edges and need not be independent; linearity of expectation does not require their independence. The independence needed is within the three edges of one triangle.
Consider a random variable X that takes values +1 and −1 with probability 0.5 each. The values of the cumulative distribution function F(x) at x = −1 and +1 are (A) 0 and 0.5 (B) 0 and 1 (C) 0.5 and 1 (D) 0.25 and 0.75
Your answer
Answer & solution
Official answer: C
The cumulative distribution is F(x)=P(X≤x). At x=−1 it includes the mass at −1, giving 0.5. At x=+1 it includes both possible outcomes, giving 1. The requested pair is (0.5, 1), C.
Check: The full CDF is 0 for x<−1, 1/2 for −1≤x<1, and 1 for x≥1. CDFs include the probability mass at their argument; using P(X<x) instead would produce incorrect endpoint values.
Suppose a fair six-sided die is rolled once. If the value on the die is 1, 2, or 3, the die is rolled a second time. What is the probability that the sum total of values that turn up is at least 6? (A) 10/21 (B) 5/12 (C) 2/3 (D) 1/6
Your answer
Answer & solution
Official answer: B
If the first roll is 6, success occurs immediately with probability 1/6; first rolls 4 or 5 stop unsuccessfully. For first roll 1, the second must be 5 or 6 (two outcomes); for 2 it must be 4, 5, 6 (three); for 3 it must be 3, 4, 5, 6 (four). Each ordered two-roll result has probability 1/36. Total success probability is 1/6+(2+3+4)/36=15/36=5/12, B. One-roll and two-roll terminal outcomes are not equiprobable.
Check: Conditioning on the first roll gives (1/6)(2/6)+(1/6)(3/6)+(1/6)(4/6)+1/6. The second roll is not performed after 4,5,6, so treating all terminal outcomes as one uniform list gives the wrong denominator.
Two fair coins are flipped. Given that at least one outcome is a head, what is the probability that both outcomes are heads?
(A) 1/3 (B) 1/4 (C) 1/2 (D) 2/3
Your answer
Answer & solution
Official answer: A
Condition on the event at least one head. For independent fair coins the remaining equally likely outcomes are HH, HT, TH. Exactly one has two heads, so the conditional probability is 1/3, A. This is event conditioning, not a different reporting protocol that selects one coin to reveal.
Before conditioning, HH, HT, TH and TT each have probability 1/4. The given event removes TT, leaving event probability 3/4. The desired intersection is simply HH, of probability 1/4. Hence P(HH given at least one H)=(1/4)/(3/4). Do not collapse HT and TH into one equally weighted case: they are two different outcomes and together have twice the probability of HH.
For a random variable with finite second moment, write R=E[X²]-(E[X])². Which is always true?
(A) R=0 (B) R<0 (C) R≥0 (D) R>0
Your answer
Answer & solution
Official answer: C
R=E[X²]−(E[X])²=E[(X−E[X])²]≥0 whenever the moments exist. A constant random variable attains 0, so strict positivity is not guaranteed. Thus C.
Expand the square: E[(X-μ)²]=E[X²]-2μE[X]+μ²=E[X²]-μ², using μ=E[X]. Every squared deviation is nonnegative, and an expectation preserves nonnegativity. If X is always 5, R=25-25=0; if X is equally likely 0 or 1, R=1/2-1/4=1/4. These examples exclude both the claim that R is always zero and the claim that it is always strictly positive.
For X=[x1,...,xn] with mean μx and standard deviation σx, define yi=a*xi+b with positive constants a,b. Y has mean μy and standard deviation σy. Which statement is INCORRECT?
(A) The index position of the mode in X corresponds to that in Y (B) The index position of the median in X corresponds to that in Y (C) μy=aμx+b (D) σy=aσx+b
Your answer
Answer & solution
Official answer: D
For yi=ax_i+b with a>0, ordering and frequencies are preserved, so modal and median positions correspond under consistent tie conventions. Means transform as μ_y=aμ_x+b. Deviations satisfy yi−μ_y=a(xi−μ_x), so standard deviation is σ_y=aσ_x, without+b. Thus D is incorrect; the same scaling holds for either population or sample normalization.
Translation by b shifts the center but leaves every distance from the center unchanged. Scaling by a multiplies each distance by a, each squared distance by a², and therefore the standard deviation by a after taking a square root. A simple check is a constant sample: its original standard deviation is zero and remains zero after any translation, while option D would incorrectly give b>0. Mode/median statements rely on the same consistent conventions when values tie.
Shuffle five cards numbered 1 through 5, and draw two sequentially without replacement. What is the probability that the first number is exactly one greater than the second?
(A) 1/5 (B) 4/25 (C) 1/4 (D) 2/5
Your answer
Answer & solution
Official answer: A
There are 5×4=20 equally likely ordered pairs of distinct cards. The first exceeds the second by exactly 1 for(2, 1),(3, 2),(4, 3),(5, 4), four cases. Probability4/20=1/5, A.
Ordered outcomes are the right sample space because the condition distinguishes the first and second cards. There are five choices initially and only four after the first removal. The favorable pairs exclude first card 1, because 0 is unavailable; each of first cards 2 through 5 permits exactly one second card. Using 25 as the denominator would incorrectly allow replacement, and counting both orders of each adjacent pair would answer the different absolute-difference question.
A computer assembly is faulty with probability p. A test gives the correct result for any computer with probability q. What is the probability that a computer is declared faulty? Options: (A) pq+(1−p)(1−q); (B) (1−q)p; (C) (1−p)q; (D) pq.
Your answer
Answer & solution
Answer: A (no official key was published)
Partition computers into faulty with probability p and nonfaulty with probability 1−p. The test declares a faulty computer faulty with conditional probability q, while it incorrectly declares a nonfaulty computer faulty with probability 1−q. Total probability gives pq+(1−p)(1−q), option A. The phrase correct result for any computer supplies the same conditional accuracy q in each class.
A probability tree has two paths ending in “declared faulty”: truly faulty then correctly identified, probability pq; or truly sound then incorrectly classified, probability (1−p)(1−q). These events are disjoint, so add them. Checks: if q=1 the result is p; if q=0 the result is 1−p; if q=1/2 it is 1/2 regardless of p.
A positive divisor of 10^99 is selected uniformly at random. What is the probability that it is a multiple of 10^96? Options: (A) 1/625; (B) 4/625; (C) 12/625; (D) 16/625.
Your answer
Answer & solution
Answer: A (no official key was published)
Since 10⁹⁹=2⁹⁹5⁹⁹, every positive divisor is uniquely 2a5b with 0≤a,b≤99, giving 100² equally likely divisors. Being a multiple of 10⁹⁶ requires a,b≥96, leaving four choices for each exponent. Probability=16/10000=1/625, option A. Uniform choice is over divisors, not over integers up to 10⁹⁹.
The admissible exponents for each prime are 96,97,98,99, so the favorable divisors number 4×4=16. Divisibility requires both prime exponents to be large enough; satisfying only the exponent of 2 or only the exponent of 5 is insufficient. Reducing 16/10000 gives the offered 1/625.
For a biased six-faced die, P(odd)=0.9P(even), the three even faces are equally likely, and P(even | value>3)=0.75. Which is closest to P(value>3)? A 0.453; B 0.468; C 0.485; D 0.492.
Your answer
Answer & solution
Answer: B (no official key was published)
Let E=P(even). Since P(odd)=.9E and probabilities sum to 1, E=10/19. Each even face has probability 10/57. Therefore P(even and >3)=P(4)+P(6)=20/57. Dividing by the given conditional probability 3/4 gives P(>3)=80/171≈.46784, closest to.468, B.
Let total even probability be e. Then 1=e+0.9e=1.9e, so e=10/19. Equal even faces each have probability e/3=10/57. Event even and greater than 3 consists precisely of 4 and 6, giving 20/57. Conditional probability equals intersection divided by P(value>3); hence 0.75=(20/57)/p and p=80/171≈0.46784. Choose the nearest offered value 0.468. No equality assumption for the three odd faces was needed.
Aishwarya studies either CS or mathematics each day. After a CS day, the probability of mathematics next day is 0.6; after a mathematics day, the probability of CS next day is 0.4. Given CS on Monday, what is the probability of CS on Wednesday?
(A) 0.24 (B) 0.36 (C) 0.4 (D) 0.6
Your answer
Answer & solution
Answer: C under the Markov interpretation (no official key was published)
1. Interpret the given next-day probabilities as the transition probabilities of a two-state Markov chain. After CS, the chance of CS is 1−0.6=0.4. 2. Wednesday CS can arise through CS→CS→CS with probability 0.4×0.4=0.16 or CS→Math→CS with probability 0.6×0.4=0.24. 3. These cases are disjoint; add them to get 0.40, C. Without the usual Markov interpretation, unconditional pairwise information alone would not justify the two-step conditional calculation.
Choose uniformly from all 20! permutations of 1,2,…,20. What is the probability that 2 appears before every other even number? Options: (A) 1/2 (B) 1/10 (C) 9!/20! (D) None of these
Your answer
Answer & solution
Answer: B (no official key was published)
1. Approach. Ignore the odd numbers and examine only the relative order of the ten even numbers. Symmetry gives each even number the same chance of occupying the first even position.
2. Derivation and interpretation. There are ten even numbers among 1,...,20. Their relative order is uniformly random, and each is equally likely to be first among them. Therefore the chance that 2 is earliest is 1/10, B.
Let X={2¹,2²,…,2ⁿ}. Form S⊆X by independently selecting each element with probability 1/2. What is the expected smallest element of S? The reproduced question does not specify what to do when S is empty. Options: (A) 1/n (B) 2 (C) √n (D) n
Your answer
Answer & solution
Answer: D only if the empty sample is assigned value 0 (no official key was published)
1. The event that 2i is the minimum requires excluding the i−1 smaller values and including 2i, with probability 2-i. Summing2i×2-i over i=1,...,n gives n.
2. But the empty sample occurs with probability 2-n and has no smallest element. Thus the expectation as literally stated is undefined.
3. Setting the empty-sample value to 0 gives n, D; conditioning on a nonempty sample instead gives n/(1−2-n). No official answer is inferred.
4. Teaching check: There are n disjoint events “2i is the minimum,” each contributing exactly one to the unconditioned sum when the empty case is assigned zero. Their probabilities sum to 1−2−n, not one. Dividing by that nonempty probability produces the conditional expectation.
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
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.
Bag P has two red and three blue balls; bag Q has three red and one blue. Select P with probability 1/3 and Q with probability 2/3, then draw uniformly from that bag. Given a red ball, probability bag P was selected? A4/19; B5/19; C2/9; D19/30. The alternate omits the color of Q’s three balls; use the explicit GFG wording.
Your answer
Answer & solution
Answer: A (no official key was published)
Using the the paper statement that Q has 3 RED and 1 blue ball, P(P∩red)=(1/3)(2/5)=2/15 and P(Q∩red)=(2/3)(3/4)=1/2. Bayes gives (2/15)/(2/15+1/2)=4/19, A.
Bayes reverses the conditioning: the question asks P(P|red), not P(red|P). First weight each red probability by how often that bag is selected. P contributes 2/15 and Q contributes 1/2, so total red probability is 19/30. Divide 2/15 by 19/30 to get 4/19. The larger posterior weight of Q is consistent with its being chosen more often and containing a larger red fraction.
Construct each of two n-bit binary strings using fair coin tosses. Assuming independent tosses for both strings, probability the strings differ? A2^(−n); B1−1/n; C1/n!; D1−2^(−n).
Your answer
Answer & solution
Answer: D (no official key was published)
Assuming the two constructions use independent fair tosses, each bit of the second string matches the corresponding first bit with probability 1/2. The full strings match with probability 2−n, so they differ with probability 1−2−n, option D.
Condition on any fixed first string. Each independent second-string bit matches with probability 1/2, and all n positions match with probability(1/2)n. The event “different strings” means at least one mismatch, the complement of matching in every position, not mismatching in every position. Therefore the requested probability is 1−2−n. Correlation between the two constructions would invalidate this calculation, hence independence is explicit.
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
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.
An exam has 150 one-mark multiple-choice questions, each with four choices. Correct answers earn 1; incorrect answers earn −0.25. If 1000 students choose all answers uniformly at random, what is the sum of their expected marks? Options: (A) 0 (B) 2550 (C) 7525 (D) 9375
Your answer
Answer & solution
Answer: D (no official key was published)
1. Each answer earns +1 with probability 1/4 and −1/4 with probability 3/4. Its expected mark is 1/4−3/16=1/16.
2. Linearity of expectation gives 1000×150×(1/16)=9375 total expected marks, D. Independence between different answers is not needed for summing expectations.
3. Teaching check: The negative mark is one quarter, not one third. Therefore random guessing has positive expectation here: (1/4)×1+(3/4)×(−1/4)=1/16 per question. Zero expectation would require a different wrong-answer penalty.
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
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.
Events A and B satisfy P(A)=1 and P(B)=1/2. Find P(A|B) and P(B|A), in that order. A. (1/4,1/2); B. (1/2,1/4); C. (1/2,1); D. (1,1/2).
Your answer
Answer & solution
Answer: D (no official key was published)
1. A has probability one, so its complement has probability zero. Decompose B as (A∩B)∪(Aᶜ∩B); the second part has probability zero. Now apply P(X|Y)=P(X∩Y)/P(Y) separately in the two directions rather than treating conditional probability as symmetric.
2. Since P(A)=1, P(A∩B)=P(B)=1/2. Thus P(A|B)=(1/2)/(1/2)=1, while P(B|A)=(1/2)/1=1/2, D. Both conditioning events have positive probability.
For a permutation a1,...,an of n distinct integers, an inversion is an index pair i<j with ai>aj. All permutations of 1,...,n are equally likely. What is the expected inversion count? A. n(n−1)/2 B. n(n−1)/4 C. n(n+1)/4 D. 2n floor(log2 n)
Your answer
Answer & solution
Answer: B (no official key was published)
1. There are choose(n,2)=n(n−1)/2 pairs of distinct positions i<j. 2. For any fixed pair, exchanging their two entries pairs every ordering ai>aj with an equally likely ordering ai<aj. Distinctness excludes equality, so the inversion probability is 1/2. 3. Let Iij be 1 for an inversion and 0 otherwise. Then E[Iij]=1/2 and total inversions I=Σi<j Iij. 4. Linearity gives E[I]=Σ E[Iij]=n(n−1)/4, B. Although different pairs' indicators may be dependent, linearity does not require independence.
Solution: For each of the n(n−1)/2 index pairs i<j, define an indicator for aᵢ>aⱼ. Symmetry gives probability 1/2 for each pair. By linearity of expectation, the expected inversion count is [n(n−1)/2]×1/2=n(n−1)/4, option B. Independence among those indicators is unnecessary.
Four fair coins are tossed together. What is the probability of obtaining at least one head and at least one tail? (A) 1/16; (B) 1/8; (C) 7/8; (D) 15/16.
Your answer
Answer & solution
Answer: C (no official key was published)
Step 1: Count the complement event.
Step 2: Failure to have both outcomes means either no heads, namely TTTT, or no tails, namely HHHH. Each sequence has probability(1/2)4=1/16, and they are disjoint. Subtract their total 1/8 from one to obtain 7/8. Counting only one exceptional sequence would incorrectly give 15/16.
Conclusion: The16 equally likely outcomes exclude only HHHH and TTTT. Therefore P(at least one head and one tail)=1−2/16=7/8, C, assuming the four fair tosses are independent.
Seven distinct accidents occur during one week. Find the probability that all occur on one day, using and explicitly stating the conventional day-assignment model. Options: 1/7^7, 1/7^6, 1/2^7, 7/2^7.
Your answer
Answer & solution
Answer: B under independent uniform day assignments (no official key was published)
Step 1: Treat the seven distinct accidents as independent choices among seven equally likely days. There are 77 equally likely day assignments.
Step 2: Exactly seven assignments put every accident on the same day, one for each possible day. The probability is 7/77=1/76, B. Equivalently, leave the first accident’s day unrestricted and require each of the other six to match it.
The independence/uniformity model is not explicit in the source. Real accident rates or correlated events need not give this probability; seven events occurring in a week alone does not determine it.
Option D follows. Choosing 1/2 would give union probability 3/4, because independent events with probability 1/2 overlap with probability 1/4; they are not disjoint.
A random variable has E[X]=5. Must some outcome have X=5, X>5, X≥5, or none of these?
Your answer
Answer & solution
Answer: C (no official key was published)
Suppose every outcome had X<5. Then Y=5−X is positive everywhere. Since a positive random variable has positive expectation, E[Y]>0, contradicting E[Y]=5−E[X]=0. Hence some outcome has X≥5. Equality need not occur: equal probabilities on 4 and 6 have mean 5 but never value 5. Nor must a value exceed 5: the constant variable X=5 is a counterexample. Thus only C is forced, assuming the stated finite expectation.
P(E1)=1/2,P(E2)=1/3,P(E1∩E2)=1/5. Evaluate union=2/3, independence, nonindependence, and P(E1|E2)=4/5.
Select all that apply
Answer & solution
Answer: C (no official key was published)
Inclusion–exclusion gives P(E1∪E2)=1/2+1/3−1/5=19/30, not 2/3. Independence would require intersection (1/2)(1/3)=1/6, unequal to 1/5; hence B is false and C true. The conditional probability is (1/5)/(1/3)=3/5, not 4/5. Therefore only C is correct. Conditional probabilities divide by the conditioning event, not by the union.
A fair die is rolled independently three times. Find probability of exactly one odd result among 1/6, 3/8, 1/8, 1/2.
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.
Two friends arrive between 4 and 5 p.m. Each waits ten minutes or until 5 p.m., whichever comes first. Find the probability they do not meet.
Answer & solution
Answer: 25/36, assuming independent uniform arrival times. (no official key was published)
Let X and Y be their arrival times in minutes after 4 p.m. The usual intended probability model is that X and Y are independent and uniformly distributed on [0,60]. The problem does not explicitly supply this distribution; a numerical probability requires it.
They meet precisely when |X−Y|≤10, apart from a zero-probability issue about departure at the exact arrival instant. Truncating the wait at 5 p.m. does not change this condition: both people arrive by then, so the earlier arrival must still be present if the gap is at most ten minutes.
All pairs (X,Y) are equally likely in a 60-by-60 square of area 3600. Failure to meet is the union of the regions Y>X+10 and X>Y+10. Each is a right triangle with legs 50 and area 50²/2. Hence P(no meeting)=2(50²/2)/60²=2500/3600=25/36. As a check, the complementary meeting probability is 11/36. The answer is not 5/6: that treats one person's ten-minute window as if it were the whole two-dimensional event. Nonuniform or correlated arrivals can give a different answer.
Rain probabilities are 0.5 today, 0.6 tomorrow, and 0.7 for at least one of the two days. Find probability of both.
Your answer
Answer & solution
Answer: D: 0.4 (no official key was published)
Let A and B denote rain today and tomorrow. Inclusion–exclusion gives P(A∪B)=P(A)+P(B)−P(A∩B). Thus P(A∩B)=0.5+0.6−0.7=0.4. This is D. Multiplying 0.5 by 0.6 would assume independence, which is not stated and is inconsistent with the given union probability. The word either is interpreted as inclusive or, as required by the standard union reading.
A hash table has n≥1 buckets, uses external chaining, and is initially empty. K distinct keys are inserted. Each key hashes uniformly to one of the n buckets. Under the standard additional assumption that different keys hash independently, find the probability that bucket 1 is empty after K insertions.
Answer & solution
Answer: ((n−1)/n)^K, for independent uniform hashing. (no official key was published)
A single inserted key avoids bucket 1 with probability (n−1)/n=1−1/n. Bucket 1 is empty after K insertions exactly when every one of those K keys avoids it. Under independent hashing, multiply the K probabilities to obtain
P(bucket 1 empty) = (1−1/n)K.
The table may have collisions in other buckets; they do not affect this event. External chaining allows arbitrarily many keys in a bucket, so K need not be at most n. For K=0 the probability is 1, including the n=1 case, by the empty-product convention. For n=1 and K≥1 it is 0, because the only bucket must receive every key. For n=2,K=3 it is (1/2)3=1/8.
The independence qualification is substantive. The source supplies the uniform probability for any individual key, but marginal uniformity alone is not enough to multiply events. For example, choose one uniformly random bucket U and send all keys to U. Every key is marginally uniform, yet bucket 1 remains empty with probability 1−1/n for every K≥1, rather than (1−1/n)K. The displayed answer uses the usual independent-uniform hashing model and is not claimed under that correlated alternative.
A hash table has n≥1 buckets, uses external chaining, and is initially empty. K distinct keys are inserted. Each key hashes uniformly to one of the n buckets. Under the standard additional assumption that different keys hash independently, find the probability that none of the K insertions causes a collision.
Answer & solution
Answer: n! / ((n−K)! n^K) for 0≤K≤n; 0 for K>n. (no official key was published)
After j collision-free insertions, exactly j buckets are occupied. Conditional on that event, the next independently hashed key must choose one of the n−j empty buckets, which has probability (n−j)/n. Multiplying from j=0 through K−1 gives
P(no collision in K insertions) = 1·(n−1)/n·(n−2)/n·…·(n−K+1)/n = n! / ((n−K)! nK), for 0≤K≤n.
For K>n the probability is zero by the pigeonhole principle. Do not extend the factorial formula to a negative factorial. At K=0, the empty product is 1; at K=1, no collision is possible and the result is also 1. For n=3,K=2 it is 2/3, because only the second key can cause the first collision.
An equivalent counting argument considers nK equally likely ordered bucket-choice sequences. Collision-free choices are injective assignments of the K ordered keys to the n buckets, numbering n(n−1)…(n−K+1). The keys are distinct, but that does not make their bucket values distinct automatically.
This derivation needs independent uniform hashing, not just equal marginal bucket probabilities. Under the correlated scheme that sends every key to one common randomly chosen bucket, the probability is already zero at K=2 despite uniform marginals. That source-model limitation is stated explicitly rather than hidden in the multiplication.
A hash table has n≥1 buckets, uses external chaining, and is initially empty. K distinct keys are inserted. Each key hashes uniformly to one of the n buckets. Under the standard additional assumption that different keys hash independently, find the probability that the first collision occurs on insertion K.
Answer & solution
Answer: [n! / ((n−K+1)! n^(K−1))]·(K−1)/n for 2≤K≤n+1; 0 otherwise. (no official key was published)
The event consists of two parts: the first K−1 insertions are collision-free, and the Kth key hits one of their occupied buckets. Given the first part, there are exactly K−1 occupied buckets, so the conditional probability of the second part is (K−1)/n.
For 2≤K≤n+1, the requested probability is therefore
The upper endpoint n+1 is legitimate: the first n keys could fill all n buckets without a collision, after which the next key certainly collides. Its probability is n!/nn. For K=1 the event is impossible because an empty table has no occupied bucket. For K>n+1, a first collision must already have happened, so the probability is also zero.
As a check, write pj for the probability of no collision after j insertions. Then P(first at K)=pK−1−p_K. Summing from K=2 to n+1 telescopes to p1−pn+1=1, as required. For n=2 the probabilities are 1/2 at K=2 and 1/2 at K=3. These arguments all use independent uniform bucket choices; the source's uniform marginals alone do not determine the distribution of the first collision.
Two fair independent dice are thrown. Find the probability that at least one shows 6.
Your answer
Answer & solution
Answer: D: 11/36 (no official key was published)
Use the complement event that neither die shows 6. Each die avoids 6 with probability 5/6, so independence gives probability 25/36 for neither. Subtracting from one gives 11/36. Equivalently, there are six outcomes with the first die equal to 6 and six with the second equal to 6, but (6,6) was counted twice: 6+6−1=11 of 36 equally likely outcomes. Simply adding 1/6+1/6 would fail to remove this overlap.
A uniformly shuffled standard 52-card deck is considered. What is the probability its top and bottom cards are both aces?
Your answer
Answer & solution
Answer: C: (4/52)(3/51)=1/221 (no official key was published)
The top position contains an ace with probability 4/52. Conditional on that event, three aces remain among the other 51 cards, and every remaining card is equally likely to occupy the bottom position. Multiplying conditional probabilities gives (4/52)(3/51)=1/221. The two positions are distinct, so the second denominator is 51 rather than 52. Using four aces again for the second event would incorrectly replace the already-used top card.
A number is selected uniformly from 100 through 999. Find the probability it contains no digit 7.
Your answer
Answer & solution
Answer: D: 18/25 (no official key was published)
There are 900 equally likely three-digit numbers. The hundreds position has eight allowed choices: 1 through 9 except 7. Each remaining position has nine choices: 0 through 9 except 7. Thus 8·9·9=648 numbers avoid 7, and 648/900=18/25. Using (9/10)³ would wrongly allow zero in the hundreds position and assume all three positions have the same distribution.
A bag holds 10 white and 15 black balls. Two are drawn successively. Find the probability of one of each color.
Your answer
Answer & solution
Answer: C: 1/2 (no official key was published)
The disjoint orders are white then black and black then white. Their probabilities are (10/25)(15/24) and (15/25)(10/24). Adding gives 300/600=1/2. Equivalently there are 10·15 mixed unordered pairs among C(25,2)=300 pairs. The calculation assumes the first ball is not replaced, the usual interpretation of successive draws from the bag; with replacement the answer would instead be 12/25, which is not the listed value.
For arbitrary events A,B, choose the universal statement: product formula for intersection, equality of union to the sum, a multiplied conditional formula, or P(A∪B)≤P(A)+P(B).
Your answer
Answer & solution
Answer: D (no official key was published)
Inclusion–exclusion gives P(A∪B)=P(A)+P(B)−P(A∩B). The intersection probability is nonnegative, so the union is at most the sum. Equality needs disjointness, which is not stated. The product formula for the intersection needs independence. Conditional probability, when P(B)>0, is P(A|B)=P(A∩B)/P(B), not multiplication by P(B). Thus D is the only unconditional assertion among the listed alternatives.
Given P(B)=P1, P(A∩B)=P2 and P(A∩Bᶜ)=P3, find P(A). The clearer alternate supplies these premises.
Answer & solution
Answer: P2+P3 (no official key was published)
Every outcome in A either lies in B or in its complement. Therefore A=(A∩B)∪(A∩Bᶜ), and the two pieces are disjoint. Additivity gives P(A)=P2+P3. P1 is not needed for this result, though consistency requires P2≤P1 and P3≤1−P1.
Independent A,B,C have probabilities 0.8,0.5,0.3. Find the probability that at least one occurs.
Answer & solution
Answer: 0.93 (no official key was published)
The complement is that none occurs. Mutual independence gives P(Aᶜ∩Bᶜ∩Cᶜ)=(1−0.8)(1−0.5)(1−0.3)=0.2·0.5·0.7=0.07. Therefore the requested probability is 1−0.07=0.93. Adding 0.8+0.5+0.3 would overcount overlapping outcomes. The multiplication needs mutual independence as stated; pairwise independence alone would not determine the three-way complement probability.