PYQ Vault

CBSE Class 12 Maths · Probability

Random Variables and Probability Distributions

A random variable gives a number to each outcome of an experiment; its probability distribution lists each value with its probability, and its mean is the sum of each value times its probability.

Why this matters

36 questions, all from board papers: five in 2022, eleven in 2023, nine in 2024 and eleven in 2025, and none in 2026. The present NCERT chapter defines a random variable only in a remark after Example 21 and does not teach probability distributions or the mean, so this page teaches them from the board questions. The board asked for k in a given table (2022 to 2025, including two one-mark MCQs), a distribution built by counting outcomes such as the larger of two numbers or the difference on two dice (2022 to 2025), a distribution for repeated draws or throws followed by its mean (2022 to 2025), and the mean or an unknown found from the mean (2023 to 2025, including a 2025 MCQ).

Concept 1 of 4: A random variable and its distribution: finding k

A random variable turns each outcome into a number, such as the number of heads. Its distribution is a table of those numbers and their chances, and because something must happen, the chances add to 1. That one fact finds any unknown k.

Definition

  • Random variable (NCERT, remark after Example 21): a real valued function whose domain is the sample space of a random experiment. For two tosses, X = number of heads gives X(HH) = 2, X(HT) = X(TH) = 1, X(TT) = 0.
  • More than one random variable can be defined on the same sample space.
  • Probability distribution: a table of the values x1,x2,…,xnx_1, x_2, \ldots, x_n with pi=P(X=xi)p_i = P(X = x_i), where every pi≥0p_i \ge 0 and ∑pi=1\sum p_i = 1.
  • Finding k: add the row of probabilities, set the sum equal to 1, solve. If k comes from a quadratic, reject the root that gives a negative probability.
  • P(1<X<4)P(1 < X < 4) leaves out 1 and 4; P(1≤X≤4)P(1 \le X \le 4) keeps them.
  • Syllabus note: the board asked this every year from 2022 to 2025 and not in 2026. The present NCERT chapter says little about distributions, so learn the methods on this page from the board questions, and check the current CBSE syllabus for your year.

Condition on a probability distribution

pi≥0,∑i=1npi=1p_i \ge 0, \quad \sum_{i=1}^{n} p_i = 1

Worked example

A random variable X takes the values 0, 1, 2, 3 with probabilities k, 2k, 2k and 3k. Find k and P(X≥2)P(X \ge 2).
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2022 · 65/5/1 · Q3Moderate

Example 1 · Probability · Random Variables and Probability Distributions

Let X be a random variable which assumes values x1x_1, x2x_2, x3x_3, x4x_4 such that 2P(X=x1)=3P(X=x2)=P(X=x3)=5P(X=x4)2P(X = x_1) = 3P(X = x_2) = P(X = x_3) = 5P(X = x_4). Find the probability distribution of X.

Keeping a negative root

When the sum gives a quadratic in k (board 2023), one root is usually negative. A probability cannot be negative, so that root is rejected; say so in your answer.

Strict and non-strict signs

P(1<X<6)P(1 < X < 6) leaves out X=1X = 1 and X=6X = 6. Read each sign before adding the table entries.

Answering k when a probability is asked

Finding k is only the first step. If the question asks for P(X=3)P(X = 3), put the value of k back into that entry.

Concept 2 of 4: Building a distribution by listing outcomes

To write a distribution from scratch, list every outcome of the experiment, work out the value of X for each, and group the outcomes by that value. Each group's probability is one entry in the table.

Definition

  • Step 1: write the sample space and say how many outcomes it has.
  • Step 2: state the values X can take.
  • Step 3: for each value, count (or multiply out) its probability.
  • Step 4: write the table and check that the probabilities add to 1.
  • Without replacement, the second draw comes from one fewer ball, and 'one of each colour' can happen in two orders.
  • For 'two numbers chosen from n', there are nC2{}^{n}C_2 equally likely pairs.

Each entry of the table

P(X=xi)=number of outcomes with X=xitotal number of outcomesP(X = x_i) = \dfrac{\text{number of outcomes with } X = x_i}{\text{total number of outcomes}}

Worked example

Two cards are drawn together from four cards numbered 1, 2, 3, 4. Let X be the sum of the two numbers. Find the probability distribution of X.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2022 · 65/1/1 · Q5Moderate

Example 2 · Probability · Random Variables and Probability Distributions

