Skip to content
MathsISC Class 12 · Probability

Probability Distribution and Mean of a Random Variable

Updated 15 October 2026 · Fact-checked

A random variable X assigns a number to each outcome of an experiment. Its probability distribution lists every value $x_i$ with its probability $p_i$, where each $p_i \ge 0$ and $\sum p_i = 1$. The mean, or expected value, is $E(X) = \sum x_i p_i$: a probability-weighted average, not the plain average of the values.

The mean E(X) = Σ x·p is the balance point of the bars: heavier probabilities pull it closer, and here the symmetry puts it at 1.

Illustration drawn for QuestionBuddy.

Understand Probability Distribution and Mean of a Random Variable

Random variable. An experiment has outcomes; a random variable is a rule that gives each outcome a real number. Toss two coins and let be the number of heads: the outcome HT gives . Different outcomes can give the same value. In ISC Class 12 the random variables are discrete: they take a list of separate values.

Probability distribution. For each value , add the probabilities of all outcomes that give it: . Present the result as a table:

…
…

Two conditions make a table a valid distribution: **every and **. Questions with an unknown use the second condition to find , then the first to reject a root that would make some probability negative or bigger than 1.

Building a distribution. The 2024 ISC paper built one from a classroom activity: two numbers were chosen from 2, 3, 4, 5 without replacement and was the larger number. The method is always the same:
1. List the sample space (ordered or unordered, as the experiment demands) and check that the outcomes are equally likely.
2. Read off the value of for each outcome.
3. Count how many outcomes give each value and divide by the total.
4. Check that the probabilities add to 1.

Probabilities of ranges. , or are found by adding the relevant entries. Watch the strict and non-strict inequalities: leaves out .

Mean (expectation). The mean of is

It is the average value of over a very large number of repetitions. Each value is weighted by how often it occurs, which is why it is not the simple average of the , and not the average of the either. The ISC 2025 examiners noted candidates who took "just the average of P(X) instead of the sum of X·P(X)".

Useful facts. The mean need not be a value can take (the mean number of heads in 3 tosses is 1.5). If every value is multiplied by and increased by , the mean becomes . For a game, let be the net gain (prize minus stake); the game is fair when , favourable to the player when .

Link to statistics. is the same as the mean of a frequency distribution , with relative frequencies replaced by probabilities.

Probability Distribution and Mean of a Random Variable: formulas to remember

Validity
Use the sum to find an unknown constant; use to reject a root.
Probability of a range
Check < against ≤.
Mean (expected value)
A weighted average.
Linear change
Rescaling a prize or a unit.
Fair game
Net gain = prize − cost to play.

How to solve Probability Distribution and Mean of a Random Variable questions

A distribution question usually has three parts: build or complete the table, find probabilities of ranges, and find the mean.

  1. 1Define in words and list all the values it can take.
  2. 2Write the sample space, with its size, and check that outcomes are equally likely.
  3. 3Count the outcomes for each value of and write as a fraction over the same denominator.
  4. 4Check that the probabilities add to 1 (or use this to find , then reject any root that gives a negative probability).
  5. 5Add the required entries for range probabilities.
  6. 6Make a row and add it to get ; interpret the answer in context.

Probability Distribution and Mean of a Random Variable in real life

Each concept, met in an everyday situation. Read the situation, try the problem, then check the solution. The one-line hook is what to remember.

Expected value as a long-run average

Suppose a phone repair shop finds that the number of repairs X a walk-in customer needs is 1, 2 or 3 with probabilities 0.6, 0.3 and 0.1, and each repair takes 20 minutes.

Find the expected number of repairs per customer and the expected repair time per customer.

Try it first, then show the solutionSolution
  1. .
  2. Time minutes, so minutes.

Answer: 1.5 repairs and 30 minutes per customer, on average.

Memory hook: Mean = each value × how often it happens, all added.

Is a game fair?

Imagine a fete stall where you pay ₹30 to roll one fair die. You receive ₹120 for a six, ₹30 for a four or five, and nothing otherwise.

Find the expected net gain per game. Who does the game favour?

Try it first, then show the solutionSolution
  1. Net gain: ₹90 with probability ; ₹0 with probability ; −₹30 with probability .
  2. .

Answer: Expected net gain ₹0: the game is fair, favouring neither side.

