L
LLLOS.ai
Learn
L

Chapter 5 — Probability

Class 12 · Mathematics

Overview

This unit introduces probability as a mathematical language for describing chance and uncertainty. It begins with basic concepts like experiments, outcomes and events, and builds to formal definitions of probability, conditional probability, independence and the law of total probability. Students learn counting tools such as permutations and combinations as they apply to probability, and extend ideas to discrete random variables, expectation, variance and common distributions (Bernoulli, Binomial, Geometric, and Poisson). The unit also covers joint distributions, covariance and correlation for two variables, and important limit ideas such as the weak law of large numbers and basic ideas behind the central limit theorem. Emphasis is on modelling simple real-life situations—games, quality control, and repeated trials—and on solving problems using reasoning and calculation. Understanding probability matters because it helps in making decisions with uncertain outcomes, interpreting statistics correctly, and forming a foundation for higher studies in statistics, data science, and many applied sciences.

Learning Objectives

  • Define the language of probability including sample space, event, and outcomes.
  • Apply counting techniques to compute probabilities in finite sample spaces.
  • Calculate conditional probabilities and use Bayes' theorem to revise probabilities.
  • Determine independence between events and use it to simplify probability calculations.
  • Compute expectation and variance for discrete random variables and common distributions.
  • Model repeated independent trials using Binomial and Geometric distributions.
  • Use joint distributions to find marginal, conditional distributions, covariance and correlation.
  • Apply the law of total probability and basic forms of limit theorems to interpret long-run behaviour.

Topics in this chapter

19 topics · tap a topic title to jump straight to it.

🚀1

Basic terms: experiment, sample space, outcomes and events

What is an experiment?
In probability a real or imagined action that leads to one of several possible results is called an experiment. Examples are tossing a coin, rolling a die, drawing a card, or measuring how many emails arrive in an hour. Each time you perform the experiment you observe a single result called an outcome.

Sample space and outcomes
The sample space, denoted by S, is the collection of all possible outcomes. For a single die roll S = {1,2,3,4,5,6}. For two tosses of a coin S = {(H,H),(H,T),(T,H),(T,T)} where order matters and ordered pairs are used. Writing the sample space clearly is the first step in any probability problem because it makes counting and reasoning exact.

Events and notation
An event is any subset of the sample space. If S is the set of outcomes, an event A is A ⊂ S. Events can be simple (one outcome) or compound (many outcomes). Notation: union A ∪ B means A or B; intersection A ∩ B means both A and B; complement A' means outcomes not in A; empty event ∅ has no outcomes; certain event S always occurs. Representing events with set notation helps manipulate and combine them algebraically.

Operations and properties
Set operations mirror logical relations: A ∪ B corresponds to 'A or B', A ∩ B to 'A and B', and A' to 'not A'. Disjoint or mutually exclusive events have A ∩ B = ∅; they cannot happen together. De Morgan's laws — (A ∪ B)' = A' ∩ B' and (A ∩ B)' = A' ∪ B' — are useful when working with complements. Practise drawing Venn diagrams to visualise these relations.

Ordered vs unordered outcomes
When experiments have multiple stages, decide whether order matters. For two coin tosses, (H,T) differs from (T,H) if you care about which toss was heads. If you only care about how many heads, treat outcomes as counts and use combinatorics. Mixing these views incorrectly causes counting mistakes, so always specify whether outcomes are ordered.

Continuous vs discrete sample spaces (brief)
Sample spaces can be finite, countably infinite (like {0,1,2,...}) or uncountable (like all real numbers in an interval when measuring lengths). Class 12 focuses mainly on finite and countable discrete spaces; continuous models come in higher study but the idea of events-as-subsets remains the same.

Practice tips
On every problem: list S, define events using set notation, and check whether outcomes are equally likely. Always ask whether sampling is with or without replacement and whether order matters; these determine counting and probabilities later.

📌 Examples
  • Coin tossed twice: list S and the event 'exactly one head'.
  • Roll a die: event 'even number' and its complement 'odd number'.
  • Choose a card from a standard deck: S and event 'king or heart'.
  • Two people each toss a coin: describe event 'results are the same'.
🧮 Formulas
  1. S = set of all possible outcomes
  2. Event A ⊂ S
  3. A ∪ B = {outcomes in A or B}
  4. A ∩ B = {outcomes in A and B}
  5. A' = S \ A
  6. A and B are mutually exclusive if A ∩ B = ∅
📊 Visual ideas
Venn diagram showing two overlapping events A and B within sample space S
Venn diagram showing disjoint events
List-of-outcomes table for two coin tosses with ordered pairs
🎲2

Classical definition of probability and axioms

Classical idea: equally likely outcomes
The classical definition of probability applies when a finite sample space S has outcomes that are equally likely. In that situation the probability of an event A is the number of favourable outcomes divided by the total number of outcomes: P(A) = |A|/|S|. This simple rule is ideal for fair coins, dice and cards when symmetry makes outcomes equally likely. Always verify the equally-likely assumption before using this rule.

Limitations of classical view
Many real-world situations do not have equally likely outcomes: a biased coin, non-uniform spinner, or events with weights require a more general approach. Even when outcomes are listed, different outcomes may carry different probabilities. For such cases assign probabilities p(ω) to each outcome ω and compute P(A) as the sum over ω in A of p(ω).

Kolmogorov axioms
Modern probability relies on three axioms formulated by Kolmogorov: (1) Non-negativity: For any event A, P(A) ≥ 0. (2) Normalisation: P(S) = 1. (3) Countable additivity: For any countable sequence of pairwise disjoint events A1, A2, ..., we have P(∪ Ai) = Σ P(Ai). These axioms give a rigorous foundation and lead to useful derived rules.