Two balls are drawn at random from a bag containing 2 red balls and 3 blue balls, without replacement. Let the variable X denotes the number of red balls. Find the probability distribution of X.

Forgetting the second order

'One red and one blue' in two draws is red then blue OR blue then red. Leaving out one order halves that entry, and the table no longer adds to 1.

A value X cannot take

When X is the larger of two different numbers, it can never be the smallest number. List only the values that really occur.

Concept 3 of 4: Repeated independent draws and throws

Drawing with replacement, or throwing a die again, repeats the same experiment with the same chances. The number of successes in a few such trials has a short table you can build by multiplying.

Definition

  • Let p be the probability of success in one trial and q=1−pq = 1 - p. With replacement, p stays the same in every trial.
  • Two trials: P(X=0)=q2P(X = 0) = q^2, P(X=1)=2pqP(X = 1) = 2pq (success in the first OR the second trial), P(X=2)=p2P(X = 2) = p^2.
  • Three trials: P(X=0,1,2,3)=q3,3pq2,3p2q,p3P(X = 0, 1, 2, 3) = q^3, 3pq^2, 3p^2q, p^3.
  • A biased coin or die: find p first. 'Head is 3 times as likely as tail' gives P(H)=34P(H) = \dfrac{3}{4}; 'an even face is twice as likely as an odd one' gives each odd face 19\dfrac{1}{9} and each even face 29\dfrac{2}{9}.
  • After the table, find the mean from ∑xipi\sum x_i p_i. That working is what earns the marks.

Number of successes in two trials

P(X=0)=q2,P(X=1)=2pq,P(X=2)=p2P(X = 0) = q^2, \quad P(X = 1) = 2pq, \quad P(X = 2) = p^2

Worked example

A die is thrown twice. Let X be the number of times a number greater than 4 appears. Find the probability distribution of X and its mean.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2024 · 65/5/3 · Q31Moderate

Example 3 · Probability · Random Variables and Probability Distributions

An urn contains 3 red and 2 white marbles. Two marbles are drawn one by one with replacement from the urn. Find the probability distribution of the number of white balls. Also, find the mean of the number of white balls drawn.

Leaving out the 2 in P(X = 1)

One success in two trials can come first or second, so P(X=1)=2pqP(X = 1) = 2pq. Writing pq alone makes the table add to less than 1.

Treating a biased die as fair

Set up the face probabilities from the condition first, check they add to 1, and only then find p for the event asked.

Concept 4 of 4: The mean (expectation) of a random variable

The mean is the long-run average value of X: each value is weighted by how often it happens. It need not be one of the values X can take.

Definition

  • Mean or expectation: E(X)=∑xi pi=x1p1+x2p2+⋯+xnpnE(X) = \sum x_i\,p_i = x_1p_1 + x_2p_2 + \cdots + x_np_n.
  • Multiply each value by its own probability, then add. Negative values keep their signs.
  • Unknowns from the mean: two unknowns need two equations, ∑pi=1\sum p_i = 1 and ∑xipi=\sum x_i p_i = the given mean.
  • If a table has an unknown k, find k first, then the mean.
  • Write the answer with its unit when X has one (rupees, hours, students).

Mean of a random variable

E(X)=∑i=1nxi piE(X) = \sum_{i=1}^{n} x_i\,p_i

Worked example

X takes the values −1-1, 0, 1, 2 with probabilities 0.15, 0.25, 0.35 and 0.25. Find E(X).
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2024 · 65/5/1 · Q31Moderate

Example 4 · Probability · Random Variables and Probability Distributions

The random variable X has the following probability distribution where a and b are some constants :
X12345
P(X)0.2aa0.2b
If the mean E(X) = 3, then find values of a and b and hence determine P(X≥3)P(X \ge 3).

Adding the probabilities only

The mean is ∑xipi\sum x_i p_i, not ∑pi\sum p_i (which is always 1) or the average of the values.

Dropping a minus sign

With values like −4,−3,…-4, -3, \ldots, each product keeps its sign. A table of negative values gives a negative mean.

One equation for two unknowns

When a and b are unknown, use both conditions: the probabilities add to 1, and the mean equals the given value.

Summary — formulas & gotchas at a glance

A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.

Formulas (4)

Watch out for (10)

Test yourself on Probability

15 past CBSE Class 12 questions from this chapter, timed at 23 minutes and marked the way the exam marks it. You see your score and every answer the moment you finish. Free to start.

Take the Probability chapter test