Back to ShikshaPal ExplainerClass 12 / Math
ShikshaPal
Class 12 · Math

Probability

NCERT Class 12 probability — conditional probability, Bayes' theorem, random variables, and probability distributions including the binomial.

Feynman Lens

Start with the simplest version: this lesson is about Probability. If you can explain the core idea to a friend using everyday language, examples, and one clear reason why it matters, you have moved from memorising to understanding.

NCERT Class 12 probability — conditional probability, Bayes' theorem, random variables, and probability distributions including the binomial. From predicting election outcomes to assessing medical test accuracy to designing fair games, probability is the mathematical language of uncertainty. This chapter extends the foundational concepts from Class 11—sample spaces, events, and basic probability—to sophisticated tools: conditional probability (probability when you have partial information), independent events (when one event doesn't influence another), and Bayes' theorem (updating beliefs with evidence). These concepts underpin statistics, machine learning, and decision-making under uncertainty.

Recalling Foundations from Class 11

Class 11 introduced:

Axioms of probability (Kolmogorov):

This chapter builds on these foundations to handle complex, real-world probability questions.

Conditional Probability

Conditional probability P(A|B) is the probability of event A given that event B has occurred:

P(A|B) = P(A ∩ B) / P(B)     (assuming P(B) > 0)

Intuition: We restrict our sample space to outcomes in B. Among those outcomes, what fraction are also in A?

Example: Drawing cards without replacement from a deck. P(2nd card is ace | 1st card was ace) = 3/51 (only 3 aces left among 51 cards), not 4/52.

Key formula: P(A ∩ B) = P(A|B) · P(B) = P(B|A) · P(A) (multiplication rule)

This allows us to find the probability both events occur if we know conditional and marginal probabilities.

Multiplication Rule and Tree Diagrams

For sequence of events:

P(A₁ ∩ A₂ ∩ ... ∩ Aₙ) = P(A₁) · P(A₂|A₁) · P(A₃|A₁,A₂) · ... · P(Aₙ|A₁,...,Aₙ₋₁)

Tree diagrams: Visualize sequential experiments with branches representing outcomes. Probability of a path is the product of conditional probabilities along the path.

Example: Two-stage experiment: Urn A (3 red, 2 blue balls), draw one, transfer to Urn B (2 red, 3 blue), draw one from B.

Independent Events

Events A and B are independent if the occurrence of one doesn't affect the probability of the other:

P(A|B) = P(A)  or equivalently  P(A ∩ B) = P(A) · P(B)

Example: Flipping a coin twice. First flip being heads doesn't change P(heads on 2nd flip) = 1/2. These are independent.

Contrast: Drawing cards without replacement. Probability of 2nd card depends on 1st card. Events are dependent.

For n independent events:

P(A₁ ∩ A₂ ∩ ... ∩ Aₙ) = P(A₁) · P(A₂) · ... · P(Aₙ)

Bayes' Theorem

Bayes' theorem updates probabilities when new evidence arrives:

P(A|B) = P(B|A) · P(A) / P(B)

Interpretation:

Example: Medical diagnosis. A disease affects 1% of population. A test is 99% accurate (detects disease if present, correctly identifies absence if not present). You test positive. What's the probability you have the disease?

= 0.99 · 0.01 + 0.01 · 0.99 = 0.0198

Using Bayes:

P(disease | positive) = (0.99 · 0.01) / 0.0198 ≈ 0.505

Surprisingly, you have only about 50% chance of having the disease despite a positive test! This reveals the importance of prior probability.

Total Probability and Partition Formula

If events B₁, B₂, ..., Bₙ partition the sample space (mutually exclusive and exhaustive):

P(A) = Σ P(A|Bᵢ) · P(Bᵢ)

This decomposes a complex probability into simpler conditional probabilities.

Example: A company has three factories producing 30%, 50%, and 20% of items. Defect rates are 2%, 1%, and 3% respectively. What's probability a random item is defective?

P(defective) = P(defective|F₁)·P(F₁) + P(defective|F₂)·P(F₂) + P(defective|F₃)·P(F₃)
             = 0.02·0.30 + 0.01·0.50 + 0.03·0.20
             = 0.006 + 0.005 + 0.006
             = 0.017

