Skip to content
GATEiit

GATE EC · Engineering Mathematics

Combinatorial probability

Classical probability by counting: sample spaces, permutations and combinations, arrangements with repetition, the complement and inclusion–exclusion rules, urn and dice problems, and geometric probability, as GATE EC asks them.

Before you start

  • Permutations and combinations

    Every classical probability is a ratio of two counts; you must count ordered and unordered selections without error.

  • Sets and Venn diagrams

    Events are sets; union, intersection and complement map directly to 'or', 'and' and 'not'.

  • Areas of simple plane figures

    Geometric probability questions reduce to the area of a triangle or band inside a square.

This topic comes before: Binomial distribution, Joint and conditional probability, Probability distributions, Source coding

Concept notes

1. Sample space, events and classical probability

A random experiment has a set of possible outcomes called the sample space S. An event A is any subset of S.

When all outcomes are equally likely and S is finite, the classical probability is

P(A)=n(A)n(S)=favourable outcomestotal outcomes

The axioms give every other rule: 0≤P(A)≤1, P(S)=1, and for mutually exclusive events P(A∪B)=P(A)+P(B). From them:

  • Complement: P(A′)=1−P(A). Use it for every "at least one" question.
  • Addition rule: P(A∪B)=P(A)+P(B)−P(A∩B).
  • Three events: P(A∪B∪C)=∑P(A)−∑P(A∩B)+P(A∩B∩C).

The formula n(A)/n(S) is valid only if the outcomes you counted are equally likely. For two dice, the 36 ordered pairs are equally likely, but the 11 possible sums are not: a sum of 7 has 6 pairs, a sum of 2 has only 1. Always list the sample space as ordered outcomes of the basic experiment.

Mutually exclusive (A∩B=∅) is not the same as independent (P(A∩B)=P(A)P(B)). Two events with non-zero probability cannot be both.

112233445566first dieseconddiedots:sum = 7
Two fair dice give 36 equally likely ordered pairs. The six dots are the outcomes with sum 7, so P(sum = 7) = 6/36 = 1/6.

2. Counting tools

Multiplication rule: if a task has k stages with n1,n2,…,nk choices, it can be done in n1n2⋯nk ways.

Choosing r items from n distinct items:

Order matters Order does not matter
No repetition nPr=n!(n−r)! (nr)=n!r!(n−r)!
Repetition allowed nr (n+r−1r)

Other standard counts:

  • Arrangements with repeated items: n objects with n1 alike of one kind, n2 alike of another, …: n!n1! n2!⋯.
  • Circular arrangements of n distinct objects: (n−1)!.
  • Identical objects into distinct boxes (stars and bars): r identical balls into n boxes in (n+r−1n−1) ways; this is also the number of non-negative integer solutions of x1+⋯+xn=r.
  • Items kept together: treat the block as one item, then multiply by the internal arrangements of the block.

A useful check: (nr)=(nn−r) and ∑r(nr)=2n.

In a probability question, count the numerator and the denominator the same way: both ordered or both unordered. Mixing them is the most common source of wrong answers.

3. Standard problem types

Drawing without replacement (urn problems). From N balls of which K are red, draw n at once. Then

P(exactly k red)=(Kk)(N−Kn−k)(Nn)

This is the hypergeometric form. Drawing one by one without replacement gives the same answer as drawing all at once.

Drawing with replacement makes draws independent, so probabilities multiply: P(red, then red)=(K/N)2.

"At least one". Compute the complement "none": P(at least one)=1−P(none). For n independent trials each with success probability p, P(at least one success)=1−(1−p)n.

Birthday type. r people, N equally likely categories (days, months). P(all different)=N(N−1)⋯(N−r+1)Nr.

Exactly k successes in n independent trials: (nk)pk(1−p)n−k, where (nk) counts the positions of the successes.

Seating and arrangement. Two given people in a row of n sit together with probability 2 (n−1)!n!=2n.

Clue in the question Method
"at least one" complement
"selected at random", "committee" combinations
"arranged", "in a row", "code" permutations
"with replacement" independent, multiply

4. Geometric probability

