Knowledge / Placement essentials (aptitude, reasoning, verbal, communication, interviews, Excel, workplace) / Probability

Probability

Placement essentials (aptitude, reasoning, verbal, communication, interviews, Excel, workplace) (All) · Quantitative aptitude · free study notes for exams, placements and interviews

In short

Probability measures how likely an event is, on a scale from 0 (impossible) to 1 (certain). It is built on counting favourable outcomes against total equally likely outcomes, and then extended by the addition, multiplication, conditional and Bayes rules to multi-stage experiments. In Indian examinations it appears in the AICTE/UGC CBCS "Probability and Statistics" course of almost every engineering branch, in GATE Engineering Mathematics (most engineering papers), in CAT, and in the quantitative section of TCS NQT, Infosys, Wipro, Capgemini, Accenture and IBPS/SBI bank exams. On the job it drives reliability and quality engineering, insurance and actuarial pricing, credit risk, A/B testing and every machine-learning model. Expect two to four marks in a placement aptitude paper and at least one conceptual interview question in data, risk or analytics roles.

Explained

Basic terms and the classical definition

Addition, multiplication, independence

Counting-based probability (the placement workhorse)

Total probability and Bayes' theorem

Random variables, expectation and standard distributions

Exam practice, Indian standards and quick techniques

Key points

Formulas and examples

P(E) = n(E) / n(S) - n(E) favourable outcomes, n(S) total equally likely outcomes (counts, dimensionless)
P(E′) = 1 − P(E); P(at least one) = 1 − P(none)
P(A ∪ B) = P(A) + P(B) − P(A ∩ B); P(A∪B∪C) = ΣP(A) − ΣP(A∩B) + P(A∩B∩C)
P(A | B) = P(A ∩ B) / P(B); P(A ∩ B) = P(B) · P(A | B); independent: P(A ∩ B) = P(A) · P(B)
Total probability: P(A) = Σᵢ P(Bᵢ) P(A | Bᵢ); Bayes: P(Bk | A) = P(Bk)P(A|Bk) / Σᵢ P(Bᵢ)P(A|Bᵢ)
Odds in favour a : b → P = a/(a+b); odds against a : b → P = b/(a+b)
C(n, r) = n! / (r! (n−r)!) - number of unordered selections of r from n
Binomial: P(X = r) = C(n, r) pr qn−r, q = 1 − p; E(X) = np, Var(X) = npq
Geometric: P(X = k) = qk−1 p; E(X) = 1/p
Poisson: P(X = k) = e−λ λk / k!; E(X) = Var(X) = λ (λ = mean events per interval)
E(X) = Σ x·p(x); Var(X) = E(X²) − [E(X)]²; σ = √Var(X)
Normal: z = (x − μ)/σ; Derangements Dₙ = n! Σ (−1)k/k!, k = 0…n

Example 1 - two cards from a pack of 52 (without replacement). Total selections n(S) = C(52,2) = 52×51/2 = 1,326.

Example 2 - bag of 5 red, 4 blue, 3 green balls; 3 drawn at random. n(S) = C(12,3) = 220.

Example 3 - Bayes' theorem, screening test. A disease affects 1% of a population. The test detects it in 99% of patients who have it (sensitivity) and wrongly flags 5% of healthy people (false positive). A person tests positive - what is the chance they have the disease?

Example 4 - binomial and expectation. A fair die is rolled 5 times; X = number of sixes.

Example 5 - independent workers and expected value. Three students solve a problem independently with probabilities 1/2, 1/3, 1/4.

ConceptMutually exclusiveIndependent
MeaningCannot both occurOne tells nothing about the other
P(A ∩ B)0P(A)·P(B)
P(A ∪ B)P(A) + P(B)P(A) + P(B) − P(A)P(B)
ExampleDie shows 2 and shows 5Two different dice both show 6
DistributionCounts / modelsMeanVariance
Bernoulli(p)One trialpp(1−p)
Binomial(n, p)Successes in n fixed trialsnpnpq
Geometric(p)Trials up to first success1/pq/p²
Poisson(λ)Rare events per intervalλλ
Normal(μ, σ²)Continuous measurementsμσ²

Where it is used

Interview questions

Common mistakes

Related topics

Open in the Knowledge reader →Find jobs →