Random Variables and Probability Distributions

A random variable X is a function assigning numerical values to outcomes.

Example: Flip coin twice; X = number of heads. X can be 0, 1, or 2.

A probability distribution lists all possible values and their probabilities:

X        0    1    2
P(X)   1/4  1/2  1/4

Expected value (mean): E[X] = Σ x · P(X = x) For the coin example: E[X] = 0·(1/4) + 1·(1/2) + 2·(1/4) = 1

Variance and standard deviation measure spread of distribution.

Connections to Other Topics

Socratic Questions

  1. Explain the difference between P(A|B) and P(B|A) using a concrete example. How does conditioning on different events change the probabilities, and why are these generally not equal?
  1. Bayes' theorem says P(A|B) = P(B|A) · P(A) / P(B). In the medical diagnosis example, why does the prior probability P(A) matter so much? What would change if the disease were rarer (say 0.1% of population)?
  1. Two events are independent if P(A|B) = P(A). Explain why independence means that learning B occurred gives you no information about whether A occurred. Can you think of events that seem unrelated but might be dependent?
  1. For the multiplication rule P(A ∩ B) = P(A|B) · P(B), explain why you multiply conditional probability by P(B). How would this change if you knew P(B|A) instead of P(A|B)?
  1. In the total probability formula, why must the events B₁, B₂, ..., Bₙ partition the sample space (be mutually exclusive and exhaustive)? What goes wrong if you apply the formula to events that overlap?

Term / Concept
Conditional Probability
tap to flip
P(A|B) = P(A ∩ B)/P(B), assuming P(B) > 0. Probability of A given that B has occurred.
Term / Concept
Multiplication Rule
tap to flip
P(A ∩ B) = P(A|B) · P(B) = P(B|A) · P(A).
Term / Concept
Independent Events
tap to flip
A and B are independent iff P(A ∩ B) = P(A) · P(B), equivalently P(A|B) = P(A).
Term / Concept
Mutually Exclusive Events
tap to flip
A ∩ B = ∅. Then P(A ∪ B) = P(A) + P(B). Mutual exclusivity is not the same as independence.
Term / Concept
Total Probability Theorem
tap to flip
If B₁, …, Bₙ partition S, then P(A) = Σᵢ P(A|Bᵢ) · P(Bᵢ).
Term / Concept
Bayes' Theorem
tap to flip
P(Bⱼ|A) = P(A|Bⱼ) P(Bⱼ) / Σᵢ P(A|Bᵢ) P(Bᵢ). Updates a prior into a posterior using evidence.
Term / Concept
Random Variable
tap to flip
A real-valued function on the sample space. Discrete RV takes countably many values with P(X = xᵢ) = pᵢ, Σpᵢ = 1.
Term / Concept
Expected Value (Mean)
tap to flip
E[X] = Σ xᵢ · P(X = xᵢ). Long-run average value of X.
Term / Concept
Variance
tap to flip
Var(X) = E[(X − μ)²] = E[X²] − (E[X])². Standard deviation = √Var(X).
Term / Concept
Bernoulli / Binomial
tap to flip
Binomial X ~ B(n, p): P(X = r) = C(n, r) pʳ (1 − p)^(n − r). Mean = np, Variance = np(1 − p).
If P(A) = 0.4, P(B) = 0.5, and A, B are independent, then P(A ∩ B) =
  • A 0.20
  • B 0.90
  • C 0.10
  • D 0.70
A card is drawn from a standard deck. Given it is a face card, the probability it is a king is
  • A 1/13
  • B 1/4
  • C 1/3
  • D 4/52
A bag has 3 red and 2 blue balls. Two balls are drawn one at a time without replacement. Probability both are red is
  • A 9/25
  • B 3/10
  • C 1/2
  • D 3/10
For a binomial distribution with n = 10 and p = 0.5, the mean is
  • A 2.5
  • B 5
  • C 10
  • D 0.5
A factory has machines A and B producing 60% and 40% of output, with defect rates 1% and 2% respectively. The probability a randomly chosen item is defective is
  • A 0.014
  • B 0.020
  • C 0.030
  • D 0.060