When an outcome is a point chosen uniformly from a region (an interval, a square), probability is a ratio of sizes instead of counts:

P(A)=length, area or volume of Alength, area or volume of S

Two numbers x,y chosen independently and uniformly from [0,1] give a point uniform in the unit square, so P = area of the region (the square has area 1).

Standard regions in the unit square:

  • x+y<1: triangle, area 12.
  • x+y<s for 1≤s≤2: area 1−(2−s)22.
  • ∣x−y∣≤d (the meeting problem): area 1−(1−d)2.
  • xy<c or x2+y2<1: needs an integral or a quarter circle (π/4).

Method: draw the square, draw the boundary line of the event, shade the event and find its area, usually as the square minus one or two corner triangles.

For the meeting problem with an interval of length T and waiting time w, scale to d=w/T: P(meet)=1−(1−wT)2.

A single point has zero length, so for continuous uniform choices P(x=y)=0 and < or ≤ give the same answer.

0156015600arrival time of A, x (min)arrivalof B, ymeetmissmiss
Meeting problem: A and B arrive uniformly in a 60-minute window and wait 15 minutes. They meet inside the shaded band |x − y| ≤ 15; the two corner triangles are misses.

Formulas to remember

Classical probabilityOnly for equally likely outcomes
P(A)=n(A)n(S)
Complement
P(A′)=1−P(A)
Addition rule
P(A∪B)=P(A)+P(B)−P(A∩B)
Permutations and combinations
nPr=n!(n−r)!,(nr)=n!r! (n−r)!
Arrangements with repeated items
n!n1! n2!⋯nk!
Stars and barsr identical objects into n distinct boxes
(n+r−1n−1)
Hypergeometric (without replacement)
P(k)=(Kk)(N−Kn−k)(Nn)
At least one successn independent trials
1−(1−p)n
Meeting problemArrivals uniform over T, each waits w
P=1−(1−wT)2

Common mistakes

  • Counting the numerator as ordered and the denominator as unordered, or the other way round. Decide once and use the same method for both.
  • Treating unequal outcomes as equally likely, such as the 11 possible sums of two dice. List ordered outcomes of the basic experiment.
  • Adding probabilities for 'at least one' over overlapping events. Use 1 − P(none) instead.
  • Confusing mutually exclusive with independent. Mutually exclusive events with non-zero probability are always dependent.
  • Forgetting to subtract the overlap in P(A or B), or forgetting the triple term in three-event inclusion–exclusion.
  • Using with-replacement probabilities (multiplying K/N each time) when the draw is without replacement.

Worked examples

Try each step yourself, then reveal the working.

Example 1: Two dice: sum 8 or a double

numerical

Two fair dice are thrown. Find the probability that the sum is 8 or both dice show the same number.

  1. Step 1: Count the outcomes with sum 8.

    Try it on paper first.

Example 2: Committee from men and women

numerical

A committee of 3 is chosen at random from 6 men and 4 women. Find (a) the probability that it has exactly 2 women, and (b) the probability that it has at least one woman.

  1. Step 1: Count all committees.

    Try it on paper first.

Example 3: Birthday months

numerical

Four people are chosen at random. Assume each is equally likely to be born in any of the 12 months, independently. Find the probability that at least two of them share a birth month.

  1. Step 1: Find the total number of outcomes.

    Try it on paper first.

Example 4: The meeting problem

numerical

Two friends agree to meet between 5:00 and 6:00 pm. Each arrives at a time uniformly distributed in the hour, independently, and waits 15 minutes for the other before leaving. Find the probability that they meet.

  1. Step 1: Set up the sample space.

    Try it on paper first.

Previous year questions

1 official GATE EC question on this topic, newest first.

Topic test

9 questions: up to 1 official PYQs and original practice questions, with GATE marking (MCQ wrong answers lose marks). Score 60% or more to pass. A new set is drawn each time.

Mark as mastered

Loading your progress…

My revision notes

Notes written by the GATEiit team against the official GATE EC syllabus; being checked by a reviewer. Updated 2026-11-29. Spotted a mistake? Use Report an issue on any question, or contact us.