Derived rules from axioms
From the axioms follow practical formulae: P(∅)=0; P(A') = 1 − P(A); for two events A and B, P(A ∪ B) = P(A) + P(B) − P(A ∩ B). If A and B are disjoint then P(A ∪ B) = P(A) + P(B). These relations are used constantly in calculations and proofs.

Assigning probabilities in finite spaces
When outcomes are not equally likely, assign non-negative numbers p(ω) to each outcome ω with the sum over S equal to 1. Then for any event A, P(A) = Σ_{ω∈A} p(ω). This approach handles biased mechanisms like loaded dice or sensors with different reliability.

Working with infinite sample spaces
For countably infinite sample spaces one still assigns p(ω) with sum 1; but ensure convergence of sums. For uncountable sample spaces (not central to class 12) one must use measures; the axioms still serve as guide but require more advanced tools.

Problem-solving routine
Step 1: define S. Step 2: check equally-likely assumption. Step 3: use classical formula or assign probabilities to outcomes. Step 4: apply axioms-derived identities and simplify. Explicitly stating these steps in exams earns clarity marks.

📌 Examples
  • A fair die: probability of even number is 3/6 = 1/2.
  • A fair coin twice: probability of at least one head is 1 − P(no heads) = 1 − 1/4 = 3/4.
  • A biased spinner with sections of different angles: assign probabilities proportional to angles.
  • Two cards drawn without replacement: probability both are aces = (4/52)*(3/51).
🧮 Formulas
  1. P(A) ≥ 0
  2. P(S) = 1
  3. If A_i are pairwise disjoint then P(∪ A_i) = Σ P(A_i)
  4. P(A ∪ B) = P(A) + P(B) − P(A ∩ B)
  5. P(A') = 1 − P(A)
📊 Visual ideas
Venn diagram showing P(A ∪ B) = P(A)+P(B)−P(A∩B)
Bar diagram of probabilities assigned to finite outcomes
Number line illustration of probability mass focused on discrete points
🔢3

Counting methods: permutations and combinations

Counting is central to probability
When outcomes are equally likely, probability reduces to counting favourable outcomes and dividing by total outcomes. Accurate counting is therefore essential. Permutations count ordered arrangements; combinations count unordered selections. Recognising which applies prevents mistakes.

Permutations: order matters
When order is important — for example, arranging books on a shelf or the sequence of winners — use permutations. The number of ways to choose and arrange r objects from n distinct ones is nPr = n(n−1)(n−2)...(n−r+1) = n!/(n−r)!. When r = n, the number of arrangements is n! . For example, seating 5 students in 5 chairs gives 5! = 120 arrangements. Remember to consider whether rotations count as distinct; for circular arrangements divide by n to account for rotations if positions are considered equivalent.

Combinations: order does not matter
When only the set of chosen objects matters, not the order, use combinations. The number of ways to choose r items from n distinct items without order is nCr = n!/(r!(n−r)!). Examples include choosing committee members, selecting cards, or picking lotto numbers. A quick check: nCr = nPr / r! because each unordered selection corresponds to r! ordered arrangements.

Selections with repetition
If repetition is allowed, formulas change. The number of r-length sequences from n symbols with repetition allowed is n^r (order matters). For combinations with repetition (selecting r items from n types where order doesn't matter), the count is C(n+r−1, r). Decide early if repetition is permitted, because it changes counts drastically.

Using counting in probability
For equally likely finite sample spaces, P(A) = favourable/total. For example, drawing 2 kings from 52 cards without order uses combinations: C(4,2)/C(52,2). If order matters (first and second draw recorded), use permutations or product rule. For multi-stage experiments build a tree diagram and multiply along branches when probabilities are conditional.

Advanced counting ideas
In some probability problems you need to count arrangements avoiding a pattern (inclusion-exclusion), or count ways to distribute identical objects to distinct boxes (stars-and-bars). Inclusion-exclusion helps count unions of overlapping events by alternately adding and subtracting counts of intersections.

Practical problem steps
1. List the sample space type and size for small cases. 2. Determine whether order and repetition matter. 3. Choose the counting formula. 4. Compute favourable and total counts and form the probability ratio. Practise with concrete examples to build confidence in choosing the correct formula.

📌 Examples
  • Probability of getting 3 specific positions correct in arranging 5 books randomly.
  • Selecting 4 students from 10 for a team: number of ways = C(10,4).
  • Forming a 3-digit number from digits 1–5 without repetition: 5P3 = 5×4×3 = 60.
  • Probability of drawing 2 kings from a 52-card deck = C(4,2)/C(52,2).
🧮 Formulas
  1. n! = n×(n−1)×...×1
  2. nPr = n!/(n−r)!
  3. nCr = n!/(r!(n−r)!)
  4. Number of r-length sequences with repetition = n^r
  5. Circular permutations of n distinct objects = (n−1)!
📊 Visual ideas
Tree diagram showing ordered selections for small n
Table comparing permutations and combinations for a sample case
Venn-like diagram indicating when order and repetition apply
✖️4

Conditional probability and multiplication rule

Understanding conditional probability
Conditional probability measures how likely an event A is, given that another event B has occurred. It updates the sample space: once you know B happened, only outcomes in B remain possible. Formally, if P(B) > 0, P(A|B) = P(A ∩ B) / P(B). This basic definition is used extensively in sequential experiments and dependent events.

From definition to multiplication rule
Rearrange the conditional definition to get the multiplication rule: P(A ∩ B) = P(B) P(A|B). Since multiplication is symmetric if you swap A and B with conditional reversed, also P(A ∩ B) = P(A) P(B|A). This rule generalises to multiple events: for three events, P(A ∩ B ∩ C) = P(A) P(B|A) P(C|A ∩ B), and so on. Use this chain rule for probabilities in multi-stage experiments and to compute joint probabilities from conditional probabilities.

Sequential experiments and trees
Probability trees are a helpful visual for multi-stage problems: each branch is labelled with a conditional probability and joint probabilities are found by multiplying along branches. Sum branch probabilities to get probabilities of compound events. Trees clarify conditioning and avoid mistakes about which probabilities are conditional on previous stages.

Dependent vs independent events
If P(A|B) = P(A) (for P(B)>0), then A and B are independent: knowing B gives no information about A. Independence simplifies calculations since P(A ∩ B) = P(A)P(B). But many problems, especially without replacement sampling, create dependence and require conditional probabilities to account for changing composition of the sample space.

Common contexts
Conditional probability appears in drawing without replacement, diagnostic testing, reliability of systems where component failure affects others, and predictive tasks. For example, in a deck of cards the chance of drawing an ace on the second draw depends on whether the first draw was an ace when there is no replacement.

Calculation tips
Always check that the conditioning event has positive probability. When calculating P(A|B), list the intersection outcomes explicitly if possible and divide by the number of outcomes in B when outcomes are equally likely. For non-equally-likely outcomes, sum up the outcome probabilities in numerator and denominator separately. Label conditional probabilities clearly when working with multiple stages to avoid confusion.

Exam strategy
Write the formula P(A|B)=P(A∩B)/P(B) and show substitution steps, or draw a tree, and calculate joint probabilities by multiplication. Demonstrating the chain rule for multi-stage events often earns method marks even if final arithmetic requires a calculator.

📌 Examples
  • Two cards drawn without replacement: P(first is ace and second is ace) = (4/52)×(3/51).
  • A box has 3 red and 2 blue balls. Draw two without replacement: probability both red = (3/5)×(2/4) = 3/10.
  • If P(A)=0.6 and P(B|A)=0.5 then P(A∩B)=0.6×0.5=0.3.
  • Three coin tosses: probability all heads = 1×1/2×1/2 = 1/8 using conditional idea.
🧮 Formulas
  1. P(A|B) = P(A ∩ B) / P(B), P(B) > 0
  2. P(A ∩ B) = P(B)P(A|B) = P(A)P(B|A)
  3. \[Chain rule: P(∩_{i=1}^n A_i) = ∏_{i=1}^n P(A_i | ∩_{j=1}^{i−1} A_j)\]
📊 Visual ideas
Probability tree for two sequential draws without replacement
Tree diagram for three-stage experiments showing multiplication along branches
Two-set Venn diagram annotated with conditional probability ratios
🎲5

Bayes' theorem and revision of probabilities

Reversing conditionals: why Bayes matters
Often we observe evidence E and wish to update the probability of a hypothesis H. Bayes' theorem gives a principled way to compute P(H|E) using the known likelihood P(E|H) and prior probability P(H). It formalises how to revise beliefs in light of new data and is central to diagnostic reasoning, decision making and many applied problems.

Law of total probability
If H1, H2, ..., Hn partition the sample space (i.e., are mutually exclusive and exhaustive), then for any event E, P(E) = Σ_{k=1}^n P(E|H_k) P(H_k). This expresses the overall chance of evidence E by summing contributions from each possible cause weighted by its prior probability. The denominator in Bayes' formula is exactly this total probability and ensures the posterior probabilities sum to one.

Bayes' theorem formula
For a hypothesis Hi, Bayes' theorem is P(Hi|E) = P(E|Hi) P(Hi) / Σ_{k=1}^n P(E|Hk) P(Hk). The numerator is the likelihood-weighted prior; the denominator normalises across all hypotheses. Interpretationally, we start with prior beliefs P(Hi), observe evidence E summarised by likelihoods P(E|Hi), and compute posterior beliefs P(Hi|E).

Worked approach and care
Step 1: identify mutually exclusive hypotheses that cover all possibilities. Step 2: state priors P(Hi). Step 3: obtain likelihoods P(E|Hi). Step 4: compute P(E) by total probability. Step 5: apply Bayes' formula. A common pitfall is confusing P(E|H) with P(H|E); Bayes precisely relates the two but requires priors. When priors are small, even a test with good sensitivity and specificity can yield a low posterior.

Applications and examples
Bayes' theorem explains medical test interpretation: sensitivity (true positive rate) and specificity (true negative rate) combine with disease prevalence to give the post-test probability. It is used in forensic science to weigh evidence, in spam filters to update probability an email is spam given features, and in machine learning for naive Bayes classifiers (which assume conditional independence of features given the class).

Practical calculation tips
Use a table listing each hypothesis, its prior, likelihood P(E|Hi) and the product prior×likelihood. Sum these products to get P(E). Then divide each product by the sum to obtain posteriors. Showing the table in exams clarifies work and reduces arithmetic errors. For multi-stage processes, drawing a tree with branch weights equal to prior×likelihood makes the denominator and numerators visually clear.

📌 Examples
  • Medical test: compute probability of disease given a positive test using sensitivity, specificity and prevalence.
  • Box problem: three boxes with different coloured balls; after drawing a red ball, find the probability it came from a specific box.
  • Machine defects: given an item fails a quality check, compute probability it came from a particular machine with known defect rates.
  • Spam filter: given a keyword appears, update probability that an email is spam.
🧮 Formulas
  1. \[Law of total probability: P(E) = Σ_{k=1}^n P(E|H_k) P(H_k)\]
  2. \[Bayes' theorem: P(H_i|E) = P(E|H_i) P(H_i) / Σ_{k=1}^n P(E|H_k) P(H_k)\]
📊 Visual ideas
Table layout showing hypotheses, likelihoods and weighted terms for Bayes' calculation
Tree diagram separating hypotheses then outcomes to visualize numerator and denominator
Bar chart showing prior and posterior probabilities for comparison
🇮🇳6

Independence of events

Formal definition of independence
Two events A and B are independent if knowing that one occurred does not change the probability of the other. Formally A and B are independent if P(A ∩ B) = P(A) P(B). Equivalently, if P(B) > 0, independence means P(A|B) = P(A). This definition extends to random variables and collections of events as well.

Pairwise vs mutual independence
For three events A, B, C, pairwise independence means each pair is independent: P(A∩B)=P(A)P(B), P(B∩C)=P(B)P(C), and P(A∩C)=P(A)P(C). Mutual (or complete) independence additionally requires P(A∩B∩C)=P(A)P(B)P(C). Mutual independence is stronger than pairwise independence; three events can be pairwise independent but not mutually independent. Always check higher-order intersections when more than two events are involved.

Consequences and useful facts
If A and B are independent then complements are also independent: A' and B are independent, A and B' are independent, and A' and B' are independent. For independent events the probability of intersections factorises, which greatly simplifies calculations for sequences of independent trials: P(∩_{i=1}^n A_i) = ∏_{i=1}^n P(A_i).

Testing independence in problems
To test independence compute P(A∩B) and compare with P(A)P(B). For empirical data we might test independence statistically, but in many textbook problems independence is assumed by symmetry or process design: e.g., outcomes of different fair coin tosses are independent; outcomes of draws without replacement are generally dependent because the first draw alters the pool.

Cautionary examples
Independence is a modelling assumption that must be justified. For example, the events 'student studies hard' and 'scores high' are not independent in practice. Also, independence of indicators does not imply independence of functions of those indicators unless special conditions hold. Remember that zero covariance (or correlation) does not imply independence except in special families like the joint normal distribution.

Problem-solving tips
Explicitly state when independence is assumed. In calculations, when independence holds, replace conditional probabilities by unconditional ones: P(A|B)=P(A). This reduces complexity, especially for sums of independent random variables where variances also add. If in doubt, compute P(A∩B) directly from the model to check whether it equals P(A)P(B).

📌 Examples
  • Two fair coin tosses: events 'first head' and 'second head' are independent.
  • Drawing two cards without replacement: events 'first card is ace' and 'second card is ace' are dependent.
  • Rolling two dice: events 'first die shows 6' and 'sum is 10' are not independent; check P(A∩B) vs P(A)P(B).
  • Three lights in separate circuits with independent failure probabilities: joint survival = product of individual survival probabilities.
🧮 Formulas
  1. Independence: P(A ∩ B) = P(A) P(B)
  2. For mutual independence of A,B,C: P(A∩B∩C)=P(A)P(B)P(C) and pairwise independence holds
📊 Visual ideas
Venn diagram illustrating independent events where P(A∩B) equals product area proportionally
Tree diagram for independent successive trials with branch probabilities multiplied
Comparison table: dependent vs independent examples
🎲7

Discrete random variables and probability mass functions (PMF)

Random variable concept
A random variable is a rule that assigns a numerical value to each outcome of an experiment. Discrete random variables take values from a countable set such as {0,1,2,...} or a finite set. We use capital letters like X to denote random variables and lowercase x to denote their values.

Probability mass function (PMF)
The PMF p_X(x) = P(X = x) gives the probability that X equals a particular value x. By definition p_X(x) ≥ 0 for all x and the sum over all possible x equals 1: Σ_x p_X(x) = 1. The PMF fully describes the distribution of a discrete random variable and allows computation of any probability by summation.

Support
The support of X is the set of x values with p_X(x) > 0. Listing the support is key in calculations; probabilities are sums over the support. For example, for the number of heads in three coin tosses, support = {0,1,2,3}.

Calculating probabilities from PMF
To find P(a ≤ X ≤ b) sum p_X(x) over x = a to b. For events like ‘X is even’, sum p_X(x) over all even x in the support. When dealing with joint discrete variables (X,Y), the joint PMF p_{X,Y}(x,y) replaces the single-variable PMF and must satisfy non-negativity and total sum one.

Representations
PMFs are often presented in tables for small supports, or by formulas for common distributions (Binomial, Poisson, Geometric). Plotting a bar chart (probability histogram) of p_X(x) helps visualise concentration of probability and identify modes and skewness.

Why PMFs matter
PMFs allow calculation of expectations, variances and probabilities of complex events. Understanding PMFs is the first step toward joint distributions, marginalisation, conditioning and transformations of random variables. A clear PMF also helps check model assumptions: the probabilities should sum to one and reflect known constraints.

Practical tips
Always state the support explicitly, check normalization, and use summation notation carefully. When asked for a distribution of a function of X, either compute the PMF of the new variable by summing pre-image probabilities or use expectation identities if only moments are required.

📌 Examples
  • Let X be number of heads in 3 fair coin tosses: p(0)=1/8, p(1)=3/8, p(2)=3/8, p(3)=1/8.
  • Discrete PMF for number of defective items in a sample from a large batch modelled by Binomial.
  • Joint PMF for two dice: p(1,1)=1/36, etc.; marginal for first die obtained by summing over second.
  • Geometric PMF: probability waiting time until first success with success probability p.
🧮 Formulas
  1. p_X(x) = P(X = x), p_X(x) ≥ 0, Σ_x p_X(x) = 1
  2. \[P(a ≤ X ≤ b) = Σ_{x=a}^b p_X(x)\]
  3. \[For joint PMF p_{X,Y}(x,y) ≥ 0 and Σ_{x,y} p_{X,Y}(x,y)=1\]
📊 Visual ideas
Bar chart (probability histogram) of PMF for a Binomial(3,1/2)
Grid table representing joint PMF for two dice showing p(x,y)=1/36
Support list showing values with non-zero probability
🔢8

Expectation, variance and standard deviation

Expectation as average
The expectation (or mean) of a discrete random variable X, denoted E[X], is the long-run average value of X if the experiment were repeated many times. It is calculated as the weighted sum of values with their probabilities: E[X] = Σ_x x p_X(x). Expectation is linear: E[aX + b] = aE[X] + b and E[X + Y] = E[X] + E[Y] for any X and Y (linearity holds even if X and Y are dependent).

Variance measures spread
Variance Var(X) measures how much X typically deviates from its mean. It is defined as Var(X) = E[(X − μ)^2] where μ = E[X]. For computation it is often easier to use Var(X) = E[X^2] − (E[X])^2, where E[X^2] = Σ x^2 p_X(x). Variance has squared units; standard deviation σ = √Var(X) returns to original units and is often used to describe typical deviation.

Properties and useful rules
For a constant c, Var(c)=0. For a random variable X and constant a, Var(aX)=a^2 Var(X). If X and Y are independent then Var(X+Y)=Var(X)+Var(Y). If dependent, Var(X+Y)=Var(X)+Var(Y)+2Cov(X,Y) where covariance measures linear co-movement. Expectation of functions: E[g(X)] = Σ g(x) p_X(x) allows computation of moments and transforms.

Interpretation of moments
Mean provides a measure of centre while variance and standard deviation indicate dispersion. A small variance means values cluster near the mean; a large variance means values spread out. For skewed distributions mean and median differ; both should be reported when distribution is asymmetric.

Computational shortcuts
Use linearity to break E[X] into sums of simpler expectations when X is a sum of indicators. For example, the mean of a Binomial(n,p) equals sum of n Bernoulli(p) expectations: np. For variance, sum variances of independent Bernoulli variables to get np(1−p). These shortcuts simplify many exam problems and reduce arithmetic work.

Checking results
Variance must be non-negative; if a computed variance is negative there is an algebraic error. Compare computed mean with typical values in the support to see if it is reasonable. When combining variables, check units and signs on covariance terms.

📌 Examples
  • Bernoulli(p): E[X] = p, Var(X) = p(1−p).
  • For X = number of heads in 3 fair coins: E[X] = 3×1/2 = 1.5, Var(X)=3×(1/2)(1/2)=0.75.
  • If X takes values 0,1,2 with p 0.2,0.5,0.3 compute E[X] and Var(X] by direct sums.
  • Sum of independent Bernoulli variables yields Binomial mean and variance.
🧮 Formulas
  1. E[X] = Σ x p_X(x)
  2. E[g(X)] = Σ g(x) p_X(x)
  3. Var(X) = E[(X − μ)^2] = E[X^2] − (E[X])^2
  4. Linearity: E[X+Y] = E[X] + E[Y]
  5. Var(aX) = a^2 Var(X)
📊 Visual ideas
Bar chart comparing PMF and mean location shown as a vertical line
Illustration of deviations (x−μ)^2 for each value in a small PMF
Schematic showing variance accumulation for sum of independent variables
🔢9

Bernoulli and Binomial distribution

Bernoulli trial basics
A Bernoulli trial is a single experiment with exactly two outcomes: success with probability p, and failure with probability q = 1 − p. The Bernoulli random variable X takes value 1 for success and 0 for failure. It is the simplest discrete distribution. Expectation E[X] = p and variance Var(X) = p(1 − p). Many problems build on Bernoulli trials by repeating them.

Binomial distribution from repeated trials
If n independent Bernoulli trials are performed, each with success probability p, the number of successes X follows the Binomial(n,p) distribution. The PMF is P(X = k) = C(n,k) p^k (1 − p)^{n − k} for k = 0,1,...,n. The combination term C(n,k) counts the unordered ways to choose which k trials are successes; p^k accounts for probabilities of those successes and (1−p)^{n−k} for the failures.

Mean and variance and intuition
Binomial mean E[X] = np because the expectation of a sum of independent Bernoulli variables adds up. Variance Var(X) = np(1 − p) follows from summing variances of independent Bernoullis. These results show how the expected number of successes scales with trials and how variability depends on both n and p.

Applications and model assumptions
Binomial models apply when: (1) the number of trials n is fixed, (2) trials are independent, (3) each trial has identical success probability p, and (4) each trial outcome is binary. Examples include number of heads in coin tosses, number of defective items in a sample when sampling with replacement from a large population, and number of students passing a test if all attempts are independent with the same success chance.

Calculations and approximations
For moderate n and p, compute probabilities directly using the PMF or tables. For large n, use normal approximation with mean np and variance np(1−p) after continuity correction when appropriate. For small p and large n such that λ = np is moderate, the Poisson approximation can be used: Binomial(n,p) ≈ Poisson(λ).

Practical exam advice
When solving Binomial problems, define X clearly, state n and p, and show substitution into the PMF for exact probabilities. For cumulative probabilities show the required sum. Use linearity of expectation for mean problems and variance sum rules to compute variances efficiently. State model assumptions to justify using the binomial distribution.

📌 Examples
  • Probability of exactly 2 successes in 5 trials with p=0.3: C(5,2)(0.3)^2(0.7)^3.
  • Mean number of heads in 10 fair coin tosses: 10×0.5 = 5.
  • Probability of no defective items in sample of 8 if p=0.02: (0.98)^8.
  • Use table or calculator to find cumulative Binomial probabilities for n=20, p=0.1.
🧮 Formulas
  1. Bernoulli: P(X=1)=p, P(X=0)=1−p, E[X]=p, Var(X)=p(1−p)
  2. \[Binomial PMF: P(X=k)=C(n,k) p^k (1−p)^{n−k}\]
  3. Binomial mean: E[X]=np, variance: Var(X)=np(1−p)
📊 Visual ideas
Bar chart of Binomial PMF for n=5, p=0.5 showing symmetry
Probability mass histogram for skewed Binomial with n=10, p=0.2
Sketch showing approximation from Binomial to Normal for large n
🔢10

Geometric and negative binomial distributions

Geometric distribution — waiting time to first success
The geometric distribution models the number of independent Bernoulli trials needed to obtain the first success, when each trial has the same success probability p. There are two conventions: one counts the trial number of the first success (support {1,2,...}) with PMF P(X=k) = (1−p)^{k−1} p; another counts the number of failures before the first success (support {0,1,2,...}) with PMF P(Y=k) = (1−p)^k p. Clarify which convention is used in a question.

Key properties
Geometric distribution has the memoryless property: P(X > s+t | X > s) = P(X > t). This means that once you have observed s failures, the distribution of additional waiting time is the same as starting new. The mean waiting time (trial-number convention) is E[X] = 1/p and variance Var(X) = (1−p)/p^2. These results reflect how rarer successes (small p) produce larger expected waiting times and larger variability.

Negative binomial: generalising to r successes
The negative binomial distribution generalises the geometric by modelling the number of trials needed to achieve r successes. If X denotes the trial number on which the r-th success occurs, then for k ≥ r, P(X=k) = C(k−1, r−1) p^r (1−p)^{k−r}. Intuitively, choose r−1 successes among the first k−1 trials and require the k-th trial to be a success. When r = 1 this reduces to the geometric distribution. The mean is E[X] = r/p and variance Var(X) = r(1−p)/p^2.

Applications and modelling
Use geometric or negative binomial models for waiting-time problems: the number of trials until first success (geometric) or until r-th success (negative binomial). Examples include number of customers until first sale, number of inspections until r defective items found, and number of trials until r successes in reliability testing. Independence and constant success probability across trials are key assumptions.

Computational tips
Be careful whether the question asks for the trial number containing the r-th success or the number of failures before the r-th success; choose the appropriate PMF accordingly. Use the memoryless property to simplify conditional probability calculations for geometric distributions. For expected values, derive by summing or using known formulas; for variance use the standard expressions to save algebra time.

Exam preparation advice
Practice small examples by listing outcomes to build intuition. Show the binomial coefficient reasoning in answers: C(k−1,r−1) counts placements of previous successes. Writing the PMF and stating support and conventions clearly earns marks and prevents misunderstanding in multi-part questions.

📌 Examples
  • Fair coin: probability the first head appears on third toss = (1/2)^3 = 1/8.
  • Probability that the second success occurs on the 5th trial with p=0.3: C(4,1) (0.3)^2 (0.7)^3.
  • Expected waiting time until first success when p=0.2 is 1/0.2 = 5 trials.
  • Use memoryless property: P(X>5 | X>2) = P(X>3) for geometric X.
🧮 Formulas
  1. \[Geometric (trial number): P(X=k) = (1−p)^{k−1} p\]
    \[k = 1,2,...\]
  2. Geometric mean: E[X] = 1/p, Var(X) = (1−p)/p^2
  3. \[Negative binomial: P(X=k) = C(k−1,r−1) p^r (1−p)^{k−r}\]
    \[k ≥ r\]
  4. Negative binomial mean: E[X] = r/p, Var(X) = r(1−p)/p^2
📊 Visual ideas
Bar chart of geometric PMF showing decreasing probabilities
Illustration of negative binomial PMF for r=2, p=0.3
Timeline diagram marking trials and success counts for geometric process
🔢11

Poisson distribution and Poisson approximation

Poisson distribution basics
The Poisson distribution models the number of events that occur in a fixed interval of time or space under specific assumptions: events occur independently, the average rate (mean number of events) λ is constant over the interval, and two events cannot occur exactly simultaneously in an infinitesimally small subinterval. The PMF is P(X=k) = e^{−λ} λ^k / k! for k = 0,1,2,... The parameter λ is both the mean and variance, which is a distinctive property.

When to use Poisson model
Use the Poisson model for rare events in a large population or when counting occurrences in time or space, for example, number of calls to a helpline per hour, number of accidents at an intersection per month, or number of defects per unit length. Key is approximate independence and a roughly constant average rate.

Poisson as limit of Binomial
The Poisson distribution arises as a limiting case of the Binomial(n,p) when n is large and p is small with np = λ fixed. In practice, if n ≥ 50 and p ≤ 0.1 (a rule of thumb) and np ≤ about 10–20, the Poisson approximation is often reasonable. This approximation greatly simplifies calculations because factorials and combinations in the Binomial formula are replaced by the simple Poisson PMF.

Properties and combinations
Poisson variables have additivity: if X ∼ Poisson(λ1) and Y ∼ Poisson(λ2) are independent then X + Y ∼ Poisson(λ1 + λ2). This property is useful for modelling counts coming from independent sources. The equality of mean and variance allows a quick check: if sample variance is approximately equal to sample mean, a Poisson model may fit; if variance is much larger, overdispersion suggests another model is needed.

Computational advice
Compute probabilities using the PMF or cumulative sums for tail probabilities. For P(X ≥ k) use 1 − P(X ≤ k−1). For moderate λ, tables or calculators help. When approximating Binomial by Poisson, compute λ = np and then use Poisson PMF values. When using Poisson to approximate real data, check if event independence and constant rate assumptions are reasonable.

Exam hints
State assumptions clearly when using the Poisson model. In approximation questions show calculation of λ and justify why approximation is appropriate. For compound processes, use additivity to combine rates and compute probabilities for total counts.

📌 Examples
  • Average λ=2 calls per hour: probability of 3 calls in an hour = e^{−2} 2^3/3!.
  • Approximate Binomial(n=1000,p=0.002) by Poisson with λ=2.
  • Mean and variance of Poisson(λ=5) are both 5.
  • Use Poisson to model number of typos per page if typos are rare and independent.
🧮 Formulas
  1. \[Poisson PMF: P(X=k) = e^{−λ} λ^k / k!\]
    \[k = 0,1,2,...\]
  2. Mean = Variance = λ
  3. Poisson approximation: Binomial(n,p) ≈ Poisson(λ) with λ = np when n large, p small
📊 Visual ideas
Bar chart of Poisson PMF for λ=2 showing mode near floor(λ)
Comparison plots of Binomial and Poisson PMFs for moderate λ showing close match
Timeline with Poisson counts in disjoint intervals illustrating independent increments
🔢12

Joint distributions and marginal, conditional PMFs

Joint PMF for pairs
When two discrete random variables X and Y are considered together, their behaviour is described by the joint probability mass function p_{X,Y}(x,y) = P(X = x, Y = y). The joint PMF must satisfy p_{X,Y}(x,y) ≥ 0 for all (x,y) and Σ_{x,y} p_{X,Y}(x,y) = 1. A joint PMF captures dependencies between X and Y and is the starting point for computing marginals, conditionals, expectations and covariances.

Marginal PMFs
Marginalising means summing out the other variable to get the distribution of one variable alone: p_X(x) = Σ_y p_{X,Y}(x,y) and p_Y(y) = Σ_x p_{X,Y}(x,y). Marginals are useful when only one variable's distribution is needed. If the joint PMF is given in a table, summing rows or columns gives marginals immediately.

Conditional PMFs
The conditional PMF of X given Y=y is p_{X|Y}(x|y) = p_{X,Y}(x,y) / p_Y(y) when p_Y(y) > 0. This expresses the distribution of X when it is known that Y took the value y. Conditional PMFs are indispensable in sequential or dependent modelling and are the discrete analogue of conditional densities in continuous cases.

Independence and factorisation
X and Y are independent if and only if p_{X,Y}(x,y) = p_X(x) p_Y(y) for all x,y. Independence implies that knowing Y gives no information about X and vice versa. In independence checks compute marginals and see if their product recovers the joint; a counterexample shows dependence.

Working with joint distributions
Tables provide a convenient format when supports are small. For larger supports, provide formulas or use indicator sums. Joint distributions allow computation of joint expectations E[g(X,Y)] = Σ_{x,y} g(x,y) p_{X,Y}(x,y), marginal expectations, and conditional expectations E[X|Y=y] = Σ_x x p_{X|Y}(x|y).

Applications
Joint PMFs model paired experiments such as two dice, number of successes in two groups, or correlated counts. They lead directly to covariance and correlation calculations and to computing distributions of sums via convolution. In exams, laying out a clear joint-table, computing marginals and then conditionals step-by-step demonstrates method and avoids algebraic errors.

📌 Examples
  • Two dice: joint PMF p(i,j)=1/36, marginals uniform on 1–6, independence holds.
  • X = number of heads in two tosses, Y = indicator of first toss head; compute joint table and conditional distributions.
  • Given joint PMF in a small table, compute p_X(0), p_Y(1) and p_{X|Y}(x|y).
  • Check independence by verifying p_{X,Y}(x,y) = p_X(x)p_Y(y) for all cells.
🧮 Formulas
  1. \[p_{X,Y}(x,y) = P(X=x\]
    \[Y=y)\]
  2. \[Marginal: p_X(x) = Σ_y p_{X,Y}(x,y)\]
    \[p_Y(y) = Σ_x p_{X,Y}(x,y)\]
  3. \[Conditional: p_{X|Y}(x|y) = p_{X,Y}(x,y)/p_Y(y) (when p_Y(y)>0)\]
  4. \[Independence: p_{X,Y}(x,y) = p_X(x) p_Y(y) for all x,y\]
📊 Visual ideas
2D table of joint PMF with rows as X and columns as Y
Heatmap-style shading of joint PMF to show concentration of probability
Tree diagram decomposing joint into conditional and marginal factors
🔢13

Covariance and correlation

Covariance: definition and meaning
Covariance measures the tendency of two random variables X and Y to vary together. It is defined as Cov(X,Y) = E[(X − E[X])(Y − E[Y])] = E[XY] − E[X]E[Y]. A positive covariance suggests that when X is above its mean Y tends also to be above its mean; a negative covariance suggests opposite movement. Covariance is measured in units that are the product of units of X and Y, so its magnitude is hard to interpret directly.

Correlation: standardised covariance
Correlation is a dimensionless measure obtained by dividing covariance by the product of standard deviations: Corr(X,Y) = Cov(X,Y) / (σ_X σ_Y). Correlation lies between −1 and 1. A correlation of 1 or −1 indicates a perfect linear relationship while correlation 0 indicates no linear association (but not necessarily independence).

Properties and algebra
Cov(X,X) = Var(X). For constants a,b,c,d, Cov(aX+b, cY+d) = ac Cov(X,Y). If X and Y are independent, then Cov(X,Y) = 0; however the converse is not always true. Variance of a sum uses covariance: Var(X+Y) = Var(X) + Var(Y) + 2Cov(X,Y). For many independent components, covariances vanish and variances simply add.

Computation from joint PMF
To compute Cov(X,Y) from a joint PMF, find E[X], E[Y], and E[XY] where E[XY] = Σ_{x,y} xy p_{X,Y}(x,y). Then subtract E[X]E[Y] from E[XY]. For discrete small-support problems a table helps compute E[X], E[Y], and E[XY] cleanly by summing rows and columns with products weighted by probabilities.

Interpretation and limits
Correlation near ±1 indicates strong linear association but does not capture nonlinear relationships. A correlation of 0 means no linear association; variables may still be related nonlinearly. Covariance sign indicates direction of linear association; magnitude depends on units. Use correlation to compare association strength across different variable pairs.

Practical tips
When asked for covariance or correlation in exam problems, show calculations of E[X], E[Y], E[XY] explicitly and then compute Cov and Corr. State whether independence is assumed and use Var(X+Y) formulas if helpful. For sample data, note the difference between population covariance and sample covariance conventions but for theoretical PMFs use population definitions given above.

📌 Examples
  • For two dice X and Y independent: Cov(X,Y)=0, Corr(X,Y)=0.
  • Joint distribution where Y = 2X: Cov(X,Y) = 2 Var(X) and Corr = 1 or −1 depending on sign.
  • Compute Cov for small joint PMF table by finding E[X], E[Y], and E[XY].
  • Use Var(X+Y) = Var(X)+Var(Y)+2Cov(X,Y) to find Cov if variances and Var(X+Y) known.
🧮 Formulas
  1. Cov(X,Y) = E[XY] − E[X]E[Y]
  2. Corr(X,Y) = Cov(X,Y) / (σ_X σ_Y)
  3. Var(X+Y) = Var(X) + Var(Y) + 2Cov(X,Y)
📊 Visual ideas
Scatter plot for discrete pairs (x,y) with point sizes weighted by joint probability
Line illustrating perfect positive linear relationship for Corr=1
Table showing computations of E[X], E[Y], E[XY] used to get covariance
🔢14

Functions of discrete random variables and transformations

Why transform random variables?
Often we are interested not in X itself but in a function Y = g(X) such as Y = 2X + 1, Y = X^2, or Y = I{X > 0} (an indicator). Finding the distribution of Y or its expectation is a common task. Methods differ depending on whether g is one-to-one or many-to-one.

One-to-one transforms
If g is one-to-one on the support of X, then the PMF of Y is straightforward: p_Y(y) = p_X(g^{-1}(y)). Values map bijectively so probabilities transfer directly. Expectations transform by substitution: E[Y] = E[g(X)] = Σ_x g(x) p_X(x). This avoids constructing the PMF of Y explicitly when only the expectation is needed.

Many-to-one transforms
If multiple x values map to the same y, sum their probabilities: p_Y(y) = Σ_{x: g(x)=y} p_X(x). For example, if Y = X mod 2, then p_Y(0)=Σ_{even x} p_X(x). Carefully list pre-images of each y value and sum corresponding probabilities. This method scales well when the support of X is moderate and g compresses values.

Expectations of functions
General rule: E[g(X)] = Σ_x g(x) p_X(x) for a discrete X. Use this to compute moments like E[X^2] or functions like E[1/(1+X)] without finding full PMF of transformed variable. For joint variables, E[g(X,Y)] = Σ_{x,y} g(x,y) p_{X,Y}(x,y).

Transforms for sums and convolution
When Y = X + Z and X and Z are independent, the PMF of the sum is the convolution p_Y(s) = Σ_x p_X(x) p_Z(s − x). Convolution combines distributions and is used to find PMFs of totals of independent random variables, such as total number of successes across different groups.

Variance under transformation
For linear transforms Y=aX+b, Var(Y) = a^2 Var(X). For nonlinear transforms apply Var(Y) = E[Y^2] − (E[Y])^2, computing E[Y^2] by summation. Sometimes approximations or Taylor expansions (beyond Class 12) are used to approximate variance of nonlinear transforms, but direct summation suffices for discrete finite supports.

Practical exam tips
When asked for PMF of Y write the mapping clearly, list each y value and its pre-image set, and compute p_Y(y) by summation. For expectations of g(X) state and use E[g(X)] = Σ g(x) p_X(x). For sums, show a small convolution table or use generating functions if allowed, and always state independence when using convolution simplifications.

📌 Examples
  • If X is Bernoulli(p) and Y = 2X+1, then P(Y=1)=1−p, P(Y=3)=p and E[Y]=2p+1.
  • Let X take values 0,1,2 with probabilities; Y = X^2 then p_Y(0)=p_X(0), p_Y(1)=p_X(1), p_Y(4)=p_X(2).
  • Compute E[X^2] from p_X and then Var(X)=E[X^2]−(E[X])^2 for a discrete X.
  • For joint variables, find PMF of sum S = X+Y by convolution: p_S(s)=Σ_x p_{X,Y}(x,s−x).
🧮 Formulas
  1. \[If Y = g(X)\]
    \[p_Y(y) = Σ_{x: g(x)=y} p_X(x)\]
  2. E[g(X)] = Σ_x g(x) p_X(x)
  3. \[For sum of independent discrete variables\]
    \[convolution: p_{X+Y}(s)=Σ_x p_X(x)p_Y(s−x)\]
📊 Visual ideas
Mapping diagram showing values of X mapping to values of Y with arrow widths proportional to probabilities
Table showing calculation of p_Y by summing p_X over pre-images
Convolution illustration for sum of two discrete PMFs using sliding-sum visualization
🔢15

Sums of random variables and convolution

Distribution of a sum
The distribution of the sum S = X + Y of two discrete random variables is found by summing the joint probabilities of all pairs (x,y) such that x + y = s. If X and Y are independent, the formula simplifies to convolution of their PMFs: p_S(s) = Σ_x p_X(x) p_Y(s − x). Convolution is a discrete sliding-sum that accumulates probability mass along diagonals in the joint probability table.

When independence helps
Independence is key: convolution p_S(s) = Σ_x p_X(x) p_Y(s − x) holds when X and Y are independent. If dependent, you must use the joint PMF: p_S(s) = Σ_x p_{X,Y}(x, s−x). For many practical problems variables are independent (separate experiments) and convolution is the standard tool.

Moments of sums
Expectations add: E[X+Y] = E[X] + E[Y]. For independent variables variances add too: Var(X+Y) = Var(X) + Var(Y). For dependent variables add covariance: Var(X+Y) = Var(X) + Var(Y) + 2Cov(X,Y). These rules are frequently used to compute means and variances of totals without computing full distribution.

Examples and special cases
Sums of independent Binomial variables with the same success probability p produce another Binomial with parameter equal to the sum of the n's: Binomial(n1,p) + Binomial(n2,p) = Binomial(n1+n2,p). Similarly, sums of independent Poisson(λ1) and Poisson(λ2) are Poisson(λ1+λ2). The sum of independent Bernoulli variables is Binomial. Such closure properties are very useful in modelling and problem solving.

Computational approach
To compute p_S(s) by hand for small supports, form a table of p_X(x) along rows and p_Y(y) along columns, fill the product table p_X(x)p_Y(y) if independent, and sum the products along diagonals where x+y equals s. This tabular method reduces errors and clarifies the required summations.

Generating functions
Probability generating functions turn convolution into multiplication: G_{X+Y}(s) = G_X(s) G_Y(s) for independent non-negative integer-valued X and Y. While PGFs are advanced, they offer algebraic shortcuts for sums of many independent variables and are introduced elsewhere in the unit.

Exam tips
State independence before using convolution. For sums of many identical independent components use moment formulas to get mean and variance quickly. When asked for full PMF do the diagonal sums carefully and show the table or algebraic convolution steps to earn method marks.

📌 Examples
  • Sum of two independent fair dice: distribution for sums 2–12 via convolution of uniform PMFs.
  • Sum of independent Binomial(n1,p) and Binomial(n2,p) is Binomial(n1+n2,p).
  • Sum of independent Poisson(λ1) and Poisson(λ2) is Poisson(λ1+λ2).
  • Convolution table for X∈{0,1} and Y∈{0,1,2} to compute distribution of S=X+Y.
🧮 Formulas
  1. \[Convolution: p_{X+Y}(s) = Σ_x p_X(x) p_Y(s−x) (for independent X,Y)\]
  2. E[X+Y] = E[X] + E[Y]
  3. Var(X+Y) = Var(X) + Var(Y) + 2Cov(X,Y)
📊 Visual ideas
Table showing products p_X(x)p_Y(y) and diagonal sums for convolution
Bar charts comparing PMFs of X, Y and their sum S
Illustration of addition diagonals on a joint probability grid
🔢16

Limit theorems: Law of Large Numbers and CLT (conceptual)

Law of Large Numbers (LLN) — stability of averages
The law of large numbers says that the sample average of many independent identically distributed random variables converges to the common expected value as the number of observations increases. Informally, if you repeat an experiment many times and compute the average of outcomes, this average will be close to the theoretical mean with high probability when the sample size is large. For example, the proportion of heads in many coin tosses will be close to 0.5. LLN explains why frequencies stabilise and supports empirical estimation of probabilities.

Types of convergence (brief)
There are technical forms of LLN: weak and strong law. The weak law (sufficient for most class 12 purposes) states convergence in probability; the strong law says convergence almost surely, a stronger statement. For examinations you need the intuitive statement: averages settle down to the expected value for large samples, provided independence and identical distribution with finite mean hold.

Central Limit Theorem (CLT) — shape of sums
The central limit theorem says that the sum (or average) of many independent identically distributed random variables with finite mean μ and variance σ^2, when properly centred and scaled, approximately follows a normal distribution for large sample sizes. Specifically, (Σ_{i=1}^n X_i − nμ) / (σ√n) tends toward the standard normal distribution as n grows. CLT explains why normal distributions appear so widely in nature and justifies normal approximations for sums and sample means.

Applications and approximations
CLT is used to approximate Binomial(n,p) by Normal(np, np(1−p)) when n is large and p not near 0 or 1. Use continuity correction for discrete-to-continuous approximation: P(X ≤ k) ≈ Φ((k + 0.5 − μ)/σ). For averages, use Normal(μ, σ^2/n) to find approximate probabilities about sample means. These approximations simplify calculations and provide intuition for sampling variability.

Limitations and conditions
Both LLN and CLT require independence (or weak dependence) and finite variance. CLT is asymptotic — how large n must be depends on skewness of the original distribution. For heavy-tailed distributions or dependent data, approximations may be poor and different limit results may apply. Also CLT speaks about distributional shape, not exact probabilities for small n.

Practical significance
LLN gives practical confidence that empirical averages approximate true expectations as sample size grows. CLT allows use of normal tools (confidence intervals, hypothesis tests) as approximations in many applied problems. For exam questions demonstrate understanding by stating assumptions, showing standardisation steps, and applying normal approximations only when conditions are reasonable.

📌 Examples
  • Simulate coin tosses: proportion of heads in 1000 tosses will be close to 0.5 by LLN.
  • Approximate Binomial(100,0.5) by Normal with mean 50 and variance 25 for probability computations.
  • Sum of many i.i.d. Uniform(0,1) variables tends towards normal shape as count increases.
  • Use continuity correction: P(X ≤ k) ≈ Φ((k+0.5 − μ)/σ) for discrete X approximated by Normal.
📊 Visual ideas
Histogram of sample means for increasing sample sizes showing convergence to normal
Bell curve overlaying normalized sum histogram demonstrating CLT
Plot showing sample proportion vs number of trials illustrating LLN
🎲17

Modelling with probability: examples from real life

Translating reality into a model
Modelling with probability means choosing a mathematical structure that captures the essential randomness of a real situation. Start by identifying outcomes, deciding whether trials are independent, whether events are rare, and whether order matters. These choices guide selection among Binomial, Poisson, geometric or joint-distribution models. Good modelling balances simplicity and realism so answers are interpretable and calculations are feasible.

Quality control and manufacturing
In manufacturing, the number of defective items in samples can often be modelled by a Binomial distribution if sampling is with replacement or the batch is large. When defects are rare, Poisson approximation simplifies calculations. Models help set acceptance criteria for lots, estimate defect rates and compute risk of shipping defective batches. Clearly state assumptions: independence of defects and constant defect probability are typical but must be justified.

Reliability and waiting times
Geometric and negative binomial distributions model waiting times until one or several failures or successes. Poisson processes model arrival rates: calls to a call centre, emails per hour, or decay events. Use these to estimate expected waiting time, probability of zero arrivals, or to schedule resources. The key is identifying stationarity (constant rate) and independence of increments for Poisson models.

Medical testing and diagnostics
Bayes' theorem is central in diagnostics: test results update prior probabilities of disease. Sensitivity and specificity combine with disease prevalence to produce posterior probability. Model carefully to include false positives and negatives; communicate results in percentages or natural frequencies to avoid misunderstandings. In screening programmes small prevalence can lead to many false positives even with high test accuracy.

Games, risk and decision-making
Probability models are used to compute expected gains or losses in games and investments. Expectation gives fair game values and variance measures risk. Understanding independence prevents common fallacies like gambler's fallacy; randomness produces streaks but these do not change underlying probabilities in independent trials.

Checking models against data
Always compare model predictions (mean, variance, shape) with observed data. If sample variance greatly exceeds mean for count data, Poisson may be unsuitable (overdispersion) and a different model is needed. Simple diagnostic checks and plotting empirical counts against theoretical PMFs help detect model mismatch. Refine models by relaxing independence or allowing varying rates when necessary.

Communication and assumptions
State model assumptions explicitly in answers, describe the chosen distribution and justify why it fits, compute required probabilities, and discuss limitations. Good practice in exams and real life is to present both numeric results and a brief interpretation in context.

📌 Examples
  • Modelling number of emails per hour as Poisson and testing fit against observed counts.
  • Using Binomial model to evaluate whether a new drug improves recovery rate in clinical trials.
  • Applying Bayes' theorem to compute disease probability after a positive test given known sensitivity and prevalence.
  • Estimating probability of at least one defective in a sampled lot using Binomial or Poisson approximation.
🧮 Formulas
  1. Use appropriate PMFs (Binomial, Poisson, Geometric) depending on model assumptions
  2. Compare sample mean and variance to theoretical mean and variance as model check
📊 Visual ideas
Bar chart comparing observed counts to Poisson PMF predicted counts
Flow diagram for model selection: ask about independence, identical trials, rarity
ROC-style schematic for diagnostic test: sensitivity and specificity vs prevalence
🧬18

Probability generating functions (PGF) — introduction

Motivation for generating functions
Probability generating functions (PGFs) provide a compact algebraic representation of the PMF of a non-negative integer-valued random variable. The PGF for X is G_X(s) = E[s^X] = Σ_{k=0}^∞ p_X(k) s^k where p_X(k)=P(X=k). PGFs encode the entire distribution in a power series and turn convolution (sums of independent variables) into multiplication. They are powerful tools for deriving moments and studying sums of independent random variables.

Basic properties
Key properties include G_X(1)=1 because probabilities sum to 1. The derivative at s=1 gives the first moment: G'_X(1) = E[X]. Higher derivatives give factorial moments: G''_X(1) = E[X(X−1)], and so on. These relations allow moments to be computed by differentiation without summing over the PMF directly, which can be efficient for distributions with closed-form PGFs.

Convolution becomes multiplication
If X and Y are independent non-negative integer-valued variables, then the PGF of their sum is the product: G_{X+Y}(s) = G_X(s) G_Y(s). This property mirrors how characteristic functions and moment-generating functions behave and simplifies finding distributions of sums: multiply PGFs and, if needed, expand the resulting power series to read off coefficients as probabilities.

Common PGFs
Many standard distributions have simple PGFs: Bernoulli(p) has G(s)=1−p+ps; Binomial(n,p) has G(s)=(1−p+ps)^n by independence of n Bernoulli trials; Poisson(λ) has G(s)=exp(λ(s−1)). These closed forms allow quick derivation of means and variances: differentiate and evaluate at s=1. For example differentiating G(s) for Poisson gives E[X]=λ and Var(X)=λ directly.

Applications and limits
PGFs are especially useful when dealing with sums of many independent variables, branching processes, or deriving distributions of compound sums. In Class 12, use PGFs to show additivity of Poisson and to derive Binomial moments. While full inversion from PGF to PMF requires series expansion, for many exam problems it suffices to present PGF identities and extract moments.

Practice tips
Compute PGFs for simple distributions, practice differentiating to get E[X] and E[X(X−1)], and use PGF multiplication to combine independent distributions. In answers, state assumptions (non-negative integer-valued and independence) before using PGF properties to avoid misuse.

📌 Examples
  • Compute PGF of Binomial(n,p): (1−p+ps)^n and derive E[X]=np by differentiation.
  • For independent Poisson(λ1) and Poisson(λ2), product PGF gives Poisson(λ1+λ2) for sum.
  • Use PGF to find distribution of sum of two independent Bernoulli variables (gives Binomial(2,p)).
  • Differentiate PGF of geometric distribution to obtain mean 1/p.
🧮 Formulas
  1. \[PGF: G_X(s) = E[s^X] = Σ_{k=0}^∞ p_X(k) s^k\]
  2. \[G_{X+Y}(s) = G_X(s) G_Y(s) for independent X,Y\]
  3. E[X] = G'_X(1), E[X(X−1)] = G''_X(1)
📊 Visual ideas
Series expansion illustration showing coefficients p_X(k) as probabilities
Diagram showing multiplication of PGFs corresponding to convolution
Plot of G(s) for Poisson(λ) as an exponential-like curve in s
🔢19

Common problem types and exam techniques

Recognise the problem type
ICSE/ISC probability questions commonly fall into categories: counting and combinatorics with equally likely outcomes, conditional probability and Bayes' theorem, binomial and Poisson computations, expectations and variances, joint distributions and covariance, and distribution of sums. Quickly identifying which category a question belongs to guides your approach and saves time in exams.

Structured problem-solving steps
Adopt a clear routine: (1) Define the experiment and write the sample space S or state clearly why S is large. (2) Specify the random variable(s) and their support. (3) Decide whether outcomes are equally likely; if so use counting; if not, assign outcome probabilities. (4) Choose the correct distribution or counting formula and compute numerators and denominators separately. (5) Show intermediate steps: marginals, conditionals, E[X], E[X^2] when needed. Clear structure gains method marks even when arithmetic is tricky.

Counting vs distribution approach
For finite equally likely problems, combinatorics (nCr, nPr) is commonly fastest. For repeated independent trials, use Binomial or Geometric. For rare events or large populations use Poisson approximation. Always justify model assumptions briefly: independence, identical trials, rarity, replacement vs no replacement.

Conditional and Bayes' questions
For conditional problems draw a probability tree and label branch probabilities. Use the law of total probability to compute denominators for Bayes' theorem and present numerator/denominator clearly. A small table of hypotheses, priors, likelihoods and weighted terms reduces errors and clearly shows the method.

Expectations and variances in exams
Use linearity of expectation to simplify calculations: E[Σ X_i] = Σ E[X_i] requires no independence. For variance, if independence holds, Var(Σ X_i) = Σ Var(X_i). Show intermediate E[X] and E[X^2] values rather than skipping steps. For sums of indicators use known Binomial results to avoid heavy summation.

Presentation and common errors
Write symbols clearly, box final answers and state units or probability ranges. Common mistakes are swapping P(A|B) and P(B|A), forgetting to adjust counts for order, and assuming independence without justification. Check that probabilities lie between 0 and 1 and that totals of PMFs sum to 1 where applicable.

Exam practice tips
Solve past papers, time yourself, and learn to decide quickly whether to compute exact sums or use approximations (Poisson or Normal). Show reasons for approximations and always state assumptions; this earns method marks and demonstrates understanding even when arithmetic is approximate.

📌 Examples
  • Guide to solve: 'At least one head in 3 tosses'—list S, define event, compute complement probability.
  • Bayes template: write table of hypothesis priors, likelihoods, compute weighted evidence and posteriors.
  • Expectation technique: use linearity to find mean of sum of indicator variables without joint distribution.
  • Variance shortcut: for sum of independent identically distributed variables, use n Var(single).
🧮 Formulas
  1. Use P(A)=|A|/|S| for equally likely finite outcomes
  2. Use law of total probability and Bayes' theorem templates in conditional problems
📊 Visual ideas
Annotated probability tree used as an exam method diagram
Checklist flowchart for selecting counting vs distribution approach
Sample-space listing diagram for small combinatorial problems

Key Concepts

Experiment
An action or process that produces outcomes.
Sample space
The set of all possible outcomes of an experiment.
Event
A subset of the sample space, representing outcomes of interest.
Probability mass function
A function giving probabilities for each value of a discrete random variable.
Conditional probability
Probability of an event given that another event has occurred.
Independence
Two events are independent when the occurrence of one does not change the probability of the other.
Expectation (mean)
The weighted average of possible values of a random variable.
Variance
The expected squared deviation of a random variable from its mean.
Bernoulli trial
An experiment with two outcomes called success and failure.
Binomial distribution
Distribution of number of successes in fixed number of independent Bernoulli trials.
Geometric distribution
Distribution of the trial number on which the first success occurs.
Poisson distribution
Distribution modelling counts of rare independent events over a fixed interval.
Joint distribution
A distribution describing probabilities for pairs of random variables simultaneously.
Covariance
A measure of linear association between two random variables.
Correlation
Standardised covariance bounded between −1 and 1 measuring linear relationship.
Convolution
Operation giving PMF of sum of independent discrete random variables by summing products.
Law of large numbers
Principle that sample averages converge to the expected value as sample size grows.
Central limit theorem
Theorem stating sums of many i.i.d. variables approximate a normal distribution.

Practice Questions

  1. A fair coin is tossed three times. What is the probability of exactly two heads? / एक निष्पक्ष सिक्का तीन बार उछाला जाता है। ठीक दो हेड आने की प्रायिकता क्या है?
    Show answer

    There are C(3,2)=3 favourable outcomes out of 8 total, so probability = 3/8. / कुल 8 संभाव्य परिणामों में से C(3,2)=3 अनुकूल परिणाम हैं, अत: प्रायिकता = 3/8.

  2. From a bag of 5 red and 3 blue balls, two balls are drawn without replacement. Find the probability both are red. / 5 लाल और 3 नीली गेंदों वाली थैली से बिना प्रतिस्थापन के दो गेंदें निकाली जाती हैं। दोनों लाल होने की प्रायिकता खोजिए।
    Show answer

    P = (5/8)×(4/7) = 20/56 = 5/14. / P = (5/8)×(4/7) = 20/56 = 5/14.

  3. A test for a disease has sensitivity 0.95 and specificity 0.90. If disease prevalence is 1%, find probability that a person who tests positive actually has the disease. / किसी रोग के परीक्षण की संवेदनशीलता 0.95 और विशिष्टता 0.90 है। यदि रोग का प्रचलन 1% है, तो सकारात्मक परीक्षण वाले व्यक्ति के वास्तव में रोगी होने की प्रायिकता क्या है?
    Show answer

    Use Bayes: P(D|+) = 0.95×0.01 / [0.95×0.01 + 0.10×0.99] = 0.0095 / (0.0095+0.099) ≈ 0.0875 ≈ 8.75%. / बायेस का उपयोग: P(D|+) = 0.95×0.01 / [0.95×0.01 + 0.10×0.99] = 0.0095 / (0.0095+0.099) ≈ 0.0875 ≈ 8.75%.

  4. Let X ~ Binomial(n=10, p=0.3). Compute E[X] and Var(X). / X ~ Binomial(n=10, p=0.3) है। E[X] और Var(X) ज्ञात कीजिए।
    Show answer

    E[X] = np = 10×0.3 = 3. Var(X) = np(1−p) = 10×0.3×0.7 = 2.1. / E[X] = 10×0.3 = 3. Var(X) = 10×0.3×0.7 = 2.1.

  5. Two fair dice are rolled. Are the events 'first die shows 6' and 'sum is 8' independent? / दो निष्पक्ष पासे फेंके जाते हैं। क्या घटना 'पहला पासा 6 दिखाता है' और 'योग 8 है' स्वतंत्र हैं?
    Show answer

    P(first die 6)=1/6. P(sum 8)=5/36. P(both)=P(first=6 and sum=8) corresponds to outcomes (6,2) so 1/36. Check independence: (1/6)×(5/36)=5/216 ≠ 1/36, so not independent. / P(पहला=6)=1/6। P(योग=8)=5/36। दोनों घटित होने की प्रायिकता (6,2) के कारण 1/36। (1/6)×(5/36)=5/216 ≠ 1/36, अतः स्वतंत्र नहीं हैं।

  6. If X and Y have joint PMF p(0,0)=1/4, p(0,1)=1/4, p(1,0)=1/4, p(1,1)=1/4, find Cov(X,Y). / X और Y का संयुक्त PMF दिया है p(0,0)=1/4, p(0,1)=1/4, p(1,0)=1/4, p(1,1)=1/4। Cov(X,Y) ज्ञात कीजिए।
    Show answer

    Compute E[X]=E[Y]=0.5, E[XY]=Σ xy p = (1×1)×1/4 = 1/4. Cov=E[XY]−E[X]E[Y]=1/4 − 0.5×0.5 = 1/4 − 1/4 = 0. So covariance = 0. / E[X]=E[Y]=0.5, E[XY]=1/4। Cov=1/4−0.5×0.5=0। अतः Cov(X,Y)=0.

  7. Approximate P(X≥15) for X~Binomial(n=100, p=0.1) using Poisson approximation. / X~Binomial(n=100, p=0.1) के लिए Poisson समीकरण द्वारा P(X≥15) का अनुमान लगाइए।
    Show answer

    Here λ = np = 10. Use Poisson(10). P(X≥15)=1−Σ_{k=0}^{14} e^{−10}10^k/k!. Numerical value ≈ 1−0.9165 ≈ 0.0835 (use calculator/tables). / λ=100×0.1=10। Poisson(10) से P(X≥15)=1−Σ_{k=0}^{14} e^{−10}10^k/k!। संख्यात्मक मान करीब 1−0.9165 ≈ 0.0835 है (कैलकुलेटर/तालिका से)।

  8. A random variable X has PMF p(0)=0.2, p(1)=0.5, p(2)=0.3. Find the PMF of Y = X^2 and E[Y]. / X का PMF p(0)=0.2, p(1)=0.5, p(2)=0.3 है। Y = X^2 का PMF और E[Y] ज्ञात कीजिए।
    Show answer

    Values: X=0→Y=0, X=1→Y=1, X=2→Y=4. So p_Y(0)=0.2, p_Y(1)=0.5, p_Y(4)=0.3. E[Y]=0×0.2 + 1×0.5 + 4×0.3 = 0 + 0.5 + 1.2 = 1.7. / X के मानों के अनुसार Y के मान 0,1,4 हैं। p_Y(0)=0.2, p_Y(1)=0.5, p_Y(4)=0.3। E[Y]=0×0.2+1×0.5+4×0.3=1.7।

  9. If X1,X2,...,Xn are i.i.d. with mean μ and variance σ^2, state the mean and variance of S_n = Σ_{i=1}^n X_i. / यदि X1,X2,...,Xn स्वतंत्र और समान वितरण वाले हैं जिनका माध्य μ और विचरण σ^2 है, तो S_n = Σ_{i=1}^n X_i का माध्य और विचरण लिखिए।
    Show answer

    E[S_n] = nμ. If independent, Var(S_n) = nσ^2. / E[S_n]=nμ। स्वतंत्र होने पर Var(S_n)=nσ^2।

  10. Show that for independent Poisson variables X~Pois(λ1) and Y~Pois(λ2), S=X+Y ~ Pois(λ1+λ2). / स्वतंत्र Poisson चल X~Pois(λ1) और Y~Pois(λ2) के लिए दिखाइए कि S=X+Y भी Pois(λ1+λ2) है।
    Show answer

    Using PGFs: G_X(s)=e^{λ1(s−1)}, G_Y(s)=e^{λ2(s−1)}. Independence gives G_{X+Y}(s)=G_X(s)G_Y(s)=e^{(λ1+λ2)(s−1)}, which is PGF of Pois(λ1+λ2). Hence S~Pois(λ1+λ2). / PGF का प्रयोग: G_X(s)=e^{λ1(s−1)}, G_Y(s)=e^{λ2(s−1)}। स्वतंत्रता से G_{X+Y}(s)=G_X(s)G_Y(s)=e^{(λ1+λ2)(s−1)}, जो Pois(λ1+λ2) का PGF है। अतः S~Pois(λ1+λ2)।

Related Laws & Principles

Explore all

Foundational laws & principles connected to this chapter — tap to open in the Laws Explorer.

Loading related laws…
Sourced from 0 content files · LLOS Learn · browse all chapters