Memory hook: Fair means the expected NET gain is zero; always subtract the stake.

Tricks to remember Probability Distribution and Mean of a Random Variable

Short memory aids. Say each one aloud once, then use it on a question the same day.

  • Two rules of a distribution

    "None negative, total one."

    Use it when: Checking a table and finding .

  • Multiply across, add down

    Write an extra row under the table; its total is .

    Use it when: Every mean calculation.

  • Mean is not the middle

    The mean leans towards the values with the biggest probabilities.

    Use it when: Sanity-checking .

  • Net, not prize

    For a game, X is what you end up with minus what you paid.

    Use it when: Fair-game questions.

Probability Distribution and Mean of a Random Variable: solved examples

Ordered from board level to HOTS. Try each one before you open the solution.

Example 1: Mean from a table · 1 mark · MCQBoard level

X takes the values −20, 0 and 40 with probabilities , and . Then is:
(a) 5
(b)
(c) 10
(d) 0

Try it first, then show the solutionSolution
  1. . (Option (b) is the simple average of the values.)

Answer: (a) 5.

Example 2: Finding k and rejecting a root · 3 marks · Short answerHarder board level

The probability distribution of X is , , , . Find k, and .

Try it first, then show the solutionSolution
  1. Sum: , so and . (1 mark)
  2. Probabilities cannot be negative, so . (1 mark)
  3. ; . (1 mark)

Answer: ; ; .

Example 3: Building a distribution by counting · 6 marks · Long answerHarder board level

Two numbers are chosen at random, one after the other without replacement, from 1, 2, 3, 4, 5, 6. Let X be the smaller of the two. Find the probability distribution of X, and .

Try it first, then show the solutionSolution
  1. Ordered pairs with distinct numbers: , all equally likely. (1 mark)
  2. Smaller number with the other larger: choices for the other number, and 2 orders, so pairs. (1 mark)
  3. X = 1, 2, 3, 4, 5 with counts 10, 8, 6, 4, 2: probabilities ; they add to 1. (2 marks)
  4. . (1 mark)
  5. . (1 mark)

Answer: X: 1, 2, 3, 4, 5 with P: ; ; .

Example 4: Draws without replacement · 4 marks · Long answerHarder board level

A drawer has 4 working and 2 dead batteries. Three batteries are taken at random together. Let X be the number of dead batteries taken. Find the distribution of X and its mean.

Try it first, then show the solutionSolution
  1. Total selections: . X can be 0, 1 or 2. (1 mark)
  2. ; ; . (2 marks)
  3. . (1 mark)

Answer: P(0) = P(2) = , P(1) = ; .

Example 5: Expected number of trials · 4 marks · Case-basedHOTS / competency

A learner driver is allowed at most three attempts at a test. Suppose the chance of passing is 0.5 on the first attempt, 0.6 on the second and 0.8 on the third (each given the earlier attempts failed). Let X be the number of attempts taken (stop at a pass or after three attempts). Find the distribution of X, and the probability that the learner never passes.

Try it first, then show the solutionSolution
  1. ; ; (the third attempt happens whatever its result).
  2. Check: .
  3. attempts.
  4. Never passes: .

Answer: X = 1, 2, 3 with P = 0.5, 0.3, 0.2; E(X) = 1.7; P(never passes) = 0.04.

Where students lose marks in Probability Distribution and Mean of a Random Variable

The slips examiners see most often, and what to write instead.

  • Mistake: Averaging instead of weighting

    The ISC 2025 examiners noted candidates who took the average of P(X) instead of .

    Wrong working

    .

    Right working

    .

    Do this: Always write the row and add it.

    Usually costs: 1 mark.

  • Mistake: Not checking the probabilities add to 1

    A miscounted sample space goes unnoticed and every later part is wrong.

    Do this: Add the row before finding the mean.

    Usually costs: 2 to 3 marks.

  • Mistake: Keeping a root that gives a negative probability

    Quadratics in k give two roots; only one is valid.

    Do this: Substitute both and reject any that makes some or .

    Usually costs: 1 mark.

  • Mistake: Strict versus non-strict inequality

    and differ by .

    Do this: Circle the inequality sign before adding entries.

    Usually costs: 1 mark.

