Engineering Mathematics
Probability
Make Bayes trees, expectation/variance, and Bernoulli–Binomial–Poisson patterns automatic — this unit repeatedly returns easy marks when events are named clearly.
GATE CSE probability — axioms, conditional probability, Bayes’ theorem, random variables, standard distributions, sample GATE questions, flashcards, and practice drills.
Learning outcomes
- Apply axioms, unions, and independence without mixing “exclusive” with “independent”
- Solve conditional probability and Bayes problems with clear event definitions
- Work with discrete RVs: PMF, CDF, expectation, variance, indicators
- Recognise Bernoulli, Binomial, Poisson, Geometric, and Uniform patterns
- Handle light continuous uniform/normal facts and Cov/Corr at GATE depth
- Solve GATE-style probability MCQ/NAT items with a clear explanation trail
Probability space & basic rules
- Sample space Ω; events are subsets. 0 ≤ P(A) ≤ 1, P(Ω)=1, and countable additivity for pairwise disjoint events.
- P(A∪B)=P(A)+P(B)−P(A∩B). Complement: P(Aᶜ)=1−P(A).
- Mutually exclusive (disjoint): A∩B=∅ ⇒ P(A∪B)=P(A)+P(B). This is not the same as independence.
- Independence: P(A∩B)=P(A)P(B). If P(A),P(B)∈(0,1), exclusive events with nonempty probs are dependent.
- Equally likely outcomes: P(A)=|A|/|Ω| — only when the model justifies uniformity.
Formulas to remember
-
P(A∪B) = P(A) + P(B) − P(A∩B) -
P(Aᶜ) = 1 − P(A) -
Independent: P(A∩B) = P(A)P(B)
Worked example
Problem. Fair die. P(even or >4)?
Solution. Even={2,4,6}, >4={5,6}, intersection={6}. P=3/6+2/6−1/6=4/6=2/3.
Conditional probability & Bayes
- P(A|B)=P(A∩B)/P(B) when P(B)>0. Rearrange: P(A∩B)=P(A|B)P(B)=P(B|A)P(A).
- Total probability: if B_i partition Ω, P(A)=Σ P(A|B_i)P(B_i).
- Bayes: P(B_i|A)=P(A|B_i)P(B_i)/P(A) — update prior P(B_i) to posterior given evidence A.
- Draw a tree: first branch priors, second branch likelihoods; Bayes is “flip the path weight / total evidence”.
- Medical/test and box/ball stems are the GATE templates — name events before inserting fractions.
Formulas to remember
-
P(A|B) = P(A∩B)/P(B) -
P(B_i|A) = P(A|B_i)P(B_i) / Σ_j P(A|B_j)P(B_j)
Worked example
Problem. Two boxes: B1 has 2 red 3 blue; B2 has 3 red 1 blue. Pick a box at random, then a red ball. P(from B1)?
Solution. P(B1|R)=[(1/2)(2/5)] / [(1/2)(2/5)+(1/2)(3/4)] = (1/5) / (1/5 + 3/8) = (8/40)/(8/40+15/40)=8/23.
Counting bridges (with combinatorics)
- Without replacement: hypergeometric-style ratios — update denominators after each draw.
- With replacement / independent trials: multiply identical factors.
- Permutations vs combinations: order matters in sequences of distinct draws from a line; unordered committees use C(n,k).
- Birthday / matching problems: complement + independence approximations appear occasionally — prefer exact small-n when feasible.
Worked example
Problem. Urn has 5 red, 3 blue. Draw 2 without replacement. P(both red)?
Solution. (5/8)(4/7)=20/56=5/14. Or C(5,2)/C(8,2)=10/28=5/14.
Random variables — PMF, CDF, expectation
- Discrete RV X: PMF p(x)=P(X=x) with Σ p(x)=1. CDF F(x)=P(X≤x), right-continuous step function.
- E[X]=Σ x p(x) (absolute convergence assumed in GATE problems). E[g(X)]=Σ g(x)p(x).
- Var(X)=E[(X−μ)²]=E[X²]−(E[X])². SD = √Var.
- Linearity: E[aX+bY]=aE[X]+bE[Y] always — independence not required.
- Independent X,Y ⇒ E[XY]=E[X]E[Y] and Var(X+Y)=Var(X)+Var(Y).
- Indicators I_A: E[I_A]=P(A). Linearity counts expected number of successes without independence.
Formulas to remember
-
E[X] = Σ x p(x) -
Var(X) = E[X²] − (E[X])² -
E[aX+b] = a E[X] + b -
Var(aX+b) = a² Var(X)
Worked example
Problem. Expected number of fixed points of a random permutation of n items?
Solution. I_j = 1 if position j fixed. E[I_j]=1/n. E[Σ I_j]=Σ 1/n = 1 (for n≥1).
Bernoulli, Binomial, Geometric
- Bernoulli(p): X∈{0,1}, P(X=1)=p. Mean p, variance p(1−p).
- Binomial(n,p): number of successes in n independent Bernoulli trials. P(X=k)=C(n,k) p^k (1−p)^{n−k}. Mean np, var np(1−p).
- Geometric (trials until first success): P(X=k)=(1−p)^{k−1}p for k=1,2,… Mean 1/p, var (1−p)/p².
- Alternate geometric (failures before first success) starts at 0 — read the stem carefully.
- Memoryless property of geometric: P(X>s+t | X>s)=P(X>t).
| Distribution | Mean | Variance |
|---|---|---|
| Bernoulli(p) | p | p(1−p) |
| Binomial(n,p) | np | np(1−p) |
| Geometric (trials) | 1/p | (1−p)/p² |
| Uniform{1..n} | (n+1)/2 | (n²−1)/12 |
Worked example
Problem. Fair die rolled until a six appears. Expected number of rolls?
Solution. Geometric with p=1/6 ⇒ E[X]=6.
Poisson & continuous light touch
- Poisson(λ): P(X=k)=e^{−λ} λ^k / k!. Mean = variance = λ.
- Binomial ≈ Poisson when n large, p small, λ=np fixed.
- Continuous Uniform[a,b]: density 1/(b−a); mean (a+b)/2; variance (b−a)²/12.
- Normal(μ,σ²): standardize Z=(X−μ)/σ. Symmetry about μ; P(Z>0)=1/2. Exact table values rarely required.
- PDF integrates to 1; P(a≤X≤b)=∫_a^b f. For continuous X, P(X=x)=0.
Formulas to remember
-
Poisson: P(X=k) = e^{−λ} λ^k / k! -
Uniform[a,b]: f(x)=1/(b−a), Var=(b−a)²/12 -
Z = (X − μ)/σ
Worked example
Problem. Calls arrive as Poisson with λ=2 per hour. P(exactly 0 in an hour)?
Solution. e^{−2} ≈ 0.1353.
Joint ideas, Cov & Corr (exam depth)
- Joint PMF p(x,y); marginals by summing out the other variable.
- Independent RVs: p(x,y)=p_X(x)p_Y(y) for all x,y.
- Cov(X,Y)=E[(X−μ_X)(Y−μ_Y)]=E[XY]−E[X]E[Y]. Cov(X,X)=Var(X).
- Corr(X,Y)=Cov(X,Y)/(σ_X σ_Y) ∈ [−1,1].
- Independent ⇒ Cov=0; converse false (dependence can be nonlinear).
- Var(X+Y)=Var(X)+Var(Y)+2Cov(X,Y).
Formulas to remember
-
Cov(X,Y) = E[XY] − E[X]E[Y] -
Var(X+Y) = Var(X) + Var(Y) + 2 Cov(X,Y) -
Corr(X,Y) = Cov(X,Y) / (σ_X σ_Y)
Exam pattern checklist
- Name events in words before writing symbols — especially for Bayes.
- Ask: with or without replacement? Independent trials?
- Mutually exclusive ≠ independent — eliminate trap options.
- For expectation of a count, prefer indicators over expanding the full PMF.
- Match distribution to story: fixed n trials → Binomial; rare events / counts → Poisson; waiting time → Geometric.
Exam tips
- Draw a probability tree for Bayes before plugging numbers.
- “Mutually exclusive” ≠ independent — if both have positive probability and are exclusive, they are dependent.
- For Binomial, confirm independent trials with constant p.
- Geometric mean is 1/p only for the “trials until first success” version.
- Var(aX+b)=a²Var(X) — constants shift mean but the +b dies in variance.
- Indicator linearity: expected count = sum of probabilities, even with dependence.
10 GATE-style MCQs for Probability with full explanations. Attempt each question before revealing the answer.
If A and B are independent with P(A)=1/2, P(B)=1/3, then P(A∪B) equals:
Show answer & explanation
Answer: B
P(A∩B)=P(A)P(B)=1/6. P(A∪B)=1/2+1/3−1/6=2/3.
Two fair coins are tossed. P(exactly one head | at least one head) equals:
Show answer & explanation
Answer: B
Sample {HH,HT,TH,TT}. Conditioning on not TT leaves 3 outcomes; exactly one head: HT,TH ⇒ 2/3.
A bag has 4 red and 6 blue balls. Two drawn without replacement. P(both blue) is:
Show answer & explanation
Answer: C
(6/10)(5/9)=30/90=1/3. Or C(6,2)/C(10,2)=15/45=1/3.
X ~ Binomial(4, 1/2). P(X=2) equals:
Show answer & explanation
Answer: B
C(4,2)(1/2)^4 = 6/16 = 3/8.
For X ~ Bernoulli(p), Var(X) equals:
Show answer & explanation
Answer: C
E[X]=p, E[X²]=p ⇒ Var=p−p²=p(1−p).
If X ~ Poisson(λ) with E[X]=3, then P(X=0) equals:
Show answer & explanation
Answer: A
Mean λ=3 ⇒ P(X=0)=e^{−λ}=e^{−3}.
Geometric X = trials until first success with success probability 1/4. E[X] equals:
Show answer & explanation
Answer: C
E[X]=1/p=4.
If E[X]=2 and E[X²]=8, then Var(X) equals:
Show answer & explanation
Answer: A
Var=E[X²]−(E[X])²=8−4=4.
Independent X,Y with Var(X)=2, Var(Y)=3. Var(X+Y) equals:
Show answer & explanation
Answer: B
Independence ⇒ Cov=0 ⇒ Var(X+Y)=2+3=5.
A test is 99% accurate for a disease with prevalence 1%. A random person tests positive. Approximate P(diseased|+) is closest to:
Show answer & explanation
Answer: B
Classic Bayes base-rate: among 10000 people, ~100 diseased (99 true +, 1 miss) and ~9900 healthy with ~99 false +. Posterior ≈ 99/(99+99)≈0.5.
Extra page-specific practice beyond the GATE samples. Attempt all 10, then reveal answers to check your reasoning.
P(A)=0.6, P(B)=0.5, P(A∩B)=0.3. Are A,B independent?
Show answer & explanation
Answer: A) Yes
P(A)P(B)=0.3=P(A∩B) ⇒ independent.
Fair coin tossed thrice. P(exactly two heads) equals:
Show answer & explanation
Answer: B) 3/8
C(3,2)/8 = 3/8.
X~Binomial(5,1/3). Var(X) equals:
Show answer & explanation
Answer: B) 10/9
np(1−p)=5·(1/3)·(2/3)=10/9.
X~Binomial(5,1/3). P(X≥1) equals:
Show answer & explanation
Answer: A) 1 − (2/3)^5
1 − P(X=0) = 1 − (2/3)^5.
If Var(X)=4, then Var(3X−5) equals:
Show answer & explanation
Answer: B) 36
Var(3X−5)=9 Var(X)=36.
Poisson λ=2. P(X=1) equals:
Show answer & explanation
Answer: B) 2e^{−2}
e^{−2}·2^1/1! = 2e^{−2}.
Two boxes chosen equally likely. B1: 1 defective in 5; B2: 2 defective in 5. Item drawn is defective. P(from B2) equals:
Show answer & explanation
Answer: B) 2/3
P(B2|D)=[(1/2)(2/5)]/[(1/2)(1/5)+(1/2)(2/5)]=(1/5)/(3/10)=2/3.
Discrete Uniform on {1,2,3,4,5,6}. E[X] equals:
Show answer & explanation
Answer: B) 3.5
(n+1)/2 = 7/2 = 3.5.
Independent X,Y with E[X]=E[Y]=0, E[X²]=E[Y²]=1, E[XY]=0. Corr(X,Y) equals:
Show answer & explanation
Answer: B) 0
Cov=E[XY]−0=0 ⇒ Corr=0.
Expected number of heads in 10 fair coin tosses is:
Show answer & explanation
Answer: A) 5
Binomial n=10,p=1/2 ⇒ mean np=5 (or 10 indicators each mean 1/2).
Topic FAQs
How deep must continuous distributions go?
Uniform and Normal basics plus density intuition are enough for most CSE papers. Discrete RVs and Bayes dominate scoring.
Is covariance required?
Yes at a light level: Cov(X,Y)=E[XY]−E[X]E[Y] and Corr=Cov/(σx σy). Independent ⇒ Cov=0 (converse false).
What is the difference between mutually exclusive and independent?
Exclusive means cannot occur together (A∩B=∅). Independent means P(A∩B)=P(A)P(B). Nontrivial exclusive events are dependent.
When do I use Poisson instead of Binomial?
Use Binomial for fixed n independent trials. Poisson models counts with rate λ, and approximates Binomial when n is large, p is small, and λ=np.
Hover a card to reveal the answer with a 3D flip. On touch devices, tap the card or use Show answer.