GATE Data Science & AIGATE DA
Module 2 · Probability

Probability: the most-asked topic in GATE DA

Probability and statistics carry about 18 of the 85 subject marks every year, more than any other topic, and the share has grown each year. A Bayes’ theorem question has appeared in every paper. This module takes you from counting outcomes to joint distributions, using the Data Premier League as the running example.

You need: sums, sets, exponentials, and a little integration. If any of those feel rusty, the maths refreshers cover them in about two hours. New to probability altogether? Chapter 1.1 starts from what a probability means, with a simulation you can run, and each chapter shows a small worked case before its formulas. Words with a dotted underline can be tapped for a plain definition.

The route

    The first chapter says what a probability actually is, with a simulation you can run, and introduces the words the rest of the module uses. Then: probability starts with counting. If every outcome is equally likely, a probability is just “favourable outcomes ÷ all outcomes”, so you need to count both quickly and correctly. This part builds the counting toolkit (arrangements, selections, stars and bars), then turns it into probability: sample spaces, events, the three axioms, and the difference between “mutually exclusive” and “independent”.

    You need: sets and Venn diagrams (Refreshers 2.2).

    What a probability is, before any formulas

    A probability is a number between 0 and 1 that says how often something happens in the long run: 0 means never, 1 means always, and ½ means half the time if you could repeat the situation forever.

    Every chapter of this module, and most of statistics and machine learning, rests on this one idea. Having a clear picture of it makes the rules in the next chapters feel like common sense rather than formulas to memorise.

    It’s like a batter’s strike rate over a whole career: one innings tells you little, but over hundreds of balls the rate settles to a number you can trust.

    Where it shows up in GATE DA

    Never asked on its own; it is the meaning behind every probability question.

    2024 Q12 · three fair coins2025 Q45 · 100 fair dice2026 Q57 · a test that is positive 80% of the time
    Heat: behind every question in Probability and Statistics

    Quick check. Do you know what $A \cup B$ and $A \cap B$ mean for two sets? If not, read Refreshers 2.2, Sets and Venn diagrams first: events are sets, and this module writes them that way.

    Why we need a number for chance

    Before a DPL match the Kalinga Kernels’ analyst is asked: “How likely are we to win the toss?” and “How likely is it to rain?”. Words like “fairly likely” or “a good chance” mean different things to different people, and you can’t calculate with them. A number can be compared, combined and checked against what actually happens. That number is a probability.

    The scale from 0 to 1

    • $P = 0$: impossible (a die showing 7).
    • $P = 1$: certain (a die showing a number from 1 to 6).
    • $P = 0.5$: as likely as not (a fair coin landing heads).
    • Everything else sits in between. $P = 0.1$ means “about 1 time in 10”.

    You’ll see the same probability written as a fraction, a decimal or a percentage: $\tfrac14 = 0.25 = 25\%$.

    Probability as a long-run fraction

    Toss a fair coin 10 times and you might get 7 heads; that’s 70%, not 50%. Toss it 10 000 times and the fraction of heads will be very close to 0.5. The probability of an event is the fraction of times it would happen if the experiment were repeated over and over. The widget below lets you watch that happen.

    Try it

    Pick an experiment and run a few trials at a time, then a few thousand. Watch the blue line (the fraction of successes so far) wobble at first and then settle onto the dashed line (the probability). Start again and notice that the early wobbles are different every time, but the destination is the same.

    Equally likely outcomes

    Often we don’t need to run any trials, because the situation is symmetric. A fair die has six faces and no reason to favour any of them, so each outcome has probability $\tfrac16$. When all outcomes are equally likely, $$P(\text{event}) = \frac{\text{number of outcomes in the event}}{\text{number of possible outcomes}}.$$ For “the die shows an even number” that’s $\tfrac36 = \tfrac12$. For “two dice sum to 7” it’s $\tfrac{6}{36}$: of the 36 equally likely pairs, six ((1,6), (2,5), (3,4), (4,3), (5,2), (6,1)) add to 7.

    This is why the next chapter is about counting: for equally likely outcomes, probability is counting twice and dividing.

    • An experiment is anything with an uncertain result: a toss, a delivery, a match.
    • The sample space $S$ is the set of all possible outcomes. Two coin tosses: $S = \{HH, HT, TH, TT\}$.
    • An event is a set of outcomes, like “at least one head” $= \{HH, HT, TH\}$.
    • $P(A)$ is the probability of event $A$. The complement $A^c$ ("not $A$") has $P(A^c) = 1 - P(A)$.

    Two fair coins are tossed. Find the probability of (a) exactly one head, (b) at least one head.

    1. List the sample space: $HH, HT, TH, TT$. Four outcomes, all equally likely.

      Order matters here: $HT$ (first coin heads) and $TH$ are different outcomes. Treating them as one is the most common beginner slip.

    2. (a) Exactly one head: $\{HT, TH\}$, 2 outcomes. $P = \tfrac24 = \tfrac12$.

      Count the outcomes in the event, divide by the total.

    3. (b) At least one head: $\{HH, HT, TH\}$, so $P = \tfrac34$. Or use the complement: “at least one head” fails only for $TT$, so $P = 1 - \tfrac14 = \tfrac34$.

      “At least one” is almost always easiest through its complement, “none”. You’ll use this trick constantly.

    Warm-up. A fair die is thrown. What is the probability that it shows a number greater than 4? (A fraction like 1/3 or a decimal is fine.)

    Which faces are greater than 4? Count them and divide by 6.

    The faces 5 and 6: 2 faces out of 6, so $P = \tfrac26 = \tfrac13 \approx 0.333$.

    Two fair dice are thrown. What is the probability that they sum to 11?

    There are 36 equally likely ordered pairs. Which pairs add to 11?

    (5, 6) and (6, 5): 2 of 36, so $P = \tfrac{2}{36} = \tfrac{1}{18} \approx 0.056$.

    The chance of rain during a match is 0.3. What is the chance of no rain?

    “No rain” is the complement of “rain”.

    $1 - 0.3 = 0.7$.

    A fair coin is tossed 1000 times. What can you say about the number of heads?

    Probability describes the long-run fraction, not an exact count.

    About 500. The fraction will be close to ½, but the exact count varies from run to run; 487 or 516 would be perfectly normal. (Statistics, Part 2 makes “about” precise.)

    • Write the sample space out when it’s small. It turns a wordy question into counting.
    • Use the complement for “at least one”.
    • Sanity-check: every probability must lie between 0 and 1.
    • Treating $HT$ and $TH$ as the same outcome. With two coins there are four equally likely outcomes, not three.
    • Expecting short runs to match the probability exactly. Ten tosses can easily give 7 heads.
    • Believing a coin is “due” a head after several tails. Each toss is fresh; the long-run fraction settles because of many future tosses, not because the coin corrects itself.
    1. A probability is a number from 0 (impossible) to 1 (certain): the long-run fraction of times an event happens.
    2. When outcomes are equally likely, P(event) = (outcomes in the event) ÷ (all outcomes), so probability often comes down to counting.
    3. Events are sets of outcomes; P(not A) = 1 − P(A), the quickest route to “at least one” questions.

    Which of these could not be a probability?

    0
    0 is allowed: an impossible event.
    0.999
    Very likely, but allowed.
    1.2
    Probabilities never exceed 1 (certainty).
    $\tfrac{3}{7}$
    Any fraction between 0 and 1 is allowed.

    Two fair coins are tossed. The probability of two heads is

    $\tfrac12$
    That’s for one coin. With two coins, list all four outcomes.
    $\tfrac13$
    There are four outcomes, not three: HT and TH are different.
    $\tfrac14$
    Only $HH$, one of the four equally likely outcomes.
    $\tfrac34$
    That’s “at least one head”.

    A fair coin has landed tails five times in a row. The probability of heads on the next toss is

    more than ½: heads is due
    The coin has no memory of past tosses.
    ½
    Each toss is independent of the last; the coin is still fair.
    less than ½: tails is on a streak
    Streaks don’t change a fair coin.
    $\left(\tfrac12\right)^6$
    That’s the chance of six tails in a row from the start, not of the next single toss.

    Counting without listing everything

    To count outcomes, multiply the number of choices at each step, then divide out any orderings that don’t matter.

    GATE 2026 had three counting questions in one paper. Every equally-likely probability question is a counting question underneath, and the General Aptitude section asks them too.

    It’s like choosing an outfit: 3 shirts and 4 trousers give 3 × 4 = 12 outfits, without having to try them all on.

    Where it shows up in GATE DA

    Direct counting questions, plus the counting step inside probability questions.

    2026 Q20 · stars and bars2026 Q33 · counting special functions2026 Q19 · counting subsets2024 GA Q3 · 4-digit numbers2024 GA Q7 · two girls and a boy
    Heat: rising: 3 questions in 2026

    Why count? Chapter 1.1 showed that with equally likely outcomes, a probability is (outcomes in the event) ÷ (all outcomes). For two coins you can list all four outcomes. For ten dice there are $6^{10} \approx 60$ million, and for a 5-player group chosen from 15 there are 3003. Listing is hopeless; counting rules give the numbers in one line.

    If a task is done in steps, with $n_1$ ways for step 1, then $n_2$ ways for step 2 (whatever happened in step 1), and so on, the total number of ways is $n_1 \times n_2 \times \cdots$.

    The Nagpur Neural Nets have 11 players. How many ways can the coach choose an opening pair and a number-3 batter, in batting order? Opener 1: 11 choices; opener 2: 10 left; number 3: 9 left. Total $11\times10\times9 = 990$.

    That’s an arrangement (a permutation), where order matters. If instead the coach just picks a group of 3 for a fielding drill, order doesn’t matter: each group of 3 was counted $3! = 6$ times (once for each order), so there are $990/6 = 165$ groups.

    Here $n!$ ("$n$ factorial") means $n\times(n-1)\times\cdots\times 1$, the number of ways to line up $n$ things. By convention $0! = 1$.

    The number of groups gets its own symbol: $\binom{11}{3}$, read “11 choose 3”, is the number of ways to choose 3 things from 11 when order doesn’t matter. We just found it is 165. On a calculator it is often the nCr button.

    Choosing r from nOrder mattersOrder doesn’t matter
    No repeats$^nP_r = \dfrac{n!}{(n-r)!}$
    batting orders
    $\binom nr = \dfrac{n!}{r!\,(n-r)!}$
    choosing a squad
    Repeats allowed$n^r$
    PIN codes, coin sequences
    $\binom{n+r-1}{r}$
    stars and bars (below)
    Try it

    Choose $n$ items (letters A, B, C, …) and how many to pick, $r$. Toggle whether order matters and whether repeats are allowed. The widget gives the count and its formula, and lists the actual selections when there are few enough to show. Compare the counts for the same $n, r$ across the four cases.

    Stars and bars

    How many ways can 20 identical runs be split among 4 batters (some may get zero)? Draw the runs as 20 stars, and use 3 bars to cut them into 4 groups: ★★★|★★★★★★★||★★★★★★★★★★ means 3, 7, 0, 10. Every arrangement of 20 stars and 3 bars in a row is one split, and every split is one arrangement. So the count is the number of ways to choose which 3 of the 23 positions are bars: $\binom{23}{3}$.

    The number of solutions of $n_1 + n_2 + \cdots + n_k = n$ in non-negative integers is $\dbinom{n+k-1}{k-1}$. In positive integers (each $n_i \ge 1$) it is $\dbinom{n-1}{k-1}$: give each variable 1 first, then split the remaining $n - k$ freely.

    GATE DA 2026 · Q20 · MCQ · 1 mark

    Suppose that a computer program provides a non-negative and integer-valued random solution to the equation $n_1 + n_2 + n_3 + n_4 = 20$. Which of the following is the probability that all of $n_1, n_2, n_3, n_4$ in the provided solution are positive?

    1. $\binom{19}{3}\big/\binom{23}{3}$
    2. $\binom{20}{4}\big/\binom{24}{4}$
    3. $\binom{20}{3}\big/\binom{23}{3}$
    4. $\binom{19}{4}\big/\binom{24}{4}$

    “Random solution” means each solution is equally likely, so the probability is (positive solutions) ÷ (all non-negative solutions).

    1. All non-negative solutions: $n = 20$, $k = 4$, so $\binom{20+3}{3} = \binom{23}{3}$.

      20 stars and 3 bars: choose the 3 bar positions among 23.

    2. Positive solutions: give each $n_i$ one unit first, leaving 16 to split freely among 4: $\binom{16+3}{3} = \binom{19}{3}$.

      Equivalently, $\binom{n-1}{k-1} = \binom{19}{3}$: put the 3 bars in the 19 gaps between the 20 stars, at most one bar per gap.

    3. Probability $= \binom{19}{3}\big/\binom{23}{3} = 969/1771 \approx 0.547$. Answer (A).

      The distractors change 3 to 4 (confusing $k$ with $k - 1$) or 19 to 20 (forgetting to subtract). Official key: (A).

    Go deeper: Pascal’s rule and why C(n, r) = C(n, n − r)

    Choosing which $r$ players are in is the same as choosing which $n - r$ are out, so $\binom nr = \binom n{n-r}$. And $\binom nr = \binom{n-1}{r-1} + \binom{n-1}{r}$: a group of $r$ either includes a particular player (choose the other $r-1$ from $n-1$) or doesn’t (choose all $r$ from $n-1$). This rule builds Pascal’s triangle.

    Warm-up. A player packs 4 shirts, 3 trousers and 2 pairs of shoes. How many different outfits (one of each) can they make?

    Multiply the number of choices at each step.

    $4 \times 3 \times 2 = 24$.

    Warm-up. How many different pairs of openers can be chosen from 5 batters, if order doesn’t matter?

    Count ordered pairs ($5 \times 4$), then divide by the $2!$ orders of each pair.

    $\binom52 = \dfrac{5 \times 4}{2} = 10$.

    The Kalinga Kernels have 15 fit players. How many different playing XIs (groups of 11) can be chosen?

    Order doesn’t matter: $\binom{15}{11} = \binom{15}{4}$.

    $\binom{15}{4} = \frac{15\cdot14\cdot13\cdot12}{24} = 1365$.

    GATE DA 2024 · GA Q3 · MCQ · 1 mark

    How many 4-digit positive integers divisible by 3 can be formed using only the digits {1, 3, 4, 6, 7}, such that no digit appears more than once in a number?

    A number is divisible by 3 when its digit sum is. Using 4 of the 5 digits means leaving one out. Which digit can you leave out?

    All five digits sum to 21. Leaving out digit $d$ leaves a sum of $21 - d$, divisible by 3 only for $d = 3$ or $d = 6$. Each of those 2 digit-sets can be arranged in $4! = 24$ ways: $2 \times 24 = 48$. Official key: (B) 48.

    GATE DA 2026 · Q33 · NAT · 1 mark

    The number of bijections $f(\cdot)$ from the set $S = \{1, 2, 3, 4\}$ to itself such that $f(f(n)) = n$, for all $n \in S$, is ______. (Answer in integer)

    A bijection is a one-to-one pairing of $S$ with itself, i.e. a rearrangement.

    Applying $f$ twice gives back $n$, so each element is either fixed ($f(n) = n$) or swapped with exactly one partner. Count by the number of swapped pairs: 0, 1 or 2.

    No swaps: 1 (the identity). One swap: choose the pair, $\binom42 = 6$. Two swaps: $\{1,2,3,4\}$ split into two pairs: 3 ways. Total $1 + 6 + 3 = 10$. Official key: 10.

    In how many ways can 5 identical man-of-the-match trophies be shared among 4 teams (a team may get none)?

    Stars and bars with $n = 5$ stars and $k = 4$ groups.

    $\binom{5+3}{3} = \binom83 = 56$.

    The league office shares 20 identical sponsorship vouchers among the four playoff teams. A program picks one non-negative integer solution of $n_1 + n_2 + n_3 + n_4 = 20$ uniformly at random, where $n_i$ is the number of vouchers team $i$ gets. What is the probability that no team gets more than 8 vouchers? (Round off to two decimal places.)

    Count the bad solutions instead. How many solutions give one particular team at least 9 vouchers? Can two teams both get 9 or more? Three? Then use inclusion–exclusion.

    All solutions: by stars and bars, $\binom{20+3}{3} = \binom{23}{3} = 1771$.

    Let $A_i$ be the set of solutions where team $i$ gets at least 9. Hand team $i$ nine vouchers first and split the other 11 freely: $|A_i| = \binom{11+3}{3} = \binom{14}{3} = 364$.

    Two teams with at least 9 each: hand out 18 first and split the remaining 2 freely: $|A_i \cap A_j| = \binom{2+3}{3} = 10$. Three teams would need at least 27 vouchers, so triple overlaps are empty.

    Inclusion–exclusion: $|A_1 \cup A_2 \cup A_3 \cup A_4| = 4(364) - \binom42(10) = 1456 - 60 = 1396$.

    Solutions with every $n_i \le 8$: $1771 - 1396 = 375$. Probability $= 375/1771 \approx$ 0.21.

    The Hyderabad Hyperplanes’ XI has 4 specialist bowlers and 7 other players. The coach writes a batting order of all 11, with every order equally likely. What is the probability that no two bowlers bat consecutively?

    1. $\frac{7}{66}$
    2. $\frac{1}{22}$
    3. $\frac{7}{33}$
    4. $\frac{26}{33}$

    Only the set of 4 slots the bowlers occupy matters. Line up the 7 others first: how many gaps does that leave, counting both ends? Each bowler needs a gap of its own.

    Every set of 4 slots out of 11 is equally likely for the bowlers, so the sample space has $\binom{11}{4} = 330$ equally likely sets.

    Gap method: 7 others in a row leave 8 gaps (6 between neighbours, plus one at each end). Putting the 4 bowlers into 4 different gaps keeps them apart, and every “no two adjacent” set of slots arises exactly once this way: $\binom84 = 70$ sets.

    Probability $= 70/330 = 7/33$. Answer (C).

    (A) uses 7 gaps (one end forgotten), (B) uses only the 6 inner gaps, and (D) is the complement: the probability that at least two bowlers do bat consecutively.

    Which of the following counts is/are correct?

    1. From 15 fit players, exactly 715 different XIs include both of the squad’s 2 wicket-keepers.
    2. The letters of KERNELS can be arranged in 5040 distinct ways.
    3. The equation $a + b + c = 10$ has 45 solutions in non-negative integers with $a \ge 2$.
    4. Six players can be split into 3 practice pairs (the pairs are not labelled) in 90 ways.

    In each case ask what might be counted more than once: identical letters, an order that doesn’t matter, or a lower bound you can pay off first.

    (A) True. Both keepers are in, so choose the other 9 from the remaining 13: $\binom{13}{9} = \binom{13}{4} = 715$.

    (B) False. KERNELS has 7 letters with E twice, so $7!/2! = 2520$. The figure 5040 treats the two Es as different.

    (C) True. Put $a' = a - 2 \ge 0$: then $a' + b + c = 8$ has $\binom{8+2}{2} = 45$ solutions.

    (D) False. $\binom62\binom42\binom22 = 90$ lists the pairs in order (first pair, second pair, third pair), so each split is counted $3! = 6$ times. The right count is $90/6 = 15$.

    Correct: A, C.

    • Ask two questions first: does order matter? Are repeats allowed? The answer picks the formula.
    • For “at least one” or awkward cases, count the complement and subtract.
    • Sanity-check with a tiny case you can list by hand.
    • Using a permutation when the question asks for a group (or vice versa).
    • In stars and bars, writing $\binom{n+k-1}{k}$ instead of $\binom{n+k-1}{k-1}$.
    • Double counting: arrangements that differ only in order counted as different groups.
    1. Multiply choices across steps; divide by r! when order inside a group doesn’t matter.
    2. nPr for ordered selections, C(n, r) for groups, nʳ with repeats, and stars and bars C(n+k−1, k−1) for splitting identical items.
    3. Equally likely outcomes turn probability into counting: favourable ÷ total.

    How many 3-letter “words” (any letters, repeats allowed) can be made from A, B, C, D?

    24
    That forbids repeats. Here AAA is allowed.
    64
    4 choices for each of 3 positions: $4^3$.
    4
    That’s $\binom43$, which ignores order and repeats.
    12
    That counts ordered pairs, not triples.

    $\binom{10}{3}$ equals

    720
    That’s $^{10}P_3$ (order matters). Divide by $3!$.
    120
    $720/6 = 120$.
    30
    $\binom{10}{3}$ is not $10\times3$.
    1000
    That’s $10^3$, with repeats and order.

    The number of positive-integer solutions of $a + b + c = 10$ is

    $\binom{12}{2} = 66$
    That’s for non-negative solutions. Positive means each is at least 1.
    $\binom{9}{2} = 36$
    $\binom{n-1}{k-1}$ with $n = 10$, $k = 3$.
    $\binom{10}{3} = 120$
    Check the formula: it’s $\binom{n-1}{k-1}$.
    $3^{10}$
    That counts something else (assigning 10 labelled items to 3 groups).

    Sample spaces, events and the rules of probability

    A probability assigns each event a number between 0 and 1, following three simple axioms; every other rule (complements, unions, “at least one”) follows from them.

    These rules are used in almost every probability question, and “mutually exclusive vs independent” is a favourite source of trick options.

    It’s like a 100-rupee budget spread over outcomes: every outcome gets a non-negative share, the shares total exactly 100, and the money for a group of outcomes is the sum of their shares.

    Where it shows up in GATE DA

    Inside nearly every probability question; sometimes on its own as a complement or independence question.

    2025 Q45 · at least one die shows 12024 Q12 · P(T ∩ S)2026 Q19 · product of a random subset is evenSample Q47 · which events are independent2024 GA Q7
    Heat: every year

    An experiment is anything with an uncertain result: a toss, a match, a delivery. The sample space $S$ (sometimes $\Omega$) is the set of all possible outcomes. An event is a subset of $S$: a collection of outcomes we care about. For the Bengaluru Backprops’ next two tosses, $S = \{HH, HT, TH, TT\}$, and “at least one head” is the event $\{HH, HT, TH\}$.

    1. $P(A) \ge 0$ for every event $A$.
    2. $P(S) = 1$: something certainly happens.
    3. If $A$ and $B$ are mutually exclusive (disjoint: $A \cap B = \varnothing$), then $P(A\cup B) = P(A) + P(B)$. (The same holds for any countable list of pairwise disjoint events.)
    • Complement: $P(A^c) = 1 - P(A)$. Your best friend for “at least one” questions.
    • Union: $P(A\cup B) = P(A) + P(B) - P(A\cap B)$ (inclusion–exclusion again).
    • Equally likely outcomes: $P(A) = |A|/|S|$.
    • $P(\varnothing) = 0$ and $0 \le P(A) \le 1$.

    $A$ and $B$ are independent if $P(A\cap B) = P(A)\,P(B)$. Intuitively: knowing that $A$ happened doesn’t change the chance of $B$. Tosses of different coins, or throws of different dice, are independent.

    One fair die is thrown. Let $A$ = “even” and $B$ = “at most 4”. Are $A$ and $B$ independent?

    1. $A = \{2, 4, 6\}$, so $P(A) = \tfrac36 = \tfrac12$. $B = \{1, 2, 3, 4\}$, so $P(B) = \tfrac46 = \tfrac23$.

      Count outcomes and divide by 6.

    2. $A \cap B = \{2, 4\}$, so $P(A \cap B) = \tfrac26 = \tfrac13$.

      “And” means both: even and at most 4.

    3. $P(A)P(B) = \tfrac12 \cdot \tfrac23 = \tfrac13 = P(A \cap B)$. So yes, independent: knowing the throw is at most 4 leaves the chance of “even” at ½ (two of $\{1,2,3,4\}$ are even).

      Independence is a numerical fact to check, not something you can always see from the story.

    Careful: mutually exclusive and independent are very different. Mutually exclusive events can’t happen together, so if one happens the other certainly didn’t, which is the opposite of “no information”. Two mutually exclusive events with positive probabilities are never independent: $P(A\cap B) = 0 \ne P(A)P(B)$.
    Try it

    The 36 squares are the outcomes of throwing two dice. Pick event A and event B; the widget shades them and their overlap. Check the independence test $P(A\cap B) = P(A)P(B)$. Can you find a pair that is independent? A pair that is mutually exclusive? Is any pair both?

    GATE DA 2025 · Q45 · MCQ · 2 marks

    A random experiment consists of throwing 100 fair dice, each die having six faces numbered 1 to 6. An event $A$ represents the set of all outcomes where at least one of the dice shows a 1. Then, $P(A) =$

    1. 0
    2. 1
    3. $1 - \left(\frac56\right)^{100}$
    4. $\left(\frac56\right)^{100}$
    1. “At least one 1” has many cases (exactly one, exactly two, …). Its complement has just one: “no die shows 1”.

      Whenever you see “at least one”, reach for the complement first.

    2. One die avoids 1 with probability $\tfrac56$. The dice are independent, so all 100 avoid it with probability $\left(\tfrac56\right)^{100}$.

      For independent events, the probability that all of them happen is the product.

    3. $P(A) = 1 - \left(\tfrac56\right)^{100}$. Answer (C).

      (D) is the complement itself, a trap for anyone who forgets the last step. (B) is tempting because the value is very close to 1 ($1 - 1.2\times10^{-8}$), but it isn’t exactly 1. Official key: (C).

    Go deeper: independence of three or more events

    Events $A, B, C$ are mutually independent if every pair satisfies the product rule and $P(A\cap B\cap C) = P(A)P(B)P(C)$. Pairwise independence alone isn’t enough. Classic example: toss two coins; $A$ = first is heads, $B$ = second is heads, $C$ = both match. Each pair is independent, but $P(A\cap B\cap C) = \tfrac14 \ne \tfrac18$.

    Warm-up. $A$ and $B$ are mutually exclusive with $P(A) = 0.4$ and $P(B) = 0.5$. Find $P(A \cup B)$.

    Mutually exclusive events can’t happen together, so their probabilities simply add.

    $0.4 + 0.5 = 0.9$.

    Warm-up. $A$ and $B$ are independent with $P(A) = 0.4$ and $P(B) = 0.5$. Find $P(A \cap B)$.

    Independent means $P(A \cap B) = P(A)P(B)$.

    $0.4 \times 0.5 = 0.2$.

    Two fair dice are thrown. What is the probability that the sum is 7?

    Count the pairs $(a, b)$ with $a + b = 7$ among the 36.

    (1,6), (2,5), (3,4), (4,3), (5,2), (6,1): 6 of 36, so $\tfrac16$.

    The Haryana Heuristics’ captain calls the toss in 4 matches; each call is right with probability ½, independently. What is the probability of at least one right call?

    Complement: all 4 calls wrong.

    $1 - (\tfrac12)^4 = \tfrac{15}{16}$.

    GATE DA 2024 sample paper · Q47 · MSQ · 2 marks

    Let $\{O_1, O_2, O_3, O_4\}$ represent the possible outcomes of a random experiment, with $\Pr(\{O_1\}) = \Pr(\{O_2\}) = \Pr(\{O_3\}) = \Pr(\{O_4\})$. Consider the following events: $P = \{O_1, O_2\}$, $Q = \{O_2, O_3\}$, $R = \{O_3, O_4\}$, $S = \{O_1, O_2, O_3\}$. Then, which of the following statements are true?

    1. P and Q are independent
    2. P and Q are not independent
    3. R and S are independent
    4. Q and S are not independent

    Each outcome has probability ¼. For each pair, compare $P(X\cap Y)$ with $P(X)P(Y)$.

    $P\cap Q = \{O_2\}$: $\tfrac14 = \tfrac12\cdot\tfrac12$ ✓ independent, so (A) true, (B) false. $R\cap S = \{O_3\}$: $\tfrac14$ vs $\tfrac12\cdot\tfrac34 = \tfrac38$ ✗, so (C) false. $Q\cap S = \{O_2, O_3\}$: $\tfrac12$ vs $\tfrac12\cdot\tfrac34 = \tfrac38$ ✗, so they’re not independent and (D) is true. Answer: A, D. (The sample paper has no official key; this is our solution.)

    GATE DA 2026 · Q19 · MCQ · 1 mark

    Let $M$ be a randomly chosen non-empty subset of $S = \{1, 2, 3, \ldots, 2026\}$. Which of the following is the probability that the product of all the elements of $M$ is even?

    1. $2^{1013}(2^{1013}-1)/2^{2026}$
    2. $2^{1013}/2^{2026}$
    3. $2^{1013}(2^{1013}-1)/(2^{2026}-1)$
    4. $1/(2^{2026}-1)$

    The product is odd only if every element is odd. Count non-empty subsets of the 1013 odd numbers, and use the complement. How many non-empty subsets are there in total?

    Total non-empty subsets: $2^{2026} - 1$. Subsets with an odd product are non-empty subsets of the 1013 odd numbers: $2^{1013} - 1$. So $P(\text{even}) = 1 - \frac{2^{1013}-1}{2^{2026}-1} = \frac{2^{2026} - 2^{1013}}{2^{2026}-1} = \frac{2^{1013}(2^{1013}-1)}{2^{2026}-1}$. Answer (C); (A) forgets that the empty set is excluded. Official key: (C).

    The jerseys in a DPL merchandise draw are numbered 1 to 1000, and one is drawn at random. What is the probability that its number is divisible by 6, by 10 or by 15? (Round off to three decimal places.)

    Use inclusion–exclusion for three events. What is the least common multiple of any two of 6, 10 and 15? Of all three?

    Let $A$, $B$, $C$ be “divisible by 6”, “by 10”, “by 15”. Counting multiples up to 1000: $|A| = 166$, $|B| = 100$, $|C| = 66$.

    A number divisible by two of them is divisible by their least common multiple, and every pair has lcm 30, as do all three. There are 33 multiples of 30, so $|A\cap B| = |A\cap C| = |B\cap C| = |A\cap B\cap C| = 33$.

    Inclusion–exclusion for three sets: $|A\cup B\cup C| = |A| + |B| + |C| - |A\cap B| - |A\cap C| - |B\cap C| + |A\cap B\cap C| = 332 - 99 + 33 = 266$.

    Probability $= 266/1000 =$ 0.266.

    A tied match is settled by a bowl-out. The Kalinga Kernels and the Haryana Heuristics take turns bowling one ball at an unguarded stump, Kernels first. A Kernels ball hits with probability 0.4, a Heuristics ball with probability 0.3, and all balls are independent. The first hit wins. What is the probability that the Kernels win? (Round off to two decimal places.)

    The Kernels can win on their 1st, 2nd, 3rd, … ball. Before each later chance, a full round (one ball each) must have missed. Add up a geometric series, or condition on what happens in the first round.

    A full round with no hit has probability $0.6 \times 0.7 = 0.42$ (independent balls multiply).

    The Kernels win on their $k$-th ball when the first $k-1$ rounds all miss and then their ball hits: probability $0.42^{k-1}\times 0.4$. These events are disjoint, so add them:

    $$P(\text{Kernels win}) = 0.4\left(1 + 0.42 + 0.42^2 + \cdots\right) = \frac{0.4}{1 - 0.42} = \frac{0.4}{0.58} = \frac{20}{29}.$$

    (Shortcut: if $p$ is the answer, then $p = 0.4 + 0.42\,p$, because after a blank round the game restarts.) So $p \approx$ 0.69.

    Events $A$ and $B$ have $P(A) = 0.6$, $P(B) = 0.3$ and $P(A\cup B) = 0.72$. Which of the following is/are correct?

    1. $A$ and $B$ are independent.
    2. $P(\text{exactly one of } A, B \text{ happens}) = 0.72$.
    3. $A^c$ and $B$ are independent.
    4. $A$ and $B$ are mutually exclusive, because $P(A) + P(B) \le 1$.

    Find $P(A\cap B)$ from the union rule first. Everything else follows from it.

    Union rule: $P(A\cap B) = P(A) + P(B) - P(A\cup B) = 0.6 + 0.3 - 0.72 = 0.18$.

    (A) True: $P(A)P(B) = 0.6\times0.3 = 0.18 = P(A\cap B)$.

    (B) False: “exactly one” is the union minus the overlap, $0.72 - 0.18 = 0.54$. The union also counts the outcomes where both happen.

    (C) True: $P(A^c\cap B) = P(B) - P(A\cap B) = 0.3 - 0.18 = 0.12$, and $P(A^c)P(B) = 0.4\times0.3 = 0.12$. Complements of independent events are always independent.

    (D) False: they overlap with probability 0.18, not 0. A sum below 1 says nothing about whether two events can happen together.

    Correct: A, C.

    • Write the sample space (or its size) before computing anything.
    • Use the complement for “at least one” and “not all”.
    • Test independence with the product rule, never by intuition alone.
    • Adding probabilities of events that overlap, without subtracting $P(A\cap B)$.
    • Calling mutually exclusive events independent.
    • Multiplying probabilities of events that aren’t independent.
    1. Events are sets of outcomes. The axioms are: non-negative, total 1, and add for disjoint events.
    2. P(Aᶜ) = 1 − P(A) and P(A ∪ B) = P(A) + P(B) − P(A ∩ B). Use the complement for “at least one”.
    3. Independent means P(A ∩ B) = P(A)P(B). Mutually exclusive means P(A ∩ B) = 0. With positive probabilities they can’t both hold.

    $P(A) = 0.5$, $P(B) = 0.4$, $P(A\cap B) = 0.2$. Then $P(A\cup B)$ is

    0.9
    The overlap has been counted twice.
    0.7
    $0.5 + 0.4 - 0.2$.
    0.2
    That’s the intersection.
    0.5
    Use inclusion–exclusion.

    With the same numbers, are $A$ and $B$ independent?

    No, because they overlap
    Overlapping says nothing about independence on its own. Use the product rule.
    Yes, because 0.5 × 0.4 = 0.2
    $P(A)P(B) = P(A\cap B)$ exactly.
    No, because 0.5 + 0.4 ≠ 1
    Independence has nothing to do with the probabilities summing to 1.
    Can’t tell without more information
    $P(A\cap B)$ is given, which is all the test needs.

    $A$ and $B$ are mutually exclusive with $P(A) = 0.3$, $P(B) = 0.5$. Which is true?

    They are independent
    $P(A\cap B) = 0$ but $P(A)P(B) = 0.15$.
    $P(A\cup B) = 0.8$
    Disjoint events simply add.
    $P(A\cap B) = 0.15$
    Mutually exclusive means they can’t happen together.
    $P(A^c) = 0.5$
    $P(A^c) = 1 - 0.3$.

    A fair coin is tossed 10 times. The probability of at least one tail is

    $10 \times \tfrac12$
    That’s 5, more than 1, so it can’t be a probability.
    $(\tfrac12)^{10}$
    That’s the probability of no tails at all.
    $1 - (\tfrac12)^{10}$
    Complement of “all heads”.
    $\tfrac12$
    That’s for a single toss.

    A committee of 2 bowlers and 1 batter is chosen from 5 bowlers and 4 batters. How many committees are possible?

    84
    That’s $\binom93$, which ignores the required mix.
    40
    $\binom52\times\binom41 = 10\times4$.
    14
    Multiply the two choices; don’t add them.
    80
    Choosing 2 bowlers is a group (order doesn’t matter): $\binom52 = 10$, not 20.

    Two cards are drawn without replacement from a well-shuffled deck. Are “first card is a heart” and “second card is a heart” independent?

    No
    Drawing a heart first leaves fewer hearts, so the second probability changes (12/51 vs 13/51).
    Yes
    Without replacement, the first draw changes what’s left.
    Only if the deck is fair
    Even with a fair deck, removing a card changes the odds.

    A fair die is thrown until the first 6. The probability that this takes more than 3 throws is

    $\tfrac12$
    More than 3 throws means the first three are all non-6.
    $(\tfrac56)^3$
    The first three throws all miss: $\tfrac56\cdot\tfrac56\cdot\tfrac56 \approx 0.579$.
    $3\cdot\tfrac16$
    That’s the expected number of 6s in three throws, not this probability.
    $1 - (\tfrac56)^3$
    That’s the chance of a 6 within the first three throws.

    The number of ways to arrange the letters of LEAGUE (E appears twice) is

    720
    Swapping the two Es gives the same word, so you’ve double-counted.
    360
    $6!/2!$.
    120
    That’s $5!$. There are 6 letters.
    180
    Only one letter repeats, and only twice.

    How should a probability change when you learn something new? Conditional probability answers that, and Bayes’ theorem runs it backwards: from “how likely is the evidence if the cause is true?” to “how likely is the cause, given the evidence?”. A Bayes question has appeared in every GATE DA paper so far, usually as a 2-mark numerical answer.

    You need: Part 1 (events, complements, independence).

    Conditional probability: updating on new information

    $P(A\mid B)$ is the probability of $A$ once you know $B$ happened: you shrink the world down to $B$ and ask what fraction of it is also $A$.

    It’s the engine behind Bayes’ theorem, Naive Bayes classifiers and Bayesian networks, three topics that between them appear in every GATE DA paper.

    It’s like a cricket commentator updating predictions: “the Backprops win 50% of their matches, but when they win the toss it’s 60%”. Same team, new information, new probability.

    Where it shows up in GATE DA

    Inside every Bayes, Naive Bayes and Bayesian-network question, and in tree-style word problems.

    Sample Q45 · voting twice the same way2024 Q58 · P(T | S)2025 Q31 · balls in boxes2024 Q24, Q64 · Bayesian networks2025 Q11 · conditional expectation
    Heat: every year, often several questions

    Throw two dice and suppose you’re told the first die shows 3. The 36 outcomes shrink to six: (3,1), …, (3,6). Among those, only (3,5) has a sum of 8. So $P(\text{sum} = 8 \mid \text{first} = 3) = \tfrac16$, even though without the information $P(\text{sum} = 8) = \tfrac{5}{36}$.

    That’s all conditional probability is: restrict to the outcomes where $B$ happened, then see what fraction of them are in $A$.

    The conditional probability of $A$ given $B$: for $P(B) \gt 0$, $$P(A\mid B) = \frac{P(A\cap B)}{P(B)}.$$ Read the bar “∣” as “given”. Rearranged, this is the multiplication rule: $P(A\cap B) = P(B)\,P(A\mid B) = P(A)\,P(B\mid A)$.

    If $B_1, B_2, \ldots, B_k$ split the sample space into non-overlapping pieces (a partition), then $$P(A) = \sum_{i} P(B_i)\,P(A\mid B_i).$$ Work out the chance of $A$ in each scenario, weight each by how likely that scenario is, and add. With two scenarios: $P(A) = P(B)P(A\mid B) + P(B^c)P(A\mid B^c)$.

    A tree diagram makes both rules visual. The first branching is the scenario ($B$ or not $B$); the second is the outcome ($A$ or not $A$) with conditional probabilities on the branches. Multiply along a path to get the probability of that path; add the paths that end in $A$ to get $P(A)$.

    Independence, restated: $A$ and $B$ are independent exactly when $P(A\mid B) = P(A)$. Learning $B$ tells you nothing about $A$.

    Try it

    The Bengaluru Backprops win the toss half the time. Set how often they win the match after winning the toss, and after losing it. The tree multiplies along each path and adds the paths ending in a win. Then look at the last line, which reverses the question: given they won, how likely is it they’d won the toss? That reversal is Bayes’ theorem, coming up next.

    GATE DA 2024 sample paper · Q45 · NAT · 2 marks

    A class contains 60% of students who are incapable of changing their opinions about anything, and 40% of students are changing their minds at random, with probability 0.3, between subsequent votes on the same issue. Then, the probability of a student randomly chosen voted twice in the same way is ______.

    1. Two scenarios partition the class: $R$ = rigid (0.6) and $F$ = flexible (0.4). Let $A$ = “voted the same way twice”.

      The question describes behaviour separately for each group, which is the signal to use total probability.

    2. $P(A\mid R) = 1$: rigid students never change. $P(A\mid F) = 1 - 0.3 = 0.7$.

      A flexible student changes with probability 0.3, so keeps the same vote with probability 0.7.

    3. $P(A) = 0.6\times1 + 0.4\times0.7 = 0.6 + 0.28 = $ 0.88.

      Weight each scenario’s answer by the scenario’s probability and add. (The sample paper didn’t publish a key; this is our solution.)

    Go deeper: conditional probability is a probability

    For a fixed $B$, the function $A \mapsto P(A\mid B)$ satisfies all three axioms: it’s non-negative, $P(B\mid B) = 1$, and it adds over disjoint events. So every rule you know (complements, unions) also works "given $B$": $P(A^c\mid B) = 1 - P(A\mid B)$. This is why you can keep conditioning on more and more information, which is what Bayesian networks do.

    Warm-up. A fair die shows an even number. What is the probability it is a six?

    Shrink the world to the even faces $\{2, 4, 6\}$. What fraction of them is a six?

    One of the three even faces is a six: $\tfrac13$. By the formula: $P(\text{six} \cap \text{even}) / P(\text{even}) = \tfrac16 / \tfrac12 = \tfrac13$.

    Warm-up. $P(A \cap B) = 0.12$ and $P(B) = 0.4$. Find $P(A \mid B)$.

    Divide the joint probability by the probability of what you’re given.

    $0.12 / 0.4 = 0.3$.

    Two dice are thrown and the sum is 8. What is the probability that both dice show the same number?

    List the outcomes with sum 8. That list is your new sample space.

    Sum 8: (2,6), (3,5), (4,4), (5,3), (6,2), five outcomes. Only (4,4) is a double, so $\tfrac15$.

    60% of league matches are day matches. A rain delay happens in 10% of day matches and 30% of night matches. What fraction of all matches have a rain delay?

    Total probability: $0.6 \times 0.1 + 0.4 \times 0.3$.

    $0.06 + 0.12 = 0.18$.

    $P(A\cap B) = 0.12$ and $P(B) = 0.3$. Find $P(A\mid B)$.

    Divide the joint probability by the probability of the condition.

    $0.12 / 0.3 = 0.4$.

    For events with positive probability, which statements are each equivalent to "$A$ and $B$ are independent"? (Select all that apply.)

    (A) $P(A\mid B) = P(A)$   (B) $P(A\cap B) = P(A)P(B)$   (C) $P(A\mid B) = P(B\mid A)$   (D) $P(B\mid A) = P(B)$

    Rewrite each conditional probability using the definition and see which ones reduce to the product rule.

    (A) and (D) each multiply out to (B). (C) says $\frac{P(A\cap B)}{P(B)} = \frac{P(A\cap B)}{P(A)}$, which holds when $P(A) = P(B)$ (or the events are disjoint), so it has nothing to do with independence.

    A kit bag holds 4 red and 6 white practice balls. A ball is drawn at random, its colour noted, and it is put back together with 2 extra balls of the same colour. A second ball is then drawn at random. Given that the second ball is red, what is the probability that the first ball was red?

    First find $P(\text{2nd red})$ by the law of total probability, splitting on the colour of the first ball. Then divide the “red, then red” path by it.

    Write $R_1$, $R_2$ for “first ball red”, “second ball red”.

    If the first is red (probability $\tfrac{4}{10}$), the bag becomes 6 red and 6 white, so $P(R_2\mid R_1) = \tfrac{6}{12} = \tfrac12$. If the first is white (probability $\tfrac{6}{10}$), the bag becomes 4 red and 8 white, so $P(R_2\mid R_1^c) = \tfrac{4}{12} = \tfrac13$.

    Total probability: $P(R_2) = 0.4\times\tfrac12 + 0.6\times\tfrac13 = 0.2 + 0.2 = 0.4$.

    $P(R_1\cap R_2) = 0.4\times\tfrac12 = 0.2$, so $P(R_1\mid R_2) = 0.2/0.4 =$ 0.5.

    Note that learning the second ball is red raises the chance the first was red from 0.4 to 0.5, because a red first draw adds red balls.

    Two fair dice are thrown. You are told that at least one die shows a 6. What is the probability that the sum is at least 10?

    1. $\frac{5}{36}$
    2. $\frac{5}{12}$
    3. $\frac{5}{11}$
    4. $\frac16$

    List the outcomes with at least one 6. Be careful not to count (6, 6) twice. That list is your new sample space.

    Let $B$ = “at least one 6”. It has $6 + 6 - 1 = 11$ outcomes out of 36 (first die 6, or second die 6, minus the double count of (6, 6)).

    Let $A$ = “sum at least 10”. Within $B$: (6, 4), (4, 6), (6, 5), (5, 6), (6, 6), so 5 outcomes. (The only other way to reach 10, (5, 5), has no 6.)

    All 36 outcomes are equally likely, so $P(A\mid B) = \frac{|A\cap B|}{|B|} = \frac{5}{11}$. Answer (C).

    (A) is $P(A\cap B)$ without dividing, (B) counts (6, 6) twice, and (D) is $P(A) = 6/36$, which ignores the information.

    The Nagpur Neural Nets’ squad of 15 includes 5 bowlers. For a fitness test the players are called one at a time in a random order. What is the probability that the third bowler to be called is the 6th player called? (Round off to three decimal places.)

    The event means two things at once: exactly 2 bowlers among the first 5 called, and then a bowler 6th. Use the multiplication rule $P(A\cap B) = P(A)\,P(B\mid A)$.

    Let $A$ = “exactly 2 bowlers among the first 5 called”. The first 5 called are a random group of 5 from 15, so $P(A) = \dfrac{\binom52\binom{10}{3}}{\binom{15}{5}} = \dfrac{10\times120}{3003} = \dfrac{1200}{3003}$.

    Given $A$, 10 players remain and 3 of them are bowlers, so the 6th called is a bowler with probability $\tfrac{3}{10}$.

    Multiply: $\dfrac{1200}{3003}\times\dfrac{3}{10} = \dfrac{360}{3003} = \dfrac{120}{1001} \approx$ 0.120.

    • Identify the condition (what you know) and put it after the bar.
    • Use a tree whenever a problem describes behaviour scenario by scenario.
    • Check that the branches out of each node add up to 1.
    • Confusing $P(A\mid B)$ with $P(B\mid A)$, the most common error in all of probability.
    • Dividing by $P(A)$ instead of $P(B)$ in $P(A\mid B)$.
    • Forgetting a scenario when adding paths in total probability.
    1. P(A | B) = P(A ∩ B)/P(B): shrink the world to B, then measure A inside it.
    2. Multiplication rule P(A ∩ B) = P(B)P(A | B); total probability P(A) = Σ P(Bᵢ)P(A | Bᵢ).
    3. Independent ⇔ P(A | B) = P(A). And P(A | B) is generally not P(B | A).

    A card is drawn from a standard deck. Given that it is a face card (J, Q, K), the probability it is a king is

    $\tfrac{1}{13}$
    That’s without the information. The condition shrinks the deck to 12 face cards.
    $\tfrac13$
    4 kings among 12 face cards.
    $\tfrac{4}{52}$
    Restrict to the face cards first.
    $\tfrac{3}{13}$
    That’s $P(\text{face card})$.

    $P(\text{rain}) = 0.2$, $P(\text{delay}\mid\text{rain}) = 0.9$. Then $P(\text{rain and delay})$ is

    0.9
    That’s the conditional probability. Multiply by $P(\text{rain})$.
    0.18
    $0.2 \times 0.9$, by the multiplication rule.
    1.1
    Probabilities don’t add here, and they can’t exceed 1.
    0.2
    Not every rainy match is delayed.

    90% of professional batters wear helmets. Does that mean 90% of helmet-wearers are professional batters?

    Yes, it’s the same statement
    It’s $P(H\mid B)$ versus $P(B\mid H)$. They’re different.
    No: P(helmet | batter) is not P(batter | helmet)
    Lots of non-professionals wear helmets too. Reversing a conditional needs Bayes’ theorem.
    Only if the events are independent
    Even then, the two would equal $P(H)$ and $P(B)$, which differ.

    Bayes’ theorem: from evidence back to cause

    Bayes’ theorem turns $P(\text{evidence}\mid\text{cause})$, which is usually easy to know, into $P(\text{cause}\mid\text{evidence})$, which is what you actually want.

    There has been a Bayes question in every GATE DA paper: 2024 Q58, 2025 Q31 and 2026 Q57, all numerical answers. Naive Bayes classifiers (also tested every year) are this same theorem applied to data.

    It’s like a detective: “if the butler did it, there’s a 90% chance we’d find mud on the carpet”. Finding mud doesn’t mean 90% the butler did it; that depends on how many other suspects there were.

    Where it shows up in GATE DA

    A guaranteed numerical question each year, plus Naive Bayes in machine learning.

    2026 Q57 · disease testing2024 Q58 · P(T | S)2025 Q31 · which box?2025 Q35 · Naive Bayes misclassification2024 Q20 · Naive Bayes parameters
    Heat: every year, about 2–4 marks

    $$P(B\mid A) = \frac{P(A\mid B)\,P(B)}{P(A)} = \frac{P(A\mid B)\,P(B)}{P(A\mid B)\,P(B) + P(A\mid B^c)\,P(B^c)}.$$ With several possible causes $B_1, \ldots, B_k$: $\displaystyle P(B_j\mid A) = \frac{P(A\mid B_j)P(B_j)}{\sum_i P(A\mid B_i)P(B_i)}$.

    Names: $P(B)$ is the prior (before evidence), $P(A\mid B)$ the likelihood, $P(B\mid A)$ the posterior (after evidence).

    The proof is one line: both $P(A\mid B)P(B)$ and $P(B\mid A)P(A)$ equal $P(A\cap B)$, so set them equal and divide. The denominator is just the law of total probability. In practice, a Bayes problem is a tree: the posterior is (the one path you care about) ÷ (all paths that show the evidence).

    Think in people, not percentages

    Imagine 1000 people. If a condition affects 30% of them, that’s 300 people. If the test catches 80% of those, that’s 240 true positives. Of the 700 without it, the test wrongly flags 10%: 70 false positives. So of the 310 who test positive, 240 actually have the condition: $240/310 \approx 77\%$. Natural frequencies make Bayes almost impossible to get wrong.

    Try it

    Each square is one person out of 1000. Set how common the condition is (the prior), how often the test catches it, and how often it wrongly flags a healthy person. Then watch the answer to “I tested positive; how likely is it that I have it?”. Set the prior to 1% and see how a very good test can still mostly produce false alarms. That’s the base-rate effect.

    GATE DA 2026 · Q57 · NAT · 2 marks

    A clinic specializes in testing for a disease D. The result of the test can be either positive or negative. A study revealed that if a person suffers from the disease D, the test result in that clinic comes out positive 80% of the time, and negative 20% of the time. If a person is not suffering from the disease D, the test comes out positive 10% of the time and negative 90% of the time. It is also known that among the general population, the disease D occurs in 30% of the individuals. If a person tests positive for D in that clinic, the probability that he/she actually suffers from the disease D is ______. (Rounded off to two decimal places)

    1. Name things: $D$ = has the disease, $+$ = tests positive. Given: $P(D) = 0.3$, $P(+\mid D) = 0.8$, $P(+\mid D^c) = 0.1$. Wanted: $P(D\mid +)$.

      The question gives $P(\text{evidence}\mid\text{cause})$ and asks for the reverse. That’s the Bayes signal.

    2. Path “disease and positive”: $0.3\times0.8 = 0.24$. Path “healthy and positive”: $0.7\times0.1 = 0.07$.

      Multiply along each branch of the tree. $P(D^c) = 1 - 0.3 = 0.7$.

    3. $P(D\mid +) = \dfrac{0.24}{0.24 + 0.07} = \dfrac{0.24}{0.31} \approx $ 0.77.

      The path you care about divided by all positive paths. Official key: 0.76 to 0.78.

    Write one product for each possible cause: prior × likelihood. The answer is your cause’s product divided by the sum of all the products. You never need $P(A)$ separately; it is that sum.

    Warm-up. A bag is equally likely to be bag 1 or bag 2. A red ball comes out with probability 0.8 from bag 1 and 0.2 from bag 2. Given a red ball, what is the probability it was bag 1?

    Prior × likelihood for each bag: $0.5 \times 0.8$ and $0.5 \times 0.2$. Then your bag’s product ÷ the sum.

    $\dfrac{0.4}{0.4 + 0.1} = 0.8$.

    Warm-up. $P(B) = 0.2$, $P(A \mid B) = 0.5$ and $P(A) = 0.25$. Find $P(B \mid A)$.

    Bayes: $P(B \mid A) = P(A \mid B)P(B) / P(A)$.

    $0.5 \times 0.2 / 0.25 = 0.4$.

    GATE DA 2024 · Q58 · NAT · 2 marks

    Consider two events $T$ and $S$. Let $\bar T$ denote the complement of the event $T$. The probability associated with different events are given as follows: $P(\bar T) = 0.6$, $P(S\mid T) = 0.3$, $P(S\mid\bar T) = 0.6$. Then, $P(T\mid S)$ is ______ (rounded off to two decimal places).

    $P(T) = 0.4$. The two paths to $S$ are $0.4\times0.3$ and $0.6\times0.6$.

    $P(T\mid S) = \frac{0.4\times0.3}{0.4\times0.3 + 0.6\times0.6} = \frac{0.12}{0.48} = 0.25$. Official key: 0.25.

    GATE DA 2025 · Q31 · NAT · 1 mark

    There are three boxes containing white balls and black balls. Box-1 contains 2 black and 1 white balls. Box-2 contains 1 black and 2 white balls. Box-3 contains 3 black and 3 white balls. In a random experiment, one of these boxes is selected, where the probability of choosing Box-1 is $\tfrac12$, Box-2 is $\tfrac16$, and Box-3 is $\tfrac13$. A ball is drawn at random from the selected box. Given that the ball drawn is white, the probability that it is drawn from Box-2 is ______ (Round off to two decimal places)

    $P(\text{white}\mid\text{Box}) = \tfrac13, \tfrac23, \tfrac12$. Compute prior × likelihood for each box.

    Products: Box-1 $\tfrac12\cdot\tfrac13 = \tfrac16$; Box-2 $\tfrac16\cdot\tfrac23 = \tfrac19$; Box-3 $\tfrac13\cdot\tfrac12 = \tfrac16$. Sum $= \tfrac49$. Posterior for Box-2 $= \tfrac{1/9}{4/9} = 0.25$. Official key: 0.25.

    GATE DA 2025 · Q35 · NAT · 1 mark

    The naive Bayes classifier is used to solve a two-class classification problem with class-labels $y_1, y_2$. Suppose the prior probabilities are $P(y_1) = \tfrac13$ and $P(y_2) = \tfrac23$. Assuming a discrete feature space with $P(x\mid y_1) = \tfrac34$ and $P(x\mid y_2) = \tfrac14$ for a specific feature vector $x$. The probability of misclassifying $x$ is ______ (Round off to two decimal places)

    Compute both posteriors. The classifier picks the larger one; it’s wrong exactly when the true class is the other one.

    Products: $\tfrac13\cdot\tfrac34 = \tfrac14$ and $\tfrac23\cdot\tfrac14 = \tfrac16$. Posteriors: $P(y_1\mid x) = \frac{1/4}{5/12} = 0.6$, $P(y_2\mid x) = 0.4$. The classifier chooses $y_1$, so it misclassifies with probability $0.4$. Official key: 0.39 to 0.41.

    A bag has 99 fair dice and 1 loaded die that always shows 6. You pick a die at random, roll it 4 times, and get four 6s. What’s the probability you picked the loaded die? (Round to two decimal places.)

    Likelihood of four 6s: 1 for the loaded die, $(1/6)^4 = 1/1296$ for a fair one.

    Products: loaded $0.01\times1 = 0.01$; fair $0.99\times\frac{1}{1296} \approx 0.000764$. Posterior $= \frac{0.01}{0.01 + 0.000764} \approx 0.93$. A 1-in-100 prior becomes 93% after strong evidence: four sixes in a row are 1296 times more likely with the loaded die.

    A bag holds two coins that look identical: a fair one and a biased one with $P(\text{heads}) = 0.8$. You pick one at random and toss it 4 times, getting exactly 3 heads. What is the probability that a fifth toss of the same coin shows heads? (Round off to two decimal places.)

    Two stages. First update your belief about which coin you hold, using the binomial probability of 3 heads in 4 tosses as the likelihood. Then average the two coins’ heads probabilities with those updated weights.

    Likelihoods of “3 heads in 4”: fair coin $\binom43(0.5)^4 = 0.25$; biased coin $\binom43(0.8)^3(0.2) = 0.4096$.

    Priors are $\tfrac12$ each, so they cancel in Bayes: $P(\text{biased}\mid\text{data}) = \dfrac{0.4096}{0.4096 + 0.25} = \dfrac{0.4096}{0.6596} \approx 0.621$, and $P(\text{fair}\mid\text{data}) \approx 0.379$.

    Given the data, the fifth toss is independent of the first four once you know the coin, so by total probability: $P(H_5\mid\text{data}) = 0.621\times0.8 + 0.379\times0.5 = \dfrac{0.4096\times0.8 + 0.25\times0.5}{0.6596} = \dfrac{0.45268}{0.6596} \approx$ 0.69.

    Two tempting wrong answers: 0.65 (the average of 0.8 and 0.5, ignoring the evidence) and 0.75 (the observed proportion 3/4, ignoring that only two coins are possible).

    A scan flags a hamstring injury in 90% of injured players and wrongly flags 5% of fit players. Of the players screened, 2% are injured. A player is scanned twice; given his true condition, the two results are independent. Both scans flag him. What is the probability that he is injured? (Round off to two decimal places.)

    For each condition (injured, fit), the chance of two flags is the single-flag chance squared. Then apply Bayes with the 2% prior.

    Write $I$ = injured. Prior $P(I) = 0.02$, $P(I^c) = 0.98$.

    Likelihood of two flags: injured $0.9^2 = 0.81$; fit $0.05^2 = 0.0025$ (independent given the condition, so they multiply).

    Paths: $0.02\times0.81 = 0.0162$ and $0.98\times0.0025 = 0.00245$.

    $P(I\mid\text{two flags}) = \dfrac{0.0162}{0.0162 + 0.00245} = \dfrac{0.0162}{0.01865} \approx$ 0.87.

    For comparison, one flag alone gives only $\frac{0.018}{0.018 + 0.049} \approx 0.27$: the second scan makes a false alarm far less plausible.

    A naive Bayes classifier predicts whether the Bengaluru Backprops win ($W$) or lose ($L$) from two yes/no features: won the toss ($T$) and batted first ($B$). From past seasons: $P(W) = 0.6$, $P(L) = 0.4$; $P(T\mid W) = 0.7$, $P(T\mid L) = 0.4$; $P(B\mid W) = 0.3$, $P(B\mid L) = 0.6$. For a match in which they won the toss and batted first, which is correct?

    1. It predicts $L$, with $P(L\mid T, B) \approx 0.53$.
    2. It predicts $W$, with $P(W\mid T, B) \approx 0.57$.
    3. It predicts $W$, with $P(W\mid T, B) = 0.126$.
    4. It predicts $W$, with $P(W\mid T, B) = 0.6$.

    Naive Bayes assumes the features are independent within each class. So for each class, multiply the prior by both likelihoods; then normalise so the two posteriors add to 1.

    Score for $W$: $0.6\times0.7\times0.3 = 0.126$. Score for $L$: $0.4\times0.4\times0.6 = 0.096$.

    The larger score wins, so it predicts $W$. Normalising, $P(W\mid T, B) = \dfrac{0.126}{0.126 + 0.096} = \dfrac{0.126}{0.222} \approx 0.57$. Answer (B).

    (A) drops the priors: $0.7\times0.3 = 0.21$ against $0.4\times0.6 = 0.24$ flips the decision. (C) forgets to normalise. (D) is just the prior, as if the evidence told you nothing.

    • Label prior, likelihood and the wanted posterior before computing anything.
    • Use the “1000 people” picture when percentages get confusing.
    • Sanity check: a rare cause stays fairly unlikely unless the evidence is very strong.
    • Reporting the likelihood $P(+\mid D)$ as the answer. That’s the base-rate fallacy.
    • Forgetting the false-positive path in the denominator.
    • Using $P(+\mid D^c)$ where $P(-\mid D^c)$ was meant. Read “positive 10% of the time” carefully.
    1. Bayes: posterior = prior × likelihood ÷ (sum of prior × likelihood over all causes).
    2. The denominator is the law of total probability: every way the evidence could have happened.
    3. Base rates matter: a strong test for a rare condition can still give mostly false positives.

    A condition affects 1% of people. A test catches 99% of cases and falsely flags 1% of healthy people. If you test positive, $P(\text{condition})$ is about

    99%
    That’s $P(+\mid\text{condition})$. Account for the 99% who are healthy.
    50%
    $\frac{0.01\times0.99}{0.01\times0.99 + 0.99\times0.01} = 0.5$. True and false positives are equally common here.
    1%
    The positive test is real evidence; the probability must go up from the prior.
    98%
    Try the 1000-people picture: about 10 true positives and 10 false positives.

    In Bayes’ theorem, the denominator $P(A)$ is computed using

    the complement rule
    Not quite; it adds up all the ways $A$ can happen.
    the law of total probability
    $P(A) = \sum_i P(A\mid B_i)P(B_i)$.
    independence of $A$ and $B$
    If they were independent, the evidence would carry no information at all.
    the posterior
    The posterior is what we’re solving for.

    If the prior $P(B)$ doubles (and stays small) while the likelihoods are unchanged, the posterior $P(B\mid A)$

    halves
    A larger prior can only make $B$ more believable.
    roughly doubles
    When $B$ is rare, the denominator is dominated by the $B^c$ path, so the posterior is roughly proportional to the prior.
    stays the same
    The prior appears in the numerator.
    becomes 1
    Only conclusive evidence would do that.

    Two coins are tossed. Given at least one head, the probability of two heads is

    ½
    “At least one head” leaves three equally likely outcomes, not two.
    ⅓
    HH, HT, TH remain; one of them is HH.
    ¼
    That ignores the information.
    ⅔
    That’s the probability of exactly one head, given at least one.

    Prior × likelihood products for three causes are 0.02, 0.06, 0.12. The posterior of the second cause is

    0.06
    Normalise: divide by the total 0.20.
    0.3
    $0.06 / 0.20$.
    0.5
    Recompute the total: $0.02 + 0.06 + 0.12$.
    0.6
    That’s the third cause’s posterior.

    If $A$ and $B$ are independent with $P(A) = 0.3$, then $P(A\mid B)$ is

    $0.3\,P(B)$
    That’s $P(A\cap B)$.
    0.3
    Independence means conditioning on $B$ changes nothing.
    0.7
    That’s $P(A^c)$.
    Depends on $P(B)$
    Not for independent events.

    A random variable turns outcomes into numbers, so you can do arithmetic with chance: average it, measure its spread, ask how two of them move together. This part covers the three ways of describing a random variable (PMF, PDF, CDF), then expectation, variance, covariance and correlation. GATE tests these every year, often by giving you an unusual CDF or asking for a covariance.

    You need: Parts 1–2, sums (Refreshers 2.1) and integrals as area (Refreshers 3.2).

    Random variables and their three descriptions

    A random variable $X$ is a number determined by chance, and its distribution (PMF, PDF or CDF) says how likely each value is.

    GATE likes to hand you an unfamiliar CDF and ask for a probability, a median or a property. If you can read a CDF fluently, those are free marks.

    It’s like a scoreboard: the match is the random experiment, and “runs scored by the Heuristics” is a random variable, one number squeezed out of everything that happened.

    Where it shows up in GATE DA

    CDF-reading questions every year, plus the foundation for every distribution question.

    2025 Q39 · P(X² ≤ 0.25) from a CDF2025 Q19 · median from a CDF2026 Q54 · properties of a discrete CDF2026 Q28 · comparing normal and t CDFs
    Heat: every year, 1–3 marks

    A random variable is a rule that assigns a number to each outcome. Toss three coins and let $X$ = number of heads; the outcome HTH gives $X = 2$. We use capital letters for random variables and lower-case for particular values: "$P(X = 2)$“ means ”the probability that the number of heads is 2".

    • Discrete random variables take separate values you can list: 0, 1, 2, 3 heads; number of wickets.
    • Continuous random variables take any value in an interval: a bowler’s speed, the time until a battery dies.

    Why turn outcomes into numbers? Outcomes like HTH can’t be averaged or added. Numbers can. Once “the number of heads” is a number, we can ask what it is on average, how much it varies, and how it relates to other numbers, which is what the rest of this module (and all of statistics) does. A random variable is that bridge from outcomes to numbers.

    For three coins, the eight equally likely outcomes give $X = 0$ once (TTT), $X = 1$ three times (HTT, THT, TTH), $X = 2$ three times and $X = 3$ once. Dividing by 8 gives the table in the box below. Drawn as a bar chart, it’s the “shape” of $X$.

    The probability mass function is $p(x) = P(X = x)$. Every $p(x) \ge 0$ and $\sum_x p(x) = 1$. For three coins: $p(0) = \tfrac18$, $p(1) = \tfrac38$, $p(2) = \tfrac38$, $p(3) = \tfrac18$.

    Continuous variables need a different idea. A bowler’s speed could be 140.1 or 140.13 or 140.1302 km/h; there are infinitely many possible values, so each single value has probability 0. Instead we use a curve, a density, and read probabilities as areas under it. If $X$ is equally likely to be anywhere between 0 and 2, its density is a flat line at height $\tfrac12$ (so the total area, $2 \times \tfrac12$, is 1), and $P(0.5 \le X \le 1)$ is the area of a rectangle $0.5$ wide and $\tfrac12$ tall: $0.25$.

    A probability density function $f(x) \ge 0$ gives probabilities as area: $$P(a \le X \le b) = \int_a^b f(x)\,dx,\qquad \int_{-\infty}^{\infty} f(x)\,dx = 1.$$ Two surprises: $P(X = a) = 0$ for any single value (a line has no area), and $f(x)$ can be bigger than 1 (it’s a density, not a probability).

    The cumulative distribution function is $F(x) = P(X \le x)$. It is non-decreasing, goes from 0 (far left) to 1 (far right), and is right-continuous (at a jump, $F$ takes the upper value). For a discrete variable it’s a staircase with a jump of $p(x)$ at each value; for a continuous one it’s smooth, and $f(x) = F'(x)$.

    Example. For the three coins, the CDF adds up the PMF from the left: $F(0) = \tfrac18$, $F(1) = \tfrac18 + \tfrac38 = \tfrac12$, $F(2) = \tfrac78$, $F(3) = 1$. So “at most one head” has probability $\tfrac12$, and $F(1.7) = \tfrac12$ too, because $X$ can’t be between 1 and 2.

    • $P(a \lt X \le b) = F(b) - F(a)$.
    • $P(X \gt a) = 1 - F(a)$.
    • Median: any $m$ with $P(X \le m) \ge \tfrac12$ and $P(X \ge m) \ge \tfrac12$. For continuous $X$ that is $F(m) = \tfrac12$; for a fair die every $m$ from 3 to 4 qualifies.
    • For continuous $X$, "$\lt$“ and ”$\le$" give the same probabilities.
    Try it

    Top: the PMF or PDF. Bottom: the CDF. Move $a$ and $b$. The shaded area on top always equals the vertical rise of the CDF between $a$ and $b$. For the die, notice the CDF is a staircase. Try the “2025 Q39” distribution before reading the worked example.

    GATE DA 2025 · Q39 · MCQ · 2 marks

    Consider the cumulative distribution function (CDF) of a random variable $X$:

    $$F_X(x) = \begin{cases} 0 & x \le -1 \\ \tfrac14(x+1)^2 & -1 \le x \le 1 \\ 1 & x \ge 1\end{cases}$$

    The value of $P(X^2 \le 0.25)$ is

    1. 0.625
    2. 0.25
    3. 0.5
    4. 0.5625
    1. Turn the event into an interval: $X^2 \le 0.25 \iff -0.5 \le X \le 0.5$.

      Square roots: $|X| \le 0.5$. Don’t forget the negative side.

    2. $P(-0.5 \le X \le 0.5) = F(0.5) - F(-0.5)$.

      This $F$ is continuous (no jumps), so including the endpoint $-0.5$ changes nothing.

    3. $F(0.5) = \tfrac14(1.5)^2 = 0.5625$ and $F(-0.5) = \tfrac14(0.5)^2 = 0.0625$. The difference is 0.5. Answer (C).

      (D) is $F(0.5)$ alone, the trap for anyone who forgets to subtract. (A) and (B) come from using only $X \le 0.5$ or other slips. Official key: (C).

    Warm-up. A random variable takes the values 0, 1, 2 with probabilities 0.2, 0.5 and $c$. What is $c$?

    The probabilities of all values must add to 1.

    $c = 1 - 0.2 - 0.5 = 0.3$.

    Warm-up. $X$ is equally likely to be anywhere in $[0, 4]$. What height must its flat density have?

    The total area under a density is 1, and the region is a rectangle 4 wide.

    $4 \times h = 1$, so $h = \tfrac14 = 0.25$.

    $X$ takes values 1, 2, 3, 4 with $P(X = x) = c\,x$. Find $c$ and $P(X \ge 3)$.

    The PMF must sum to 1: $c(1+2+3+4) = 1$.

    $10c = 1 \Rightarrow c = 0.1$. $P(X \ge 3) = 0.3 + 0.4 = 0.7$.

    $f(x) = kx^2$ for $0 \le x \le 3$ (and 0 elsewhere) is a PDF. Find $k$.

    Total area must be 1: $\int_0^3 kx^2\,dx = 1$.

    $k\cdot\frac{27}{3} = 9k = 1$, so $k = \tfrac19$.

    GATE DA 2026 · Q54 · MSQ · 2 marks

    Let $X$ be a discrete valued random variable with cumulative distribution function $F(x)$. Which of the following statements is/are correct?

    1. $F(x)$ is always a positive function.
    2. $F(x)$ is a non-decreasing function.
    3. $F(x)$ has jump discontinuity.
    4. $F(x)$ is a left continuous function.

    Picture a staircase CDF, like the die in the widget. What is $F$ far to the left? At a jump, which side does the value belong to?

    (A) false: $F(x) = 0$ to the left of the smallest value, and 0 isn’t positive. (B) true for every CDF. (C) true: a discrete CDF jumps at each value it can take. (D) false: CDFs are right-continuous, because $F(a) = P(X \le a)$ already includes the jump at $a$. Official key: B, C.

    An exponential random variable with rate $\lambda = 0.5$ has CDF $F(x) = 1 - e^{-0.5x}$ for $x \ge 0$. Find its median.

    Solve $1 - e^{-0.5m} = \tfrac12$.

    $e^{-0.5m} = \tfrac12 \Rightarrow m = 2\ln 2 \approx 1.386$. In general the median is $\ln2/\lambda$, the half-life from the refresher.

    A random variable $X$ has CDF

    $$F(x) = \begin{cases} 0 & x \lt 0 \\ \tfrac14 + \tfrac{x}{4} & 0 \le x \lt 1 \\ \tfrac34 & 1 \le x \lt 2 \\ 1 & x \ge 2.\end{cases}$$

    Find $P(\tfrac12 \le X \le 1)$ and $P(X \gt 1 \mid X \ge \tfrac12)$.

    Find where $F$ jumps: a jump at $a$ is a point mass $P(X = a)$. Then $P(a \le X \le b) = F(b) - F(a^-)$, where $F(a^-)$ is the value just to the left of $a$.

    $F$ jumps by $\tfrac14$ at 0, by $\tfrac34 - \tfrac12 = \tfrac14$ at 1 (just left of 1, $F$ is $\tfrac14 + \tfrac14 = \tfrac12$), and by $\tfrac14$ at 2. Between 0 and 1 it rises smoothly with slope $\tfrac14$.

    $F$ is continuous at $\tfrac12$, so $P(\tfrac12 \le X \le 1) = F(1) - F(\tfrac12) = \tfrac34 - \tfrac38 = \tfrac38 = 0.375$. This includes the point mass $\tfrac14$ at 1.

    $P(X \ge \tfrac12) = 1 - F(\tfrac12) = \tfrac58$ and $P(X \gt 1) = 1 - F(1) = \tfrac14$ (only the mass at 2). Since $X \gt 1$ already implies $X \ge \tfrac12$:

    $$P(X \gt 1\mid X \ge \tfrac12) = \frac{1/4}{5/8} = \frac25 = 0.4.$$

    Answers: 0.375 and 0.4.

    Which of the following statements is/are correct?

    1. $f(x) = 2xe^{-x^2}$ for $x \ge 0$ (and 0 otherwise) is a valid PDF, and for it $P(X \gt 1) = e^{-1}$.
    2. If $F$ is a CDF, then $G(x) = \big(F(x)\big)^2$ is also a CDF.
    3. If $X$ has PDF $f(x) = \tfrac38x^2$ on $[0, 2]$, then the median of $X$ is 1.
    4. If $X$ is uniform on $[0, 1]$ (density 1 there), then $P(X^2 \le \tfrac14) = \tfrac14$.

    For (A), find the CDF with the substitution $u = x^2$. For (B), run through the three properties every CDF has. For (C), solve $F(m) = \tfrac12$. For (D), turn the event into an interval for $X$.

    (A) True. $f \ge 0$, and with $u = x^2$, $\int_0^x 2te^{-t^2}\,dt = 1 - e^{-x^2}$, which tends to 1. So $P(X \gt 1) = 1 - F(1) = e^{-1}$.

    (B) True. Squaring a number in $[0, 1]$ preserves order, so $G$ is non-decreasing; it is right-continuous because $F$ is; and $G \to 0$ on the left and $G \to 1$ on the right. ($G$ is the CDF of the larger of two independent draws from $F$.)

    (C) False. $F(x) = x^3/8$ on $[0, 2]$, and $F(m) = \tfrac12$ gives $m = 4^{1/3} \approx 1.59$. The midpoint of the support is the median only for a symmetric density.

    (D) False. Since $X \ge 0$, $X^2 \le \tfrac14$ means $X \le \tfrac12$, which has probability $\tfrac12$.

    Correct: A, B.

    A discrete random variable $X$ has CDF $F(x) = 0$ for $x \lt 1$; $0.2$ for $1 \le x \lt 2$; $0.5$ for $2 \le x \lt 4$; $0.9$ for $4 \le x \lt 5$; and $1$ for $x \ge 5$. The value of $P(2 \le X \lt 5 \mid X \gt 1)$ is

    1. 0.7
    2. 0.875
    3. 0.625
    4. 0.5

    Read the PMF off the jumps first. Then list which values of $X$ satisfy each condition.

    Jumps give the PMF: $P(X{=}1) = 0.2$, $P(X{=}2) = 0.3$, $P(X{=}4) = 0.4$, $P(X{=}5) = 0.1$.

    "$2 \le X \lt 5$" is $\{2, 4\}$, probability 0.7. "$X \gt 1$" is $\{2, 4, 5\}$, probability 0.8. Their intersection is $\{2, 4\}$, so

    $$P(2 \le X \lt 5\mid X \gt 1) = \frac{0.7}{0.8} = 0.875.$$ Answer (B).

    (A) forgets to divide by $P(X \gt 1)$. (C) uses $\frac{F(5) - F(2)}{0.8}$, which drops $X = 2$ and wrongly includes $X = 5$. (D) loses the jump at 2: $\frac{0.4}{0.8}$.

    • Convert every event into “X in some interval” before using the CDF.
    • For discrete variables, watch whether endpoints are included: $P(X \lt a)$ and $P(X \le a)$ differ by $p(a)$.
    • Check a PDF or PMF by confirming the total is 1.
    • Treating $f(x)$ as a probability, e.g. thinking $f(x) \le 1$ must hold.
    • Forgetting the negative root when the event involves $X^2$ or $|X|$.
    • Reading $F(b)$ as $P(X = b)$.
    1. A random variable is a number determined by chance; discrete ones have a PMF and continuous ones a PDF.
    2. For a PDF, probability is area, so P(X = a) = 0 and f can exceed 1.
    3. The CDF F(x) = P(X ≤ x) is non-decreasing and right-continuous, runs from 0 to 1, and P(a < X ≤ b) = F(b) − F(a).

    For a continuous random variable, $P(X = 2)$ is

    $f(2)$
    $f(2)$ is a density height, not a probability.
    0
    A single point has zero width, so zero area.
    $F(2)$
    That’s $P(X \le 2)$.
    It depends on the distribution
    For any continuous distribution it is 0.

    Which could be a CDF?

    A function that rises to 1.2 and stays there
    A CDF is a probability, so it never exceeds 1.
    A staircase rising from 0 to 1
    That’s the CDF of a discrete random variable.
    A function that rises then falls
    $P(X \le x)$ can’t decrease as $x$ grows.
    A bell-shaped curve
    That describes a PDF, not a CDF.

    $F(3) = 0.7$ and $F(1) = 0.2$ for a continuous $X$. $P(1 \lt X \lt 3)$ is

    0.9
    Subtract, don’t add.
    0.5
    $F(3) - F(1)$; strict inequalities don’t matter for continuous $X$.
    0.7
    That’s $P(X \le 3)$.
    0.3
    That’s $P(X \gt 3)$.

    Expectation, variance and covariance: the summary numbers

    The expectation is the long-run average of a random variable; the variance measures how far it typically strays from that average; the covariance measures whether two random variables move together.

    Means, variances, covariance and correlation appear in at least two questions every year, and they’re the language of regression, PCA and every estimator in statistics.

    It’s like a batter’s season. The average tells you the typical score; the variance tells you whether they’re consistent or swing between ducks and centuries; the covariance with another batter tells you whether they tend to fire on the same days.

    Where it shows up in GATE DA

    Every year, often as a numerical answer. Covariance and correlation are favourites.

    2024 Q65 · covariance of two coin events2024 Q34 · updating a sample average2025 Q20 · find a, b from moments2026 Q63 · correlation of X and ≈X²2026 Q62 · variance from pairwise differences2026 Q44 · variance of a product
    Heat: every year, 3–6 marks

    Why an average of a random thing? A stall at the ground offers a game: pay to play, and you win ₹10 with probability $\tfrac14$, otherwise nothing. What’s a fair price? Over 100 plays you’d expect about 25 wins, ₹250 in total, so ₹2.50 a play. That “average per play in the long run” is the expectation: $10 \cdot \tfrac14 + 0 \cdot \tfrac34 = 2.5$. For a fair die it’s $\tfrac16(1 + 2 + \cdots + 6) = 3.5$, a value the die can never actually show: it’s an average, not a prediction of one throw.

    $$E[X] = \sum_x x\,p(x)\quad\text{or}\quad E[X] = \int x\,f(x)\,dx.$$ Each value is weighted by its probability. Picture the PMF as weights on a seesaw: $E[X]$ is the balance point. We often write $\mu = E[X]$. More generally, $E[g(X)] = \sum g(x)\,p(x)$.

    $E[aX + b] = aE[X] + b$, and $E[X + Y] = E[X] + E[Y]$ always, whether or not $X$ and $Y$ are independent. But in general $E[XY] \ne E[X]E[Y]$ and $E[X^2] \ne (E[X])^2$.

    Same average, different risk. Variable $A$ is always exactly 1. Variable $B$ is 0 or 2 with equal chance. Both average 1, but $B$ is much less predictable. Variance measures this: the average squared distance from the mean. For $A$ it is 0; for $B$ each value is 1 away from the mean, so the variance is $\tfrac12 \cdot 1^2 + \tfrac12 \cdot 1^2 = 1$. Its square root, the standard deviation, is back in the original units.

    $$\mathrm{Var}(X) = E\big[(X - \mu)^2\big] = E[X^2] - \mu^2,\qquad \sigma = \sqrt{\mathrm{Var}(X)}.$$ The second form is usually quicker. Rules: $\mathrm{Var}(aX + b) = a^2\,\mathrm{Var}(X)$ (shifting doesn’t change spread; scaling by $a$ scales the spread by $a$, and the variance by $a^2$).

    Try it

    Drag the bars up and down to design your own distribution on the values 0 to 5 (the heights are rescaled so they always sum to 1). The triangle marks the mean, the balance point; the band shows mean ± one standard deviation. Pile weight at both ends to make the variance as large as you can, then pile it all on one value to make it zero.

    The covariance asks: when $X$ is above its mean, is $Y$ usually above its mean too? $$\mathrm{Cov}(X, Y) = E\big[(X - \mu_X)(Y - \mu_Y)\big] = E[XY] - E[X]E[Y],$$ $$\rho(X,Y) = \frac{\mathrm{Cov}(X,Y)}{\sigma_X\sigma_Y} \in [-1, 1].$$ Positive covariance: they tend to be high together. Negative: one high when the other is low. Correlation is covariance rescaled to lie between −1 and 1; $\rho = \pm1$ exactly when $Y$ is a linear function of $X$.

    $\mathrm{Var}(X + Y) = \mathrm{Var}(X) + \mathrm{Var}(Y) + 2\,\mathrm{Cov}(X, Y)$. If $X, Y$ are independent, then $\mathrm{Cov} = 0$ and variances simply add.

    Go deeper: the variance of any weighted sum

    Covariance is bilinear: $\mathrm{Cov}(aX + bY, Z) = a\,\mathrm{Cov}(X, Z) + b\,\mathrm{Cov}(Y, Z)$, and $\mathrm{Var}(X) = \mathrm{Cov}(X, X)$. Expanding $\mathrm{Var}\big(\sum_i a_i X_i\big) = \mathrm{Cov}\big(\sum_i a_i X_i, \sum_j a_j X_j\big)$ term by term gives

    $$\mathrm{Var}\Big(\sum_i a_i X_i\Big) = \sum_i a_i^2\,\mathrm{Var}(X_i) + 2\sum_{i \lt j} a_i a_j\,\mathrm{Cov}(X_i, X_j).$$

    In matrix form this is $\a\T\Sigma\,\a$, with $\Sigma$ the covariance matrix: the same quadratic form that reappears in PCA. With independent variables every covariance term vanishes, leaving $\sum a_i^2 \mathrm{Var}(X_i)$; note the squares, so $\mathrm{Var}(X - Y) = \mathrm{Var}(X) + \mathrm{Var}(Y)$ for independent $X, Y$.

    Careful: independent ⇒ covariance 0, but covariance 0 does not imply independence. If $X$ is symmetric around 0 and $Y = X^2$, then $Y$ is completely determined by $X$, yet $\mathrm{Cov}(X, Y) = E[X^3] - E[X]E[X^2] = 0$. Correlation only detects linear relationships. GATE 2026 Q63 is exactly this.
    GATE DA 2024 · Q65 · NAT · 2 marks

    Two fair coins are tossed independently. $X$ is a random variable that takes a value of 1 if both tosses are heads and 0 otherwise. $Y$ is a random variable that takes a value of 1 if at least one of the tosses is heads and 0 otherwise. The value of the covariance of $X$ and $Y$ is ______ (rounded off to three decimal places).

    1. $E[X] = P(HH) = \tfrac14$ and $E[Y] = P(\text{at least one H}) = \tfrac34$.

      For a 0/1 (“indicator”) variable, the expectation is just the probability that it equals 1.

    2. $XY = 1$ only when both are 1. But $X = 1$ (two heads) already forces $Y = 1$, so $XY = X$ and $E[XY] = \tfrac14$.

      Look for logical relationships between the events; they save computation.

    3. $\mathrm{Cov}(X, Y) = \tfrac14 - \tfrac14\cdot\tfrac34 = \tfrac14 - \tfrac3{16} = \tfrac1{16} = $ 0.0625 (0.062 or 0.063 to three places).

      Positive, as expected: two heads makes “at least one head” certain. Official key: 0.062 to 0.063.

    Go deeper: the identity behind 2026 Q62

    For data $x_1, \ldots, x_n$ with mean $\bar x$: $\displaystyle\sum_{i=1}^n\sum_{j=1}^n (x_i - x_j)^2 = 2n\sum_{i=1}^n (x_i - \bar x)^2.$ Expand $(x_i - x_j)^2 = x_i^2 - 2x_ix_j + x_j^2$ and sum: $2n\sum x_i^2 - 2(\sum x_i)^2 = 2n\left(\sum x_i^2 - n\bar x^2\right)$, and the bracket is $\sum(x_i - \bar x)^2$. So the average squared distance between pairs is twice the variance.

    Warm-up. $X$ is 1, 2 or 3 with probabilities 0.2, 0.5 and 0.3. Find $E[X]$.

    Multiply each value by its probability and add.

    $1(0.2) + 2(0.5) + 3(0.3) = 0.2 + 1 + 0.9 = 2.1$.

    Warm-up. $\mathrm{Var}(X) = 2$. Find $\mathrm{Var}(3X + 5)$.

    Adding 5 doesn’t change the spread; multiplying by 3 multiplies the variance by $3^2$.

    $9 \times 2 = 18$.

    GATE DA 2024 · Q34 · NAT · 1 mark

    The sample average of 50 data points is 40. The updated sample average after including a new data point taking the value of 142 is ______.

    Recover the total of the 50 points, add the new one, divide by 51.

    Total $= 50\times40 = 2000$. New total $= 2142$. New average $= 2142/51 = 42$. Official key: 42.

    GATE DA 2025 · Q20 · MCQ · 1 mark

    Let $X = aZ + b$, where $Z$ is a standard normal random variable, and $a, b$ are two unknown constants. It is given that $E[X] = 1$, $E[(X - E[X])Z] = -2$, $E[(X - E[X])^2] = 4$, where $E[X]$ denotes the expectation of random variable $X$. The values of $a, b$ are:

    1. $a = -2,\ b = 1$
    2. $a = 2,\ b = -1$
    3. $a = -2,\ b = -1$
    4. $a = 1,\ b = 1$

    “Standard normal” means $E[Z] = 0$ and $\mathrm{Var}(Z) = E[Z^2] = 1$.

    Use linearity: $E[X] = aE[Z] + b$. Then $X - E[X] = aZ$, so the second condition is $E[aZ^2]$.

    $E[X] = b = 1$. $X - E[X] = aZ$, so $E[aZ\cdot Z] = aE[Z^2] = a = -2$. Check: $E[(aZ)^2] = a^2 = 4$ ✓. So $a = -2$, $b = 1$. Official key: (A).

    GATE DA 2026 · Q63 · NAT · 2 marks

    Let $X$ be a random variable that follows $\mathrm{Uniform}(-1, 1)$ distribution. The conditional distribution of the random variable $Y$ given $X = x$ is the $\mathrm{Uniform}(x^2 - 0.1,\ x^2 + 0.1)$ distribution. The value of $\mathrm{correlation}(X, Y)$ is ______. (Answer in integer)

    Given $X = x$, $Y$ is centred at $x^2$. So $Y$ is "$X^2$ plus symmetric noise". What is $E[X\cdot X^2]$ for $X$ symmetric around 0?

    $E[Y\mid X] = X^2$, so $E[XY] = E[X\cdot E[Y\mid X]] = E[X^3] = 0$ (odd powers of a symmetric variable average to 0), and $E[X] = 0$. Hence $\mathrm{Cov}(X,Y) = 0 - 0 = 0$ and the correlation is 0, even though $Y$ clearly depends on $X$. Official key: 0.

    GATE DA 2026 · Q62 · NAT · 2 marks

    For a given data set $\{x_1, x_2, \ldots, x_n\}$, where $n = 100$, it is known that $\displaystyle\frac{1}{2000}\sum_{i=1}^n\sum_{j=1}^n (x_i - x_j)^2 = 99$. Let us denote $\bar x = \frac1n\sum_{i=1}^n x_i$. The value of $\displaystyle\frac{1}{99}\sum_{i=1}^n (x_i - \bar x)^2$ is ______. (Answer in integer)

    Use $\sum_i\sum_j (x_i - x_j)^2 = 2n\sum_i (x_i - \bar x)^2$ (see “Go deeper” above).

    $\sum\sum (x_i - x_j)^2 = 99\times2000 = 198000$. So $\sum(x_i - \bar x)^2 = \frac{198000}{2\times100} = 990$, and $\frac{990}{99} = 10$. Official key: 10.

    $X$ is the score on a fair die and $Y = (X - 3)^2$. Find $\mathrm{Cov}(X, Y)$. (Round off to two decimal places.)

    Use $\mathrm{Cov}(X, Y) = E[XY] - E[X]E[Y]$. Tabulate $y = (x-3)^2$ and $xy$ for $x = 1, \ldots, 6$, each with probability $\tfrac16$.

    For $x = 1, \ldots, 6$: $y = 4, 1, 0, 1, 4, 9$ and $xy = 4, 2, 0, 4, 20, 54$.

    $E[X] = 3.5$, $E[Y] = \tfrac{19}{6}$, $E[XY] = \tfrac{84}{6} = 14$.

    $\mathrm{Cov}(X, Y) = 14 - 3.5\times\tfrac{19}{6} = 14 - \tfrac{133}{12} = \tfrac{35}{12} \approx$ 2.92.

    Compare the callout above: $X$ and $X^2$ are uncorrelated when $X$ is symmetric about the point you square around. Here the die is symmetric about 3.5, not 3, so the covariance is not zero.

    Random variables $X$ and $Y$ have $\mathrm{Var}(X) = 4$, $\mathrm{Var}(Y) = 9$ and $\mathrm{Cov}(X, Y) = -3$. Which of the following is/are correct?

    1. $\mathrm{Var}(X + Y) = 7$
    2. $\mathrm{Var}(2X - Y) = 25$
    3. The correlation $\rho(X, Y) = -0.5$
    4. $X + Y$ and $X - Y$ are uncorrelated.

    Expand each variance with the covariance term: $\mathrm{Var}(aX + bY) = a^2\mathrm{Var}(X) + b^2\mathrm{Var}(Y) + 2ab\,\mathrm{Cov}(X, Y)$. Covariance is linear in each slot.

    (A) True: $4 + 9 + 2(-3) = 7$.

    (B) False: $\mathrm{Var}(2X - Y) = 4(4) + 9 + 2(2)(-1)(-3) = 16 + 9 + 12 = 37$. The 25 drops the covariance term.

    (C) True: $\rho = \dfrac{-3}{\sqrt4\,\sqrt9} = \dfrac{-3}{6} = -0.5$.

    (D) False: $\mathrm{Cov}(X + Y, X - Y) = \mathrm{Var}(X) - \mathrm{Cov}(X, Y) + \mathrm{Cov}(Y, X) - \mathrm{Var}(Y) = 4 - 9 = -5$. Sum and difference are uncorrelated only when the two variances are equal.

    Correct: A, C.

    Each week for 10 weeks, a randomly chosen fan names one of the 5 DPL teams, each team equally likely and the weeks independent. Let $D$ be the number of different teams named at least once. Find $E[D]$. (Round off to two decimal places.)

    Write $D$ as a sum of 5 indicators, one per team: $I_j = 1$ if team $j$ is named at least once. Each $E[I_j]$ is a probability; use the complement.

    $D = I_1 + \cdots + I_5$, where $I_j = 1$ if team $j$ is named in at least one week.

    $E[I_j] = P(\text{team } j \text{ named at least once}) = 1 - P(\text{never named}) = 1 - (0.8)^{10} \approx 1 - 0.1074 = 0.8926$.

    The indicators are not independent, but linearity doesn’t care: $E[D] = 5\times0.8926 \approx$ 4.46.

    • Use $E[X^2] - \mu^2$ for variance; it’s almost always faster.
    • For 0/1 variables, $E[X] = P(X = 1)$ and $X^2 = X$.
    • Look for logical links (like $XY = X$) before computing $E[XY]$ the long way.
    • $\mathrm{Var}(aX) = a\,\mathrm{Var}(X)$. It’s $a^2$.
    • $\mathrm{Var}(X - Y) = \mathrm{Var}X - \mathrm{Var}Y$. For independent $X, Y$ it’s $\mathrm{Var}X + \mathrm{Var}Y$.
    • Concluding independence from zero correlation.
    1. E[X] is the probability-weighted average (the balance point). Expectation is linear, always.
    2. Var(X) = E[X²] − (E[X])² and Var(aX + b) = a²Var(X); for independent X, Y, variances add.
    3. Cov(X, Y) = E[XY] − E[X]E[Y]; correlation rescales it to [−1, 1]. Independence gives zero covariance, but not the other way round.

    A fair die is thrown. $E[X]$ is

    3
    Add all six faces and divide by 6.
    3.5
    $(1+2+\cdots+6)/6 = 21/6$.
    6
    That’s the largest value, not the average.
    It can’t be 3.5, since the die never shows 3.5
    An expectation is an average and needn’t be a possible value.

    $\mathrm{Var}(X) = 4$. Then $\mathrm{Var}(3 - 2X)$ is

    −8
    A variance is never negative; the factor gets squared.
    8
    Square the coefficient: $(-2)^2$.
    16
    $(-2)^2\times4$; the shift by 3 doesn’t matter.
    19
    Adding a constant doesn’t change the variance.

    GATE 2026 Q44: $X \sim \text{Bernoulli}(0.3)$ and $Y \sim N(0, 100)$ are independent. $\mathrm{Var}((2X-1)Y)$ is

    90
    Notice $2X - 1$ is always $+1$ or $-1$, so its square is 1.
    21
    That’s $\mathrm{Var}(2X-1)\cdot$ something. Use $\mathrm{Var}(W) = E[W^2] - (E[W])^2$ with $W = (2X-1)Y$.
    100
    $E[W] = E[2X-1]E[Y] = 0$ and $W^2 = Y^2$, so $\mathrm{Var}(W) = E[Y^2] = 100$. Official key: (A) 100 (the options are reordered here).
    49
    Try squaring $W$ directly: $(2X-1)^2 = 1$.

    If $\rho(X, Y) = -1$, then

    $X$ and $Y$ are independent
    Independence would give $\rho = 0$.
    $Y = aX + b$ for some $a \lt 0$
    Perfect negative correlation means an exact decreasing straight-line relationship.
    $Y = -X$ exactly
    That’s one example, but any $Y = aX + b$ with $a \lt 0$ works.
    $\mathrm{Cov}(X,Y) = -1$
    Covariance depends on the scales of $X$ and $Y$; only the correlation is $-1$.

    $X$ is uniform on $[0, 4]$. $F(1)$ equals

    1
    Only a quarter of the interval lies at or below 1.
    ¼
    The area from 0 to 1 under a flat density of height ¼.
    0
    There’s positive probability of landing in $[0, 1]$.
    ½
    The median is 2, not 1.

    $X$ = number of heads in 3 fair tosses. $E[X]$ and $\mathrm{Var}(X)$ are

    1.5 and 1.5
    The mean is right. Use $E[X^2] - \mu^2$: $E[X^2] = 3$.
    1.5 and 0.75
    $E[X^2] = 0\cdot\tfrac18 + 1\cdot\tfrac38 + 4\cdot\tfrac38 + 9\cdot\tfrac18 = 3$, so $\mathrm{Var} = 3 - 2.25 = 0.75$.
    1 and 1
    The PMF is $\tfrac18, \tfrac38, \tfrac38, \tfrac18$; recompute.
    2 and 0.5
    By symmetry the mean is the middle value, 1.5.

    A test result $T$ is 1 if positive and 0 otherwise. If $P(T = 1) = 0.31$, then $E[T]$ is

    0.5
    For a 0/1 variable, the mean is the probability of 1.
    0.31
    $0\times0.69 + 1\times0.31$.
    0.69
    That’s $P(T = 0)$.
    1
    That’s the largest value $T$ takes.

    A handful of distributions come up again and again: Bernoulli, binomial, Poisson and geometric for counts; uniform, exponential and normal for measurements. For each you need its shape, its mean and variance, and the one or two properties GATE keeps testing (the exponential’s memorylessness, the Poisson’s mean = variance, standardising a normal). This part also previews the χ² and t distributions, which the Statistics module builds on.

    You need: Part 3 (PMF, PDF, CDF, expectation, variance).

    Counting successes: Bernoulli, binomial, geometric and Poisson

    Repeat a yes/no trial and count the successes: that’s a binomial. Count until the first success: geometric. Count rare events in a fixed window: Poisson.

    These carry 1–3 marks every year, and the binomial’s $np$ and $np(1-p)$ also turn up inside CLT questions.

    It’s like a bowler’s over: each ball is a yes/no “wicket or not” trial. Wickets in an over is binomial; balls until the first wicket is geometric; wickets in a whole season of rare events behaves like Poisson.

    Where it shows up in GATE DA

    Direct questions on means and variances, and counting-with-probability problems.

    2024 Q11 · Poisson mean = variance2025 Q61 · expected black balls2026 Q64 · row and column sums of random bits2024 Q36 · expected throws2025 Q54 · mean and variance of a sample proportion2024 GA Q7
    Heat: every year, 1–4 marks

    Why name distributions? Many different situations are the same story with different numbers: “how many heads in 10 tosses”, “how many of 10 deliveries are dot balls”, “how many of 10 patients recover” are all "count the successes in $n$ independent yes/no trials". Learn the story once, with its formula, mean and variance, and every new situation of that shape is already solved.

    A quick check that the formula matches what you already know: for three fair coins ($n = 3$, $p = \tfrac12$), the binomial formula gives $P(X = 2) = \binom32 (\tfrac12)^2(\tfrac12)^1 = 3 \cdot \tfrac18 = \tfrac38$, the same as counting outcomes in Chapter 3.1. For a Poisson count with $\lambda = 2$ (say, two dropped catches per match on average), the chance of a clean match is $P(X = 0) = e^{-2} \approx 0.135$.

    DistributionStoryPMFMeanVariance
    Bernoulli($p$)one trial: 1 = success$P(1) = p,\ P(0) = 1-p$$p$$p(1-p)$
    Binomial($n, p$)successes in $n$ independent trials$\binom nk p^k(1-p)^{n-k}$$np$$np(1-p)$
    Geometric($p$)trials until the first success$(1-p)^{k-1}p$, $k \ge 1$$1/p$$(1-p)/p^2$
    Poisson($\lambda$)rare events in a window$e^{-\lambda}\dfrac{\lambda^k}{k!}$, $k \ge 0$$\lambda$$\lambda$
    Discrete uniformeach of $n$ values equally likely$1/n$middle value$(n^2-1)/12$ for $1..n$

    Where the binomial formula comes from. A particular sequence with $k$ successes and $n-k$ failures, like SSFSF…, has probability $p^k(1-p)^{n-k}$ (independent trials multiply). There are $\binom nk$ such sequences (choose where the successes go). Multiply.

    Why the mean is $np$. Write $X = X_1 + \cdots + X_n$ as a sum of Bernoulli trials. By linearity $E[X] = np$, and because the trials are independent, the variances add: $np(1-p)$. No messy sums needed.

    Poisson as a limit. Binomial with many trials and a small success chance, $n$ large and $p = \lambda/n$, approaches Poisson($\lambda$). So the Poisson describes things like “dropped catches per match”: many chances, each unlikely.

    Try it

    Set $n$ and $p$ for a binomial. The readout gives the mean $np$ and variance $np(1-p)$; check them against the shape. Switch on the Poisson overlay (with $\lambda = np$) and make $n$ large and $p$ small: the two almost coincide. Move $k$ to read off individual probabilities.

    GATE DA 2026 · Q64 · NAT · 2 marks

    Let $A_{5\times5}$ be a matrix such that each of its elements follows Bernoulli($p = 0.50$) distribution independently. The probability that the row-sum of the second row and the column-sum of the third column are both equal to 3 is ______. (Rounded off to two decimal places)

    1. Row 2 and column 3 share exactly one entry, $a_{23}$. Every other entry in the row or column is separate. So condition on $a_{23}$.

      The two sums aren’t independent because they share a cell. Conditioning on the shared cell makes everything else independent.

    2. If $a_{23} = 1$: the other 4 entries of row 2 need exactly 2 ones, and so do the other 4 of column 3. Probability $\binom42(\tfrac12)^4\cdot\binom42(\tfrac12)^4 = \tfrac{6}{16}\cdot\tfrac{6}{16} = \tfrac{36}{256}$.

      Each “other 4 entries” sum is Binomial(4, ½).

    3. If $a_{23} = 0$: each needs exactly 3 ones among its other 4: $\tfrac{4}{16}\cdot\tfrac{4}{16} = \tfrac{16}{256}$.

      $\binom43 = 4$.

    4. Total: $\tfrac12\cdot\tfrac{36}{256} + \tfrac12\cdot\tfrac{16}{256} = \tfrac{52}{512} \approx $ 0.10.

      Law of total probability over $a_{23}$, which is 0 or 1 with probability ½ each. Official answer range: 0.08 to 0.12.

    Go deeper: the mean of the geometric distribution

    $E[X] = \sum_{k\ge1} k(1-p)^{k-1}p = p\cdot\frac{1}{(1-(1-p))^2} = \frac1p$, using $\sum k r^{k-1} = \frac{1}{(1-r)^2}$ from the sums refresher. Intuition: if a wicket falls on 1 ball in 20, you wait 20 balls on average.

    Drawing without replacement: the hypergeometric distribution

    The binomial needs independent trials with a fixed success chance. When you pick a group from a finite squad without putting anyone back, each pick changes what is left, so the trials are no longer independent. The right model is the hypergeometric.

    A population of $N$ items contains $K$ “successes”. Draw $n$ items without replacement, every group of $n$ equally likely, and let $X$ be the number of successes drawn. Then $$P(X = k) = \frac{\binom Kk\binom{N-K}{n-k}}{\binom Nn},$$ $$E[X] = \frac{nK}{N},$$ $$\mathrm{Var}(X) = n\,\frac KN\left(1 - \frac KN\right)\frac{N-n}{N-1}.$$

    Against the binomial. Drawing with replacement gives a binomial with $n$ trials and $p = K/N$. The means agree: each single draw is a success with probability $K/N$ either way, and linearity adds these up whether or not the draws are independent. The variance is smaller without replacement, by the factor $\frac{N-n}{N-1}$, because an early success leaves fewer successes for later draws. When $N$ is much larger than $n$ that factor is close to 1, and the binomial is a good approximation.

    The Bengaluru Backprops’ squad of 15 includes 6 all-rounders. Five players are picked at random for a media day. Find the probability that exactly 2 of them are all-rounders, the mean and variance of the number of all-rounders picked, and compare with drawing with replacement.

    1. No player is picked twice, so this is hypergeometric with $N = 15$, $K = 6$, $n = 5$.

      The story decides the model: without replacement means hypergeometric, not binomial.

    2. $P(X = 2) = \dfrac{\binom62\binom93}{\binom{15}{5}} = \dfrac{15\times84}{3003} = \dfrac{1260}{3003} = \dfrac{60}{143} \approx 0.420$.

      Choose which 2 of the 6 all-rounders, and which 3 of the 9 others; divide by all groups of 5.

    3. Mean $= \dfrac{5\times6}{15} = 2$. Variance $= 5\times0.4\times0.6\times\dfrac{10}{14} = \dfrac67 \approx 0.857$.

      The binomial variance $5\times0.4\times0.6 = 1.2$ times the correction $\frac{15-5}{15-1} = \frac{10}{14}$.

    4. With replacement, $X$ would be Binomial(5, 0.4): $P(X = 2) = \binom52(0.4)^2(0.6)^3 = 0.3456$, mean 2, variance 1.2.

      Same mean, but a noticeably different probability, because 5 is a third of the squad. The binomial approximation is only safe when $n$ is a small fraction of $N$.

    Warm-up. A fair coin is tossed 4 times. What is the probability of exactly 2 heads?

    Binomial with $n = 4$, $p = \tfrac12$: $\binom42 (\tfrac12)^4$.

    $\binom42 = 6$, so $6/16 = 0.375$.

    Warm-up. On average, how many throws of a fair die does it take to get the first six?

    Geometric: the mean is $1/p$.

    $p = \tfrac16$, so $1/p = 6$ throws on average.

    GATE DA 2024 · GA Q7 · MCQ · 2 marks

    The probability of a boy or a girl being born is 1/2. For a family having only three children, what is the probability of having two girls and one boy?

    Binomial with $n = 3$, $p = \tfrac12$, $k = 2$.

    $\binom32(\tfrac12)^3 = \tfrac38$. (GGB, GBG, BGG.) Official key: (A) 3/8.

    GATE DA 2025 · Q61 · NAT · 2 marks

    A bag contains 5 white balls and 10 black balls. In a random experiment, $n$ balls are drawn from the bag one at a time with replacement. Let $S_n$ denote the total number of black balls drawn in the experiment. The expectation of $S_{100}$ denoted by $E[S_{100}] =$ ______ (Round off to one decimal place)

    With replacement, each draw is an independent Bernoulli with $p = 10/15$.

    $S_{100} \sim$ Binomial$(100, \tfrac23)$, so $E = 100\cdot\tfrac23 \approx 66.7$. Official range: 66.6 to 66.7.

    Dropped catches per match follow Poisson($\lambda = 2$). What is the probability of a match with no dropped catches? (Decimal.)

    $P(0) = e^{-\lambda}\lambda^0/0!$.

    $e^{-2} \approx 0.135$.

    GATE DA 2024 · Q36 · MCQ · 2 marks

    A fair six-sided die (with faces numbered 1, 2, 3, 4, 5, 6) is repeatedly thrown independently. What is the expected number of times the die is thrown until two consecutive throws of even numbers are seen?

    Let $E$ = expected throws from scratch, and $E_1$ = expected further throws when the last throw was even. Write one equation for each by looking at the next throw.

    Each throw is even with probability ½. From scratch: $E = 1 + \tfrac12E_1 + \tfrac12E$. After one even: $E_1 = 1 + \tfrac12\cdot0 + \tfrac12E$. Substituting: $\tfrac12E = 1 + \tfrac12(1 + \tfrac12E)$, so $\tfrac14E = 1.5$ and $E = 6$. Official key: (C) 6.

    A bag of 20 match balls contains 5 scuffed ones. The umpire inspects 4 balls chosen at random, without replacement. What is the probability that at least one scuffed ball is inspected? (Round off to two decimal places.)

    Complement: all 4 inspected balls come from the 15 good ones.

    $P(\text{no scuffed}) = \dfrac{\binom{15}{4}}{\binom{20}{4}} = \dfrac{1365}{4845} = \dfrac{91}{323}$.

    So $P(\text{at least one}) = 1 - \dfrac{91}{323} = \dfrac{232}{323} \approx 0.72$.

    The DPL auction pool has 50 players, 10 of them from overseas. A team signs 5 players chosen at random from the pool. Find the mean and variance of the number of overseas signings.

    Hypergeometric with $N = 50$, $K = 10$, $n = 5$. Use $nK/N$ and the binomial variance times $\frac{N-n}{N-1}$.

    Mean $= \dfrac{5\times10}{50} = 1$.

    Variance $= 5\times0.2\times0.8\times\dfrac{45}{49} = 0.8\times\dfrac{45}{49} = \dfrac{36}{49} \approx 0.735$, a little below the binomial’s 0.8.

    A batter faces 6 balls, and each is hit for six with probability 0.2, independently. Let $X$ be the number of sixes. Given that the batter hits at least 2 sixes, what is the expected number of sixes? (Round off to two decimal places.)

    $E[X\mid X \ge 2] = \dfrac{\sum_{k\ge2} k\,P(X = k)}{P(X \ge 2)}$. The top is $E[X]$ minus the $k = 0$ and $k = 1$ terms, and the $k = 0$ term is zero anyway.

    $X \sim$ Binomial(6, 0.2), so $E[X] = 1.2$, $P(X{=}0) = 0.8^6 = 0.262144$ and $P(X{=}1) = 6(0.2)(0.8)^5 = 0.393216$.

    $P(X \ge 2) = 1 - 0.262144 - 0.393216 = 0.34464$.

    $\sum_{k\ge2} k\,P(X{=}k) = E[X] - 0\cdot P(X{=}0) - 1\cdot P(X{=}1) = 1.2 - 0.393216 = 0.806784$.

    $E[X\mid X \ge 2] = \dfrac{0.806784}{0.34464} \approx$ 2.34.

    The number of sixes hit by the Kalinga Kernels in a match is Poisson(2), and by the Haryana Heuristics Poisson(3), independently. In one match the two teams hit 5 sixes in total. The probability that exactly 2 of them were hit by the Kernels is closest to

    1. 0.2707
    2. 0.0606
    3. 0.3456
    4. 0.1646

    You need $P(X = 2 \mid X + Y = 5) = \dfrac{P(X = 2)\,P(Y = 3)}{P(X + Y = 5)}$. A sum of independent Poissons is Poisson with the rates added.

    Let $X$, $Y$ be the Kernels’ and Heuristics’ sixes. "$X = 2$ and $X + Y = 5$“ is ”$X = 2$ and $Y = 3$", so by independence the top is $e^{-2}\frac{2^2}{2!}\cdot e^{-3}\frac{3^3}{3!}$.

    $X + Y \sim$ Poisson(5), so the bottom is $e^{-5}\frac{5^5}{5!}$.

    The exponentials cancel: $$\frac{5!}{2!\,3!}\cdot\frac{2^2\,3^3}{5^5} = \binom52\left(\tfrac25\right)^2\left(\tfrac35\right)^3 = 10\times0.16\times0.216 = 0.3456.$$ Answer (C). Given the total, the Kernels’ share is Binomial(5, 2/5).

    (A) is the unconditional $P(X = 2)$. (B) forgets to divide by $P(X + Y = 5)$. (D) uses success probability 2/3 instead of $2/(2+3)$.

    Each ball a bowler sends down takes a wicket with probability 0.25, independently. Let $X$ be the number of balls up to and including the first wicket. Which of the following is/are correct?

    1. $P(X \gt 4) \approx 0.316$
    2. $P(X \gt 6\mid X \gt 2) = P(X \gt 4)$
    3. $E[X\mid X \gt 2] = 4$
    4. $X - 1$, the number of balls before the wicket ball, has variance 11.

    $X$ is geometric with $p = 0.25$. "$X \gt k$" means the first $k$ balls all miss. For (C), what does the bowler’s future look like after two wicketless balls?

    (A) True: $P(X \gt 4) = 0.75^4 \approx 0.316$.

    (B) True: $\dfrac{P(X \gt 6)}{P(X \gt 2)} = \dfrac{0.75^6}{0.75^2} = 0.75^4$. The geometric is memoryless, like the exponential.

    (C) False: after two wicketless balls the wait starts afresh, with mean $1/p = 4$ more balls, so $E[X\mid X \gt 2] = 2 + 4 = 6$.

    (D) False: subtracting a constant doesn’t change variance, so $\mathrm{Var}(X - 1) = \mathrm{Var}(X) = \dfrac{1-p}{p^2} = \dfrac{0.75}{0.0625} = 12$.

    Correct: A, B.

    • Identify the story first (fixed trials? waiting time? rare events?) and the distribution follows.
    • Use linearity for means of counts: write the count as a sum of indicators.
    • Remember Poisson’s signature: mean = variance = λ.
    • Using the binomial when trials aren’t independent (drawing without replacement).
    • Forgetting the $\binom nk$ factor that counts the orders.
    • Mixing up geometric conventions: “trials until the first success” (mean $1/p$) vs “failures before it” (mean $(1-p)/p$).
    1. Binomial(n, p): successes in n independent trials, mean np, variance np(1 − p).
    2. Poisson(λ): rare events, mean = variance = λ; it is the limit of the binomial with np = λ.
    3. Geometric(p): trials until the first success, mean 1/p. For sequences like “two evens in a row”, set up expectation equations.

    GATE 2024 Q11: (i) the mean and variance of a Poisson random variable are equal; (ii) a standard normal has mean 0 and variance 1. Which is correct?

    Both (i) and (ii) are true
    Poisson: both are λ. Standard normal: $N(0, 1)$ by definition. Official key: (A).
    (i) true, (ii) false
    “Standard normal” means exactly mean 0, variance 1.
    (ii) true, (i) false
    Check the table: Poisson mean and variance are both λ.
    Both false
    Both are standard facts worth memorising.

    A batter’s chance of hitting a six off any ball is 0.1, independently. In a 30-ball innings, the expected number of sixes and its variance are

    3 and 3
    Mean = variance is Poisson’s property. This is binomial.
    3 and 2.7
    $np = 3$, $np(1-p) = 2.7$.
    0.1 and 0.09
    Those are for a single ball.
    30 and 27
    Multiply by $p$: the mean is $np$.

    GATE 2025 Q54 (part): with $\hat p = \frac1n\sum X_i$ for $n$ independent Bernoulli($p$) tosses, what happens to $\mathrm{Var}(\hat p)$ as $n$ grows?

    It stays $p(1-p)$
    Averaging reduces spread: $\mathrm{Var}(\frac1n S) = \frac1{n^2}\mathrm{Var}(S)$.
    It decreases, as $p(1-p)/n$
    $\frac{1}{n^2}\cdot np(1-p)$. Also $E[\hat p] = p$. Official key for that MSQ: A, C.
    It increases
    More data makes the estimate more stable, not less.
    It becomes $p/n$
    Recompute: $\mathrm{Var}(S) = np(1-p)$.

    Measuring things: uniform, exponential and normal

    Uniform means every value in a range is equally likely; exponential models waiting times and forgets the past; the normal is the bell curve that averages of almost anything end up following.

    The exponential distribution has been in every GATE DA paper. The normal sits behind z-scores, the Central Limit Theorem, and the χ² and t distributions used in tests.

    It’s like three kinds of waiting. A bus that arrives at a random moment in a 10-minute window: uniform. A wicket that’s equally likely in any over regardless of how long the batter’s been in: exponential. The combined score of a whole team: roughly normal.

    Where it shows up in GATE DA

    The most-tested distributions in the paper. Exponential every year; normal and its relatives most years.

    2024 Q57 · 5E(X) = Var(X)2026 Q34 · memorylessness2025 Q41 · floor of an exponential2024 Q27 · z-score2025 Q40 · CLT normal approximation2025 Q36 · Var(Z²)2026 Q53 · χ² facts2026 Q28 · normal vs t
    Heat: every year, 4–8 marks
    DistributionPDFMeanVarianceRemember
    Uniform($a, b$)$\dfrac{1}{b-a}$ on $[a, b]$$\dfrac{a+b}2$$\dfrac{(b-a)^2}{12}$probability = length fraction
    Exponential($\lambda$)$\lambda e^{-\lambda x}$, $x \ge 0$$\dfrac1\lambda$$\dfrac1{\lambda^2}$$P(X \gt x) = e^{-\lambda x}$; memoryless
    Normal($\mu, \sigma^2$)$\dfrac{1}{\sigma\sqrt{2\pi}}e^{-(x-\mu)^2/(2\sigma^2)}$$\mu$$\sigma^2$symmetric bell; standardise with $Z = \frac{X-\mu}{\sigma}$

    $$P(X \gt s + t \mid X \gt s) = P(X \gt t).$$ If a bowling machine with an exponential lifetime has already run for 5 hours, the chance it lasts 5 more is the same as a brand-new machine lasting 5. Proof: $\frac{e^{-\lambda(s+t)}}{e^{-\lambda s}} = e^{-\lambda t}$. It’s the only continuous distribution with this property.

    The normal distribution and z-scores

    The normal $N(\mu, \sigma^2)$ is the bell curve centred at $\mu$ with spread $\sigma$. About 68% of the probability lies within $\mu \pm \sigma$, about 95% (95.4%) within $\mu \pm 2\sigma$, and 99.7% within $\mu \pm 3\sigma$. Exactly 95% is $\mu \pm 1.96\sigma$. Any normal can be converted to the standard normal $Z \sim N(0, 1)$ by $Z = (X - \mu)/\sigma$, the z-score: how many standard deviations $X$ is from its mean. (Read "$\sim$“ as ”has the distribution".) For example, if a batter’s scores follow $N(30, 10^2)$, a score of 50 has $z = (50 - 30)/10 = 2$: two standard deviations above average, which happens only about 2.3% of the time. The standard normal’s CDF is written $\Phi(z)$ (capital phi), so $P(Z \le 2) = \Phi(2) \approx 0.977$; by symmetry $\Phi(-z) = 1 - \Phi(z)$.

    The Central Limit Theorem (covered properly in Statistics 2.2) says a sum of many independent random variables is approximately normal. So a Binomial($n, p$) count is roughly $N(np,\ np(1-p))$ for large $n$.

    Two relatives you’ll meet in statistics

    • Both depend on a whole number called the degrees of freedom that sets their shape; Statistics, Part 3 explains where it comes from.
    • Chi-squared $\chi^2_k$: the sum of squares of $k$ independent standard normals. Mean $k$, variance $2k$. $\chi^2_2$ happens to be exponential with mean 2.
    • Student’s t: looks like the standard normal but with heavier tails (extreme values are more likely). With more degrees of freedom it approaches $N(0,1)$; with 1 degree of freedom it’s the very heavy-tailed Cauchy.
    Try it

    Pick a distribution and adjust its parameters; shade any interval to read its probability. For the exponential, note that $P(X \gt 5)$ and $P(X \gt 10 \mid X \gt 5)$ in the readout are always equal: memorylessness. For “Normal vs t”, compare the tails: the t curve sits lower in the middle and higher far out.

    GATE DA 2024 · Q57 · NAT · 2 marks

    Let $X$ be a random variable exponentially distributed with parameter $\lambda \gt 0$. The probability density function of $X$ is given by: $f_X(x) = \lambda e^{-\lambda x}$ for $x \ge 0$, and 0 otherwise. If $5E(X) = \mathrm{Var}(X)$, where $E(X)$ and $\mathrm{Var}(X)$ indicate the expectation and variance of $X$, respectively, the value of $\lambda$ is ______ (rounded off to one decimal place).

    1. Recall $E(X) = \dfrac1\lambda$ and $\mathrm{Var}(X) = \dfrac1{\lambda^2}$.

      Memorise these two. Deriving them by integration takes minutes you don’t have.

    2. $5\cdot\dfrac1\lambda = \dfrac{1}{\lambda^2}$. Multiply both sides by $\lambda^2$: $5\lambda = 1$.

      $\lambda \gt 0$, so dividing or multiplying by it is safe.

    3. $\lambda = $ 0.2.

      Official key: 0.2.

    Functions of a random variable

    Often the quantity you care about is a function of a random variable: the cost of a breakdown that depends on the waiting time, the area of a circle with a random radius, a squared error. If $X$ has a known distribution and $Y = g(X)$ for some function $g$, what is the distribution of $Y$? GATE asks this both directly ("find the PDF of $Y$") and in disguise (2025 Q39 asked for $P(X^2 \le 0.25)$, which is the CDF of $Y = X^2$ at 0.25).

    CDF method (always works). (1) Write $F_Y(y) = P(g(X) \le y)$. (2) Rewrite the event $g(X) \le y$ as an event about $X$ (an interval, or several), and compute it with $F_X$. (3) Differentiate: $f_Y(y) = F_Y'(y)$.

    Shortcut when $g$ is monotone. If $g$ is strictly increasing or strictly decreasing where $X$ lives, with inverse $x = g^{-1}(y)$, then $$f_Y(y) = f_X\big(g^{-1}(y)\big)\,\left|\frac{d\,g^{-1}(y)}{dy}\right|$$ for $y$ in the range of $g$, and $f_Y(y) = 0$ elsewhere. The factor $\left|dg^{-1}/dy\right|$ corrects for stretching: where $g$ spreads a short interval of $x$-values over a long interval of $y$-values, the same probability is spread thinner.

    Linear case: $Y = aX + b$ with $a \ne 0$ has $f_Y(y) = \dfrac{1}{|a|}\,f_X\!\left(\dfrac{y - b}{a}\right)$.

    Careful: the shortcut needs a one-to-one $g$. For $g(x) = x^2$ on an interval containing both signs, each $y \gt 0$ comes from two values $\pm\sqrt y$; use the CDF method, which picks up both automatically.

    $X$ is uniform on $[-1, 1]$ (density $\tfrac12$ there). Find the PDF of $Y = X^2$, and check it by computing $E[Y]$ two ways.

    1. $Y$ lives on $[0, 1]$. For $0 \le y \le 1$: $F_Y(y) = P(X^2 \le y) = P(-\sqrt y \le X \le \sqrt y)$.

      Step (2) of the CDF method. Both roots matter: $X^2 \le y$ is the interval from $-\sqrt y$ to $\sqrt y$.

    2. That interval has length $2\sqrt y$ and the density is $\tfrac12$, so $F_Y(y) = \sqrt y$.

      For a uniform, probability is length times height.

    3. Differentiate: $f_Y(y) = \dfrac{1}{2\sqrt y}$ for $0 \lt y \le 1$, and 0 elsewhere.

      The density is unbounded near 0 (squaring crowds small values towards 0) but its area is still $F_Y(1) = 1$.

    4. Check: $E[Y] = \int_0^1 y\cdot\dfrac{1}{2\sqrt y}\,dy = \int_0^1 \tfrac12\sqrt y\,dy = \tfrac13$, and directly $E[X^2] = \int_{-1}^1 x^2\cdot\tfrac12\,dx = \tfrac13$. They agree.

      Applying the monotone shortcut to the root $+\sqrt y$ alone would give $\frac12\cdot\frac{1}{2\sqrt y} = \frac{1}{4\sqrt y}$, which has total area $\tfrac12$: half the probability is missing, the half from negative $X$.

    Warm-up. $X$ is uniform on $[0, 10]$. Find $P(X \le 3)$.

    For a uniform, probability = length of the stretch ÷ total length.

    $3/10 = 0.3$.

    Warm-up. Scores follow $N(60, 8^2)$. What is the z-score of a score of 48?

    $z = (x - \mu)/\sigma$.

    $(48 - 60)/8 = -1.5$: one and a half standard deviations below the mean.

    GATE DA 2026 · Q34 · NAT · 1 mark

    Let $X$ be an exponentially distributed random variable with mean $\lambda (\gt 0)$. If $P(X \gt 5) = 0.35$, then the conditional probability $P(X \gt 10 \mid X \gt 5)$ is ______. (Rounded off to two decimal places)

    Note: here $\lambda$ denotes the mean, not the rate. It doesn’t matter for this question.

    Memorylessness: having survived 5, surviving 5 more is like starting fresh.

    $P(X \gt 10\mid X \gt 5) = P(X \gt 5) = 0.35$. You never need $\lambda$. Official range: 0.34 to 0.36.

    GATE DA 2024 · Q27 · MCQ · 1 mark

    Let the minimum, maximum, mean and standard deviation values for the attribute income of data scientists be ₹46000, ₹170000, ₹96000, and ₹21000, respectively. The z-score normalized income value of ₹106000 is closest to which ONE of the following options?

    1. 0.217
    2. 0.476
    3. 0.623
    4. 2.304

    A z-score uses only the mean and the standard deviation. The min and max are distractors (they’d be used for min–max normalisation).

    $z = (106000 - 96000)/21000 = 0.476$. Official key: (B).

    GATE DA 2025 · Q40 · MCQ · 2 marks

    A random variable $X$ is said to be distributed as Bernoulli($\theta$), denoted by $X \sim$ Bernoulli($\theta$), if $P(X = 1) = \theta$, $P(X = 0) = 1 - \theta$ for $0 \lt \theta \lt 1$. Let $Y = \sum_{i=1}^{300} X_i$, where $X_i \sim$ Bernoulli($\theta$), $i = 1, 2, \ldots, 300$ be independent and identically distributed random variables with $\theta = 0.25$. The value of $P(60 \le Y \le 90)$, after approximation through Central Limit Theorem, is given by (recall $\phi(x) = \frac{1}{\sqrt{2\pi}}\int_{-\infty}^x e^{-t^2/2}dt$)

    1. $\phi(2) - \phi(-2)$
    2. $\phi(1) - \phi(-1)$
    3. $\phi(3) - \phi(-3)$
    4. $\phi(90) - \phi(60)$

    $Y$ is Binomial(300, 0.25). Find its mean and standard deviation, then convert 60 and 90 to z-scores.

    Mean $= 300\times0.25 = 75$; variance $= 300\times0.25\times0.75 = 56.25$, SD $= 7.5$. z-scores: $(60-75)/7.5 = -2$, $(90-75)/7.5 = 2$. So $\approx\phi(2) - \phi(-2)$. Official key: (A).

    GATE DA 2026 · Q53 · MSQ · 2 marks

    Let $X_1, X_2, \ldots, X_n$ be $n$ independent random variables. Each of the random variables follows Normal($\mu = 0, \sigma^2 = 1$) distribution. Define $\bar X = \frac1n\sum_{i=1}^n X_i$. Which of the following statements is/are correct?

    1. $\sum_{i=1}^n X_i^2$ follows Chi-square distribution with $n$ degrees of freedom.
    2. $\sum_{i=1}^n (X_i - \bar X)^2$ follows Chi-square distribution with $(n-1)$ degrees of freedom.
    3. $X_1^2 + X_n^2$ follows exponential distribution with mean 2.
    4. $(\sqrt n\,\bar X)^2$ follows Chi-square distribution with 2 degrees of freedom.

    χ²ₖ is a sum of $k$ squared independent standard normals. Using $\bar X$ in place of the true mean costs one degree of freedom. And $\sqrt n\bar X$ is itself standard normal.

    (A) true by definition. (B) true: estimating the mean uses up one degree of freedom (Statistics 2.1 explains why). (C) true: $\chi^2_2$ has density $\tfrac12e^{-x/2}$, an exponential with mean 2. (D) false: $\sqrt n\bar X \sim N(0,1)$, so its square is $\chi^2_1$, not $\chi^2_2$. Official key: A, B, C.

    A bowling machine’s warm-up time $X$ (minutes) is exponential with rate 1. The total set-up time is $Y = 2X + 1$ minutes. Find the density of $Y$ at $y = 3$. (Decimal.)

    $g(x) = 2x + 1$ is increasing. Find $g^{-1}(y)$ and its derivative, then use $f_Y(y) = f_X(g^{-1}(y))\,|dg^{-1}/dy|$.

    $g^{-1}(y) = \frac{y - 1}{2}$ and $\frac{d}{dy}g^{-1}(y) = \tfrac12$. So $f_Y(y) = \tfrac12 e^{-(y-1)/2}$ for $y \ge 1$.

    At $y = 3$: $\tfrac12 e^{-1} \approx 0.184$.

    $X$ is uniform on $[0, 1]$ and $Y = X^3$. Find $P(Y \le \tfrac18)$ and the density $f_Y(\tfrac18)$.

    $Y \le y$ exactly when $X \le y^{1/3}$. That gives $F_Y$; differentiate it for the density.

    $F_Y(y) = P(X \le y^{1/3}) = y^{1/3}$ for $0 \le y \le 1$, so $P(Y \le \tfrac18) = \tfrac12$.

    $f_Y(y) = \tfrac13 y^{-2/3}$, and at $y = \tfrac18$: $\tfrac13\times\left(\tfrac18\right)^{-2/3} = \tfrac13\times4 = \tfrac43$. (A density above 1 is fine.)

    Two bowling machines run independently. Machine A’s lifetime is exponential with rate 0.1 per hour (mean 10 hours) and machine B’s with rate 0.15 per hour. Find the expected time until both machines have failed. (Round off to two decimal places.)

    The time until both fail is $\max(X, Y)$, and $\max(X, Y) = X + Y - \min(X, Y)$. For the minimum, $P(\min \gt t) = P(X \gt t)\,P(Y \gt t)$.

    Let $X$, $Y$ be the lifetimes. $P(\min(X, Y) \gt t) = e^{-0.1t}e^{-0.15t} = e^{-0.25t}$, so the minimum is exponential with rate 0.25 and mean 4 hours.

    Since $\max + \min = X + Y$, linearity gives $E[\max] = E[X] + E[Y] - E[\min] = 10 + \tfrac{1}{0.15} - 4 = 10 + 6.667 - 4 = \tfrac{38}{3} \approx$ 12.67 hours.

    (A side fact from the same picture: machine A fails first with probability $\frac{0.1}{0.1 + 0.15} = 0.4$.)

    $X \sim N(10, 4)$ and $Y \sim N(6, 9)$ are independent (the second parameter is the variance). Recall that any linear combination of independent normals is normal. Which of the following is/are correct?

    1. $X - Y \sim N(4, 13)$
    2. $P(X \gt Y) = \Phi(4/5) \approx 0.79$
    3. $P(|X - 10| \le 3.92) \approx 0.95$
    4. $\mathrm{Var}(2X - Y) = 25$

    For a difference of independent variables, the means subtract but the variances add. Standardise $X - Y$ to find $P(X - Y \gt 0)$.

    (A) True: mean $10 - 6 = 4$, variance $4 + 9 = 13$ (variances add even for a difference, since $\mathrm{Var}(-Y) = \mathrm{Var}(Y)$).

    (B) False: $P(X - Y \gt 0) = P\big(Z \gt \tfrac{0 - 4}{\sqrt{13}}\big) = \Phi(4/\sqrt{13}) = \Phi(1.11) \approx 0.87$. Using 5 adds the standard deviations $2 + 3$; it is the variances that add.

    (C) True: $X$ has $\sigma = 2$, and $3.92 = 1.96\sigma$, the 95% band.

    (D) True: $2^2(4) + 9 = 25$.

    Correct: A, C, D.

    $X$ is exponential with rate 1, and $Y = e^{-X}$. Which describes the distribution of $Y$?

    1. $Y$ is exponential with rate 1: $f_Y(y) = e^{-y}$ for $y \gt 0$
    2. $Y$ is uniform on $(0, 1)$: $f_Y(y) = 1$ for $0 \lt y \lt 1$
    3. $f_Y(y) = 1/y$ for $0 \lt y \lt 1$
    4. $f_Y(y) = y$ for $0 \lt y \lt 1$

    $Y$ takes values in $(0, 1)$. Use the CDF method: for $0 \lt y \lt 1$, the event $e^{-X} \le y$ is the same as $X \ge -\ln y$.

    For $0 \lt y \lt 1$: $F_Y(y) = P(e^{-X} \le y) = P(X \ge -\ln y) = e^{-(-\ln y)} = y$.

    A CDF equal to $y$ on $(0, 1)$ is the uniform distribution, so $f_Y(y) = 1$ there. Answer (B).

    The change-of-variables formula agrees: $g^{-1}(y) = -\ln y$, $\left|\frac{d}{dy}(-\ln y)\right| = \frac1y$, and $f_X(-\ln y)\cdot\frac1y = y\cdot\frac1y = 1$.

    (D) forgets the $\left|dg^{-1}/dy\right|$ factor, (C) keeps only that factor (and has infinite area, so it is not even a density), and (A) assumes the family stays the same under the transformation.

    • Memorise the table: means and variances of uniform, exponential and normal save minutes.
    • Spot memorylessness: any “given it has already lasted…” exponential question.
    • Convert to z-scores before comparing normal probabilities.
    • Mixing up rate and mean for the exponential. Read whether $\lambda$ is the rate or the mean (2026 Q34 uses mean!).
    • Using min and max in a z-score (that’s min–max scaling).
    • Thinking the t distribution has lighter tails than the normal; it’s heavier.
    1. Uniform(a, b): mean (a+b)/2, variance (b−a)²/12. Exponential(λ): mean 1/λ, variance 1/λ², P(X > x) = e^(−λx), memoryless.
    2. Normal(μ, σ²): standardise with z = (x − μ)/σ; the 68–95–99.7 rule; sums of many independent variables are roughly normal (CLT).
    3. χ²ₖ is a sum of k squared standard normals (mean k); t looks normal but has heavier tails.

    GATE 2025 Q36: $Z = (X - \mu)/\sigma$ for normal $X$, and $Y = Z^2$. $\mathrm{Var}(Y)$ is

    1
    That’s $E[Y] = E[Z^2]$. Variance needs $E[Z^4]$ too.
    2
    $Y = Z^2 \sim \chi^2_1$, with variance $2k = 2$. (Directly: $E[Z^4] - (E[Z^2])^2 = 3 - 1$.) Official key: (B).
    3
    That’s $E[Z^4]$; subtract $(E[Z^2])^2 = 1$.
    4
    Recall χ²ₖ has variance $2k$.

    GATE 2025 Q41: $X$ is exponential with mean $1/\ln 10$, and $P(\lfloor X\rfloor = \ell) = q^\ell(1-q)$. What is $q$?

    0.434
    That’s $1/\ln 10$, the mean. $q$ is the chance of surviving one whole unit.
    0.1
    $\lfloor X\rfloor \ge \ell+1$ means surviving one more unit, with probability $e^{-\lambda} = e^{-\ln 10} = 0.1$. Official key: (A) 0.1 (the options are reordered here).
    0.5
    Compute $e^{-\lambda}$ with rate $\lambda = \ln 10$.
    0.01
    One unit of time, not two.

    GATE 2026 Q45 asks for $\displaystyle\lim_{n\to\infty}\sum_{k=0}^{n} \frac{e^{-n}n^k}{k!}$. Interpreting the sum as $P(\text{Poisson}(n) \le n)$, the limit is

    1
    The sum stops at $k = n$, the mean, so about half the probability lies beyond it.
    0.5
    Poisson($n$) is roughly normal with mean $n$ for large $n$ (CLT), so $P(\le \text{mean}) \to \tfrac12$. Official key: (A) 0.5 (the options are reordered here).
    $e^{-1}$
    Tempting, but the CLT picture gives the answer directly.
    0
    The sum includes all values up to the mean.

    Scores are $N(60, 100)$. The proportion scoring above 80 is about

    16%
    That’s above $\mu + 1\sigma$ = 70. Here 80 is 2σ above.
    2.3%
    $z = (80-60)/10 = 2$ and $P(Z \gt 2) \approx 0.023$. The 68–95–99.7 rule rounds this to 2.5%; the exact tail is 2.28%.
    5%
    5% is both tails combined.
    0.15%
    That’s beyond 3σ.

    $X$ is uniform on $[2, 8]$. $E[X]$ and $\mathrm{Var}(X)$ are

    5 and 6
    Variance is $(b-a)^2/12$.
    5 and 3
    $(2+8)/2 = 5$ and $36/12 = 3$.
    4 and 3
    The mean is the midpoint of $[2, 8]$.
    5 and 36
    Divide by 12.

    A fair coin is tossed until the first head. $P(\text{more than 4 tosses})$ is

    $\tfrac{1}{2}$
    That’s the chance the first toss is a tail. All of the first four must be tails.
    $(\tfrac12)^4 = \tfrac1{16}$
    More than 4 tosses means the first 4 were all tails.
    $\tfrac{4}{16}$
    Each toss must be a tail; multiply ½ four times.
    $\tfrac{15}{16}$
    That’s $P(\text{head within 4 tosses})$.

    $X \sim$ Poisson(4). $E[X^2]$ is

    16
    $E[X^2] = \mathrm{Var} + (E[X])^2$.
    20
    $4 + 4^2$.
    4
    That’s the mean (and the variance).
    8
    $(E[X])^2 = 16$, not 4.

    Real data rarely comes one variable at a time: runs and balls faced, toss and result, height and weight. This part describes two random variables together (their joint distribution), recovers each one alone (marginals), and asks what one tells you about the other (conditional distributions and conditional expectation). These ideas lead straight into regression, Naive Bayes and Bayesian networks.

    You need: Parts 2–4, and double integrals over simple regions (Refreshers 3.2).

    Two random variables at once

    A joint distribution gives the probability of every combination of values of $X$ and $Y$; summing out one variable gives the other’s marginal distribution.

    Covariance, correlation, conditional probability and independence of random variables all start from the joint distribution. GATE uses joint tables and joint densities on triangles and squares.

    It’s like a league table cross-tabulated by toss and result: each cell counts the matches with that combination, and the row and column totals are the marginals.

    Where it shows up in GATE DA

    Joint densities over regions, marginals, independence and covariance.

    2024 Q56 · P(X ≥ Y) for independent uniforms2024 Q59 · joint density on a triangleSample Q36 · conditional density2026 Q63 · correlation2024 Q65 · covariance
    Heat: most years, 2–4 marks

    Start with a table. Over many DPL matches, the Haryana Heuristics’ record by toss and result looks like this (as fractions of all matches):

    Match wonMatch lostTotal
    Toss won0.300.200.50
    Toss lost0.200.300.50
    Total0.500.501

    Each inner cell is a joint probability, like $P(\text{toss won and match won}) = 0.30$. The totals in the margins are the marginal probabilities of each variable on its own: they win half their tosses and half their matches. And conditional probability works straight from the table: $P(\text{match won} \mid \text{toss won}) = 0.30 / 0.50 = 0.6$. Since $0.30 \ne 0.50 \times 0.50$, toss and result are not independent. Everything in this chapter is this table, written in symbols.

    For discrete $X, Y$: $p(x, y) = P(X = x, Y = y)$, with $\sum_x\sum_y p(x, y) = 1$. The marginal PMFs are $$p_X(x) = \sum_y p(x, y),\qquad p_Y(y) = \sum_x p(x, y).$$ In a table: marginals are the row and column totals, written in the margins, hence the name.

    For continuous $X, Y$: a joint density $f(x, y) \ge 0$ with total volume 1, and $P((X,Y)\in R) = \iint_R f(x,y)\,dx\,dy$. Marginal: $f_X(x) = \int f(x, y)\,dy$ (integrate out $y$). Watch the support, the region where $f$ is positive: if $f$ lives on a triangle like $0 \lt y \lt x \lt 2$, the limits of integration depend on $x$.

    $X$ and $Y$ are independent if $p(x, y) = p_X(x)\,p_Y(y)$ for every pair $(x, y)$ (or $f(x,y) = f_X(x)f_Y(y)$). One cell that fails the test is enough to break independence. A quick warning sign for densities: if the support isn’t a rectangle (e.g. a triangle), they can’t be independent.

    Try it

    The table is a joint PMF of $X$ (wickets lost in the powerplay: 0, 1, 2) and $Y$ (match result score: 0 = loss, 1 = tie, 2 = win). Click cells to add weight (the table renormalises), or pick a preset. Watch the marginals, the independence check and the covariance. Click a row label to see the conditional distribution of $Y$ given that $X$.

    GATE DA 2024 sample paper · Q36 · MCQ · 2 marks

    Consider the following joint distribution of random variables $X$ and $Y$: $f(x, y) = \dfrac{x(1 + 3y^2)}{4}$ for $0 \le x \le 2$, $0 \le y \le 1$, and 0 otherwise. Which of the following is the conditional pdf of $X\mid Y$?

    (The four options are formulas; we derive the answer directly.)

    1. Marginal of $Y$: integrate out $x$. $f_Y(y) = \int_0^2 \frac{x(1+3y^2)}{4}\,dx = \frac{1+3y^2}{4}\cdot\Big[\frac{x^2}{2}\Big]_0^2 = \frac{1+3y^2}{2}$.

      $(1+3y^2)$ doesn’t depend on $x$, so it comes out of the integral.

    2. Conditional density: $f_{X\mid Y}(x\mid y) = \dfrac{f(x,y)}{f_Y(y)} = \dfrac{x(1+3y^2)/4}{(1+3y^2)/2} = \dfrac{x}{2}$ for $0 \le x \le 2$.

      The same “joint ÷ marginal” rule as for events, now for densities.

    3. The answer doesn’t depend on $y$ at all, and $f(x,y)$ factors as $\frac x2\cdot\frac{1+3y^2}{2}$ on a rectangle. So $X$ and $Y$ are independent, and $f_{X\mid Y} = f_X = x/2$.

      Shortcut worth remembering: if a joint density factors into an $x$-part times a $y$-part on a rectangle, the variables are independent and each part (normalised) is a marginal.

    Warm-up. A joint table has $P(0,0) = 0.1$, $P(0,1) = 0.3$, $P(1,0) = 0.2$, $P(1,1) = 0.4$ for $(X, Y)$. Find $P(X = 1)$ and $P(Y = 1)$.

    Add across the row for $X = 1$, and down the column for $Y = 1$.

    $P(X = 1) = 0.2 + 0.4 = 0.6$; $P(Y = 1) = 0.3 + 0.4 = 0.7$.

    Warm-up. In the same table, are $X$ and $Y$ independent?

    Check one cell: is $P(1, 1) = P(X = 1)P(Y = 1)$?

    $0.6 \times 0.7 = 0.42 \ne 0.4$, so no. One failing cell is enough.

    A joint PMF: $p(0,0) = 0.2$, $p(0,1) = 0.3$, $p(1,0) = 0.4$, $p(1,1) = 0.1$. Find $P(X = 1)$ and $P(Y = 1)$.

    Sum the cells in the $X = 1$ row; then the $Y = 1$ column.

    $P(X=1) = p(1,0) + p(1,1) = 0.4 + 0.1 = 0.5$. $P(Y=1) = p(0,1) + p(1,1) = 0.3 + 0.1 = 0.4$.

    For the table in Problem 1, are $X$ and $Y$ independent?

    Check one cell: is $p(1,1) = P(X=1)P(Y=1)$?

    $P(X=1)P(Y=1) = 0.5\times0.4 = 0.2$, but $p(1,1) = 0.1$. Not independent.

    $f(x, y) = c$ on the triangle $0 \le y \le x \le 2$ (zero elsewhere). Find $c$.

    A constant density times the area must equal 1.

    The triangle has vertices $(0,0), (2,0), (2,2)$, so its area is $\tfrac12\cdot2\cdot2 = 2$. So $c = \tfrac12$.

    For the density in Problem 3, what is the marginal density $f_X(x)$ for $0 \le x \le 2$?

    Integrate $c$ over $y$ from 0 up to $x$ (the triangle’s height at that $x$).

    $f_X(x) = \int_0^x \tfrac12\,dy = \tfrac x2$. Check: $\int_0^2 \tfrac x2\,dx = 1$ ✓.

    $(X, Y)$ has joint density $f(x, y) = c\,x$ on the triangle $0 \le y \le x \le 1$, and 0 elsewhere. Find $c$ and $P(X + Y \le 1)$.

    Sketch the triangle and the line $x + y = 1$. Inside the triangle, the condition $y \le 1 - x$ only bites when $x \gt \tfrac12$, so split the $x$-integral at $\tfrac12$.

    Total mass: $\int_0^1\int_0^x c\,x\,dy\,dx = \int_0^1 c\,x^2\,dx = \tfrac c3 = 1$, so $c = 3$.

    The event needs $y \le x$ and $y \le 1 - x$, i.e. $y \le \min(x, 1 - x)$. For $x \le \tfrac12$ the bound is $x$; for $x \gt \tfrac12$ it is $1 - x$.

    $$P(X + Y \le 1) = \int_0^{1/2} 3x\cdot x\,dx + \int_{1/2}^{1} 3x(1 - x)\,dx = \tfrac18 + \tfrac14 = \tfrac38.$$

    (First piece: $[x^3]_0^{1/2} = \tfrac18$. Second: $\big[\tfrac32x^2 - x^3\big]_{1/2}^1 = \tfrac12 - \tfrac14 = \tfrac14$.) So $c = $ 3 and $P = $ 0.375.

    A joint PMF has $P(X{=}{-1}, Y{=}1) = 0.25$, $P(X{=}1, Y{=}1) = 0.25$, $P(X{=}0, Y{=}0) = 0.3$, $P(X{=}0, Y{=}1) = 0.2$, and every other cell 0. Which is correct?

    1. $X$ and $Y$ are independent, since $\mathrm{Cov}(X, Y) = 0$.
    2. $X$ and $Y$ are dependent, and $\mathrm{Cov}(X, Y) = 0$.
    3. $X$ and $Y$ are dependent, and $\mathrm{Cov}(X, Y) = 0.5$.
    4. $X$ and $Y$ are independent, since the conditional distribution of $Y$ is the same given $X = -1$ and given $X = 1$.

    Compute the marginals, then $E[X]$, $E[Y]$ and $E[XY]$. For independence, look for one cell where the joint probability differs from the product of marginals.

    Marginals: $P(X{=}{-1}) = 0.25$, $P(X{=}0) = 0.5$, $P(X{=}1) = 0.25$; $P(Y{=}1) = 0.7$, $P(Y{=}0) = 0.3$.

    $E[X] = 0$ and $E[XY] = (-1)(1)(0.25) + (1)(1)(0.25) = 0$, so $\mathrm{Cov}(X, Y) = 0 - 0\times0.7 = 0$.

    But $P(X{=}{-1}, Y{=}0) = 0$ while $P(X{=}{-1})P(Y{=}0) = 0.075$, so they are dependent. Answer (B): zero covariance does not imply independence.

    (A) makes exactly that mistake. (C) drops the minus sign of $x = -1$ in $E[XY]$. (D) checks only two of the three values of $X$; given $X = 0$, $Y$ behaves differently.

    $X$ and $Y$ are independent, each exponential with rate 1. Which of the following is/are correct?

    1. $P(X \gt 2Y) = \tfrac13$
    2. $\min(X, Y)$ is exponential with mean $\tfrac12$.
    3. $P(X + Y \le 1) = 1 - e^{-1}$
    4. $E[\max(X, Y)] = 1$

    Joint density $e^{-x}e^{-y}$ on the quarter-plane. For (A), integrate over $y$ with $P(X \gt 2y) = e^{-2y}$. For (C), the sum of two exponentials is not exponential: integrate over the triangle $x + y \le 1$.

    (A) True: $P(X \gt 2Y) = \int_0^\infty e^{-2y}\,e^{-y}\,dy = \tfrac13$.

    (B) True: $P(\min \gt t) = e^{-t}e^{-t} = e^{-2t}$, rate 2, mean $\tfrac12$.

    (C) False: $P(X + Y \le 1) = \int_0^1 e^{-x}\big(1 - e^{-(1-x)}\big)\,dx = (1 - e^{-1}) - e^{-1} = 1 - 2e^{-1} \approx 0.264$. The value $1 - e^{-1}$ would hold if $X + Y$ were exponential with rate 1.

    (D) False: $E[\max] = E[X] + E[Y] - E[\min] = 1 + 1 - \tfrac12 = 1.5$.

    Correct: A, B.

    • Sketch the support of a joint density before writing any integral limits.
    • Get marginals by summing (or integrating) out the other variable.
    • Use “factorises on a rectangle” as a fast independence test.
    • Using fixed limits like $0$ to $2$ when the support is a triangle.
    • Declaring independence after checking only one cell that happens to work.
    • Forgetting that a joint density must integrate to 1 (see 2024 Q59 in the next chapter).
    1. A joint distribution covers every pair of values; marginals come from summing or integrating out the other variable.
    2. Independent random variables: the joint equals the product of the marginals everywhere.
    3. For joint densities, the shape of the support sets the integration limits; non-rectangular support means dependence.

    In a joint PMF table, the marginal $P(Y = y)$ is found by

    multiplying the cells in column $y$
    Probabilities of disjoint cells add; they don’t multiply.
    adding the cells in column $y$
    Sum over all $x$: $p_Y(y) = \sum_x p(x, y)$.
    reading the largest cell in column $y$
    Every cell in the column contributes.
    dividing by the row total
    That would give a conditional probability.

    $f(x, y) = 6e^{-2x}e^{-3y}$ for $x, y \ge 0$. Are $X$ and $Y$ independent?

    Yes
    It factors as $2e^{-2x}\cdot3e^{-3y}$ on the quarter-plane (a “rectangle”): independent exponentials.
    No, because they share the factor 6
    Constants can be split between the two factors.
    Only if $x = y$
    Independence is a property of the whole distribution, not of particular points.

    $(X, Y)$ is uniform on the triangle $0 \le y \le x \le 1$. Which is true?

    $X$ and $Y$ are independent
    Knowing $X = 0.1$ forces $Y \le 0.1$, so $X$ tells you about $Y$.
    $X$ and $Y$ are dependent
    The support isn’t a rectangle, so learning one variable restricts the other.
    The density is 1 everywhere on the triangle
    The triangle has area ½, so the density is 2.

    Conditional expectation: the best guess of Y once you know X

    $E[Y\mid X = x]$ is the average of $Y$ among only those outcomes where $X = x$, and averaging those averages over $X$ gives back $E[Y]$ (the tower rule).

    It’s in the syllabus by name (“conditional expectation and variance”), GATE has asked the tower rule directly, and regression is literally the estimation of $E[Y\mid X]$.

    It’s like predicting a batter’s score once you know the pitch type: you average only over past innings on that kind of pitch. Average those pitch-wise predictions, weighted by how often each pitch occurs, and you’re back to the overall average.

    Where it shows up in GATE DA

    Tower-rule identities, conditional means from joint densities, and the idea behind regression.

    2025 Q11 · E[E[X | Y]]2024 Q59 · E[Y | X = 1.5]2026 Q63 · conditional uniformSample Q36 · conditional density
    Heat: most years, 1–2 marks

    A small case first. Suppose the Heuristics average 180 runs when they win the toss and 160 when they lose it, and they win half their tosses. Their overall average is then $0.5 \times 180 + 0.5 \times 160 = 170$. The two numbers 180 and 160 are conditional expectations, $E[\text{runs} \mid \text{toss won}]$ and $E[\text{runs} \mid \text{toss lost}]$, and averaging them with the right weights gives back the overall average. That is the tower rule below, in words.

    Given $X = x$, the conditional PMF/PDF of $Y$ is $p(y\mid x) = \frac{p(x,y)}{p_X(x)}$ (or $f(y\mid x) = \frac{f(x,y)}{f_X(x)}$). Its mean is the conditional expectation $$E[Y\mid X = x] = \sum_y y\,p(y\mid x)\quad\text{or}\quad\int y\,f(y\mid x)\,dy.$$ This is a function of $x$. Plugging in the random $X$ gives a random variable, written $E[Y\mid X]$.

    $$E\big[E[Y\mid X]\big] = E[Y].$$ Average the conditional averages, weighted by how likely each $x$ is, and you recover the overall average. It’s the expectation version of the law of total probability.

    $$\mathrm{Var}(Y) = E\big[\mathrm{Var}(Y\mid X)\big] + \mathrm{Var}\big(E[Y\mid X]\big).$$ Total spread = average spread within each group + spread between the group averages. This split reappears as “explained vs unexplained variance” in regression.

    Try it

    $X$ is uniform on $[-1, 1]$ and, given $X = x$, $Y$ is spread uniformly around a centre line $g(x)$, as in GATE 2026 Q63. Drag the vertical slice to a value of $x$: the highlighted points are the conditional distribution of $Y$ there, and the dot marks $E[Y\mid X = x]$. Compare the correlation for $g(x) = x^2$ with $g(x) = 2x$.

    GATE DA 2025 · Q11 · MCQ · 1 mark

    Suppose $X$ and $Y$ are random variables. The conditional expectation of $X$ given $Y$ is denoted by $E[X\mid Y]$. Then $E[E[X\mid Y]]$ equals

    1. $E[X\mid Y]$
    2. $\dfrac{E[X]}{E[Y]}$
    3. $E[X]$
    4. $E[Y]$
    1. $E[X\mid Y]$ is a random variable: a function of $Y$, say $g(Y)$, where $g(y) = E[X\mid Y = y]$.

      This is why taking its expectation makes sense at all.

    2. Averaging $g(Y)$ over $Y$ weights each conditional average by how likely that $y$ is, which reassembles the overall average of $X$.

      In symbols (discrete): $\sum_y P(Y=y)\sum_x x\,P(X=x\mid Y=y) = \sum_x x\sum_y P(X=x, Y=y) = \sum_x x\,P(X=x)$.

    3. So $E[E[X\mid Y]] = E[X]$. Answer (C).

      (A) forgets the outer expectation; (D) swaps the roles. Official key: (C).

    Go deeper: the flawed GATE question (2024 Q59)

    GATE 2024 Q59 gave $f_{X,Y}(x, y) = 2xy$ for $0 \lt x \lt 2$, $0 \lt y \lt x$ and asked for $E[Y\mid X = 1.5]$. But $\int_0^2\int_0^x 2xy\,dy\,dx = \int_0^2 x^3\,dx = 4$, not 1, so this isn’t a valid density. The official key gave marks to all. Interestingly, the conditional density is still well defined: given $X = x$, $f(y\mid x) \propto y$ on $(0, x)$, i.e. $f(y\mid x) = 2y/x^2$, and $E[Y\mid X = x] = \int_0^x y\cdot\frac{2y}{x^2}dy = \frac{2x}{3}$, which is 1 at $x = 1.5$. The normalising constant cancels in a conditional. Lesson: check that a density integrates to 1, and know that conditionals only need the shape.

    Warm-up. $E[Y \mid X = 0] = 4$, $E[Y \mid X = 1] = 10$ and $P(X = 1) = 0.25$. Find $E[Y]$.

    Weight each conditional average by how likely its case is.

    $0.75 \times 4 + 0.25 \times 10 = 3 + 2.5 = 5.5$.

    Warm-up. With $P(1,1) = 0.4$ and $P(X = 1) = 0.6$, find $P(Y = 1 \mid X = 1)$.

    Divide the joint probability by the marginal of what you’re given.

    $0.4 / 0.6 = \tfrac23 \approx 0.667$.

    A batter faces either 10 or 20 balls, each with probability ½. Each ball is hit for six with probability 0.1, independently. What is the expected number of sixes?

    Condition on the number of balls $N$: $E[\text{sixes}\mid N] = 0.1N$. Then use the tower rule.

    $E[\text{sixes}] = E[0.1N] = 0.1\times E[N] = 0.1\times15 = 1.5$.

    Given $X = x$, $Y$ has density $f(y\mid x) = 2y/x^2$ on $0 \lt y \lt x$. Find $E[Y\mid X = 2]$.

    $\int_0^x y\cdot\frac{2y}{x^2}\,dy = \frac{2x}{3}$.

    $\frac{2\cdot2}{3} = \frac43$.

    $X$ is 1 or 2 with probabilities ⅓ and ⅔. Given $X = x$, $Y$ is uniform on $[0, 2x]$. Find $E[Y]$.

    $E[Y\mid X = x] = x$ (the midpoint of $[0, 2x]$). Then average over $X$.

    $E[Y\mid X = x] = x$, the midpoint of $[0, 2x]$. By the tower rule, $E[Y] = E[X] = 1\cdot\tfrac13 + 2\cdot\tfrac23 = \tfrac53$.

    In a 12-ball spell, each ball is a boundary with probability 0.25, independently, so the number of boundaries $N$ is Binomial(12, 0.25). Each boundary, independently of everything else, is a four or a six with probability $\tfrac12$ each. Let $S$ be the runs from boundaries. Find $\mathrm{Var}(S)$.

    Condition on $N$. Given $N = n$, $S$ is a sum of $n$ independent boundary values $B$ with $E[B] = 5$ and $\mathrm{Var}(B) = 1$. Then use the law of total variance.

    Each boundary value $B$ is 4 or 6, so $E[B] = 5$ and $\mathrm{Var}(B) = \tfrac12(1) + \tfrac12(1) = 1$.

    Given $N$: $E[S\mid N] = 5N$ and $\mathrm{Var}(S\mid N) = N\times1 = N$ (independent values, so variances add).

    $E[N] = 12\times0.25 = 3$ and $\mathrm{Var}(N) = 12\times0.25\times0.75 = 2.25$.

    Law of total variance: $\mathrm{Var}(S) = E[\mathrm{Var}(S\mid N)] + \mathrm{Var}(E[S\mid N]) = E[N] + 25\,\mathrm{Var}(N) = 3 + 56.25 =$ 59.25.

    Most of the spread comes from not knowing how many boundaries there will be, not from fours versus sixes.

    A batter’s form $X$ is uniform on $[0, 1]$. Given $X = x$, the number of scoring shots $Y$ in 10 balls is Binomial(10, $x$). Find $\mathrm{Var}(Y)$ and $P(Y = 10)$.

    Given $X = x$: $E[Y\mid X] = 10X$ and $\mathrm{Var}(Y\mid X) = 10X(1 - X)$. For the probability, average $P(Y = 10\mid X = x) = x^{10}$ over $x$.

    $E[\mathrm{Var}(Y\mid X)] = 10\,E[X - X^2] = 10\left(\tfrac12 - \tfrac13\right) = \tfrac53$.

    $\mathrm{Var}(E[Y\mid X]) = \mathrm{Var}(10X) = 100\times\tfrac{1}{12} = \tfrac{25}{3}$.

    Law of total variance: $\mathrm{Var}(Y) = \tfrac53 + \tfrac{25}{3} =$ 10.

    Total probability with a continuous condition: $P(Y = 10) = \int_0^1 x^{10}\,dx = \tfrac{1}{11} \approx 0.091$.

    Both answers match a surprise: $Y$ is uniform on $\{0, 1, \ldots, 10\}$, each value with probability $\tfrac1{11}$ and variance $\frac{11^2 - 1}{12} = 10$. Compare Binomial(10, 0.5), whose variance is only 2.5: uncertainty about $x$ adds spread.

    $(X, Y)$ is uniform on the triangle $0 \lt y \lt x \lt 1$ (density 2 there). Which pair gives $\big(E[X\mid Y = 0.4],\ E[Y]\big)$?

    1. $(0.2,\ \tfrac13)$
    2. $(\tfrac23,\ \tfrac13)$
    3. $(0.7,\ \tfrac13)$
    4. $(0.7,\ \tfrac12)$

    Fix $Y = 0.4$: which values can $X$ take, and is the conditional density flat? For $E[Y]$, find $E[Y\mid X = x]$ first and use the tower rule.

    Given $Y = y$, $X$ ranges over $(y, 1)$ and the density 2 is constant in $x$, so $X\mid Y = y$ is uniform on $(y, 1)$ with mean $\frac{1 + y}{2}$. At $y = 0.4$: $0.7$.

    Given $X = x$, $Y$ is uniform on $(0, x)$, so $E[Y\mid X] = X/2$. The marginal of $X$ is $f_X(x) = \int_0^x 2\,dy = 2x$, so $E[X] = \int_0^1 2x^2\,dx = \tfrac23$.

    Tower rule: $E[Y] = E[X/2] = \tfrac13$. Answer (C).

    (A) computes $E[Y\mid X = 0.4]$, the conditioning the wrong way round. (B) gives $E[X]$, ignoring the condition. (D) takes $E[Y]$ as the midpoint of $[0, 1]$, forgetting the triangle puts more weight on small $y$.

    • Treat $E[Y\mid X = x]$ as an ordinary function of $x$ and $E[Y\mid X]$ as a random variable.
    • Condition on whatever makes the problem easy (number of balls, which box, which scenario), then apply the tower rule.
    • For conditional densities, you only need the shape in $y$; normalise at the end.
    • Writing $E[E[X\mid Y]] = E[X\mid Y]$: the outer expectation removes the conditioning.
    • Forgetting that the conditional support can depend on $x$ (like $0 \lt y \lt x$).
    • Assuming zero correlation means $E[Y\mid X]$ is constant. It only rules out a linear trend.
    1. E[Y | X = x] is the mean of the conditional distribution of Y given X = x; E[Y | X] is that function applied to X.
    2. Tower rule: E[E[Y | X]] = E[Y]. Condition on something convenient, then average.
    3. Var(Y) = E[Var(Y | X)] + Var(E[Y | X]): spread within groups plus spread between group means.

    If $X$ and $Y$ are independent, $E[Y\mid X = x]$ equals

    $x$
    Knowing $X$ tells you nothing about $Y$ if they’re independent.
    $E[Y]$
    Conditioning on an independent variable doesn’t change the distribution of $Y$.
    0
    That’s only true if $E[Y] = 0$.
    $E[X]E[Y]$
    That’s $E[XY]$ for independent variables.

    In 2026 Q63, $E[Y\mid X] = X^2$ with $X$ uniform on $[-1, 1]$. By the tower rule, $E[Y]$ is

    0
    $X^2 \ge 0$, so its average is positive.
    ⅓
    $E[X^2] = \mathrm{Var}(X) + 0 = \frac{(1-(-1))^2}{12} = \tfrac13$.
    1
    That’s the largest value $X^2$ can take.
    ½
    Compute $E[X^2]$ for uniform $[-1, 1]$: $\int_{-1}^1 \frac{x^2}{2}dx$.

    In the law of total variance, the term $\mathrm{Var}(E[Y\mid X])$ measures

    the average spread within each group
    That’s $E[\mathrm{Var}(Y\mid X)]$.
    how much the group averages differ from each other
    The spread of the conditional means, the part of the variation “explained” by $X$.
    the covariance of $X$ and $Y$
    Related, but not the same quantity.
    nothing; it is always zero
    It’s zero only if $E[Y\mid X]$ is constant.

    Prior 0.2; $P(E\mid H) = 0.9$; $P(E\mid H^c) = 0.3$. The posterior $P(H\mid E)$ is

    0.9
    That’s the likelihood.
    ≈ 0.43
    $\frac{0.18}{0.18 + 0.24} = \frac{0.18}{0.42}$.
    0.18
    That’s the numerator; divide by $P(E) = 0.42$.
    0.6
    Recompute the false-evidence path: $0.8\times0.3$.

    An exponential lifetime has mean 4 hours. $P(\text{lifetime} \gt 4)$ is

    ½
    The median is $\ln2\times4 \approx 2.77$, not 4.
    $e^{-1} \approx 0.368$
    Rate $\lambda = \tfrac14$: $e^{-4/4}$.
    $1 - e^{-1}$
    That’s $P(\text{lifetime} \le 4)$.
    $e^{-4}$
    The rate is $1/\text{mean} = 0.25$, not 1.

    $X$ and $Y$ are independent with variances 2 and 3. $\mathrm{Var}(X - 2Y)$ is

    −4
    Variances never subtract for independent variables, and they’re never negative.
    8
    Square the coefficient: $(-2)^2 \times 3 = 12$.
    14
    $2 + 4\times3$.
    5
    The factor 2 on $Y$ becomes 4 on its variance.

    5 fair coins are tossed. $P(\text{exactly 2 heads})$ is

    $\tfrac{2}{5}$
    Use the binomial formula.
    $\tfrac{10}{32}$
    $\binom52/2^5$.
    $\tfrac{1}{32}$
    That’s one particular sequence; there are $\binom52$ of them.
    $\tfrac{5}{32}$
    That’s exactly 1 head (or 4).

    $E[Y\mid X] = 3X + 1$ and $E[X] = 2$. Then $E[Y]$ is

    3
    Apply the tower rule: $E[Y] = E[3X + 1]$.
    7
    $3\cdot2 + 1$.
    6
    Don’t drop the $+1$.
    Can’t tell
    The tower rule gives it directly.
    Every module complete

    Every question, answered right.

    You worked through every quiz and every practice problem in GATE Data Science & AI. That took real effort, and the understanding is yours to keep. Add your name to make a certificate.