Exam tips

  • Present the distribution as a two-row table; examiners look for it.
  • Keep a common denominator in the table so that checking the sum and finding the mean are easy.
  • State the sample space size and whether pairs are ordered.
  • Interpret in context ("on average 1.7 attempts"), especially in case-study questions.

Practice questions on Probability Distribution and Mean of a Random Variable

Write each answer on paper first. Open the hint only if you are stuck, and the answer only when you have finished.

  1. Q1 · 1 mark · MCQBoard level

    Which of these can be a probability distribution of X = 0, 1, 2?
    (a) 0.5, 0.6, −0.1
    (b) 0.3, 0.3, 0.3
    (c) 0.2, 0.5, 0.3
    (d) 0.4, 0.4, 0.4

    Hint

    None negative, total one.

    Answer

    (c).

  2. Q2 · 2 marks · Short answerBoard level

    X takes values 1, 2, 3 with . Find k and .

    Hint

    .

    Answer

    ; .

  3. Q3 · 3 marks · Short answerBoard level

    A pair of fair dice is thrown. Let X be the number of sixes. Find the distribution of X and its mean.

    Hint

    on each die.

    Answer

    P(0) = , P(1) = , P(2) = ; .

  4. Q4 · 3 marks · Short answerHarder board level

    Two cards are drawn together from a pack of 52. Let X be the number of kings drawn. Find .

    Hint

    Use .

    Answer

    P(0) = , P(1) = , P(2) = ; .

  5. Q5 · 1 mark · Assertion-reasonHarder board level

    Assertion (A): If X takes values 1, 2, 3 with probabilities 0.2, 0.3, 0.5, then .
    Reason (R): The mean of a random variable is the average of its values.
    (a) Both true, R explains A. (b) Both true, R does not explain A. (c) A true, R false. (d) Both false.

    Hint

    Compute .

    Answer

    (d): , and the mean is a weighted average, not the plain average.

  6. Q6 · 4 marks · Long answerHOTS / competency

    Suppose a coin is tossed until a head appears or until it has been tossed 4 times. Let X be the number of tosses. Find the distribution of X and .

    Hint

    X = 4 includes TTTH and TTTT.

    Answer

    P(1) = , P(2) = , P(3) = , P(4) = ; .

  7. Q7 · 4 marks · Case-basedHOTS / competency

    Case study: Suppose an insurer sells a ₹2000-a-year gadget policy. In a year a claim of ₹15 000 is made with probability 0.05, a claim of ₹5000 with probability 0.1, and no claim otherwise.
    (i) Write the distribution of the insurer's net gain per policy. (2 marks)
    (ii) Find the expected net gain. (1 mark)
    (iii) What premium would make the policy fair? (1 mark)

    Hint

    Net gain = premium − claim.

    Answer

    (i) −₹13 000 (0.05), −₹3000 (0.1), ₹2000 (0.85). (ii) , that is ₹750. (iii) Expected claim ₹1250, so a premium of ₹1250.

Test your recall

Answer in your head or on paper first, then open the card. Pulling an answer out of memory makes it stick far better than re-reading.

  1. 1.What two conditions must a probability distribution satisfy?Show answer

    Each and .

  2. 2.Define the mean of a discrete random variable.Show answer

    .

  3. 3.X = 0, 1 with P = 0.3, 0.7. E(X)?Show answer

    0.7.

  4. 4.If E(X) = 4, what is E(3X − 2)?Show answer

    10.

  5. 5.When is a game fair?Show answer

    When the expected net gain of the player is zero.

Probability Distribution and Mean of a Random Variable: frequently asked questions

What is a random variable in simple words?

It is a number attached to each outcome of an experiment, such as the number of heads in some tosses or the larger of two chosen numbers. It is called random because its value depends on the outcome.

Is variance in the ISC 2027 syllabus?

The 2027 syllabus lists the probability distribution and the mean of a random variable. This page therefore concentrates on building distributions and finding the mean.

Can E(X) be a value X never takes?

Yes. The mean is a long-run average, so it can fall between the possible values, like 1.5 heads in three tosses.

How do I find k in a probability distribution?

Add all the probabilities, set the total equal to 1 and solve. If you get two values, reject any that makes a probability negative or greater than 1.

How many marks does this topic carry in ISC?

It was a 6-mark question in 2024 (a "larger number" distribution) and a 1-mark expected-value item in 2025, within the 9 marks for Probability.