📐 ICSE Class 12 Mathematics

Random Variables

Start MCQ Practice →

Random Variables

Subject: Class 12 Mathematics Chapter: Random Variables Topic: 14.6 Random Variables – Understand discrete random variables

1. Introduction

Until now we have discussed probabilities of events directly, such as the probability that a coin shows heads or that a die shows an even number. But in many experiments the outcome is naturally described by a number: the number of heads in three tosses, the sum of two dice, or the number of defective items in a sample. A random variable is a rule that assigns a real number to each outcome of a random experiment, turning the experiment into a numerical quantity whose behaviour can be studied through probabilities.

The concept of a random variable is a bridge between probability and statistics. Once an experiment is expressed as a number, we can ask questions like: what is the probability that the number equals a particular value, or lies in a given range? The answers to such questions are organized in the probability distribution of the random variable, which is the subject of the next section. Random variables also allow us to compute summary measures such as the mean and variance, which describe the centre and spread of the possible outcomes.

In this section we define random variables precisely, distinguish discrete from continuous random variables, and show how to list the values of a discrete random variable together with their probabilities. We solve worked examples involving coins, dice, cards and balls, and we learn how to write the probability mass function of a random variable. A clear understanding of this section is essential, because the entire remaining part of the probability chapter rests on the language of random variables.

2. Definition and Types of Random Variables

A random variable is a real-valued function defined on the sample space of a random experiment. It is usually denoted by a capital letter such as X or Y, and the particular numerical values it takes are denoted by lowercase letters such as x1, x2, ..., xn.

Definition: A random variable X is a function from the sample space S to the set of real numbers, X : S → R, that assigns to every outcome a unique real number.

Key points to remember: - The domain of a random variable is the sample space; its range is a set of real numbers. - The random variable is not random in the ordinary sense; the randomness comes from the experiment. - A discrete random variable takes only a finite or countably infinite number of distinct values. - A continuous random variable takes all values in an interval and needs an integral for its probabilities.

Discrete random variables: A random variable that assumes only a finite or countably infinite set of values is called discrete. For example, the number of heads in three tosses can be only 0, 1, 2 or 3, so it is discrete. The values of a discrete random variable are often written in a table together with their probabilities, and this table is called its probability distribution.

Worked Example 1: A coin is tossed three times. Let X denote the number of heads. List the values of X and the outcomes giving each value.

Step 1: Sample space S = {HHH, HHT, HTH, THH, HTT, THT, TTH, TTT}. Step 2: X = number of heads in the outcome. Step 3: X = 3 for HHH; X = 2 for HHT, HTH, THH; X = 1 for HTT, THT, TTH; X = 0 for TTT. Step 4: Hence X takes the values 0, 1, 2, 3 with respective counts 1, 3, 3, 1.

Worked Example 2: Two dice are thrown. Let X be the sum of the numbers on the two dice. List the possible values of X.

Step 1: The smallest sum is 1 + 1 = 2 and the largest is 6 + 6 = 12. Step 2: The possible values of X are 2, 3, 4, ..., 12, that is, eleven distinct values. Step 3: The value 7 has the most favourable outcomes (1,6), (2,5), (3,4), (4,3), (5,2), (6,1). Step 4: The values 2 and 12 each have only one favourable outcome, (1,1) and (6,6).

3. Probability Distribution of a Discrete Random Variable

For a discrete random variable X, the probability that X takes the value xi is written as P(X = xi) and is denoted by p(xi). The collection of all such probabilities forms the probability distribution or probability mass function of X.

Definition: The probability distribution of a discrete random variable X is a table listing each value xi and its probability p(xi) = P(X = xi), subject to two conditions.

Conditions: - Each probability is non-negative: p(xi) ≥ 0 for every i. - The sum of all probabilities is 1: Σ p(xi) = 1.

Key points to remember: - The probabilities p(xi) are the same numbers we used for events, so they must be computed by counting favourable outcomes. - No probability may be negative and the total must always be exactly 1. - Every value of X that can actually occur must appear in the table. - The table is complete only when every possible value has been assigned a probability.

Worked Example 3: A coin is tossed three times. Write the probability distribution of X, the number of heads.

Step 1: From Worked Example 1, the values and counts are X = 0 (1 outcome), X = 1 (3 outcomes), X = 2 (3 outcomes), X = 3 (1 outcome). Step 2: P(X = 0) = 1/8, P(X = 1) = 3/8, P(X = 2) = 3/8, P(X = 3) = 1/8. Step 3: Verify: 1/8 + 3/8 + 3/8 + 1/8 = 8/8 = 1. Step 4: The distribution is complete and satisfies both conditions.

Worked Example 4: A die is thrown once. Let X be the number shown. Write the probability distribution of X.

Step 1: The values are 1, 2, 3, 4, 5, 6. Step 2: Each value has probability 1/6, so P(X = k) = 1/6 for k = 1, 2, ..., 6. Step 3: Sum = 6 × (1/6) = 1. Step 4: This is the uniform distribution on the six faces of the die.

4. Solved Examples for Practice

Let us construct probability distributions for several experiments, always counting outcomes carefully before writing probabilities.

Worked Example 5: Two coins are tossed. Let X be the number of heads. Write the probability distribution of X.

Step 1: Sample space = {HH, HT, TH, TT}. Step 2: X = 2 for HH, X = 1 for HT and TH, X = 0 for TT. Step 3: P(X = 0) = 1/4, P(X = 1) = 2/4 = 1/2, P(X = 2) = 1/4. Step 4: Sum = 1/4 + 1/2 + 1/4 = 1.

Worked Example 6: Two dice are thrown. Let X be the number on the first die that is greater than 4. Write the probability distribution of X.

Step 1: For each die, the probability that the face is greater than 4 is 2/6 = 1/3 and the probability it is not is 2/3. Step 2: X = 0 when neither die exceeds 4: P(X = 0) = (2/3)(2/3) = 4/9. Step 3: X = 1 when exactly one die exceeds 4: P(X = 1) = 2(1/3)(2/3) = 4/9. Step 4: X = 2 when both exceed 4: P(X = 2) = (1/3)(1/3) = 1/9. Sum = 4/9 + 4/9 + 1/9 = 1.

Worked Example 7: A bag contains 4 white and 2 black balls. Two balls are drawn without replacement. Let X be the number of black balls drawn. Write the probability distribution of X.

Step 1: Total ways to draw 2 balls from 6 is C(6,2) = 15. Step 2: X = 0 (both white): C(4,2)/15 = 6/15 = 2/5. Step 3: X = 1 (one white, one black): C(4,1)C(2,1)/15 = 8/15. Step 4: X = 2 (both black): C(2,2)/15 = 1/15. Sum = 2/5 + 8/15 + 1/15 = 6/15 + 8/15 + 1/15 = 1.

Worked Example 8: A random variable X has the distribution P(X = k) = ck for k = 1, 2, 3, 4. Find the constant c.

Step 1: The probabilities must sum to 1, so c + 2c + 3c + 4c = 1. Step 2: 10c = 1, hence c = 1/10. Step 3: The probabilities are 1/10, 2/10, 3/10, 4/10. Step 4: Check: 1/10 + 2/10 + 3/10 + 4/10 = 1. The value c = 1/10 is valid.

Worked Example 9: A random variable X has values 1, 2, 3 with probabilities p, 2p, 3p. Find p and verify the distribution.

Step 1: p + 2p + 3p = 1 gives 6p = 1, so p = 1/6. Step 2: P(X = 1) = 1/6, P(X = 2) = 1/3, P(X = 3) = 1/2. Step 3: Sum = 1/6 + 1/3 + 1/2 = 1. Step 4: Every probability is between 0 and 1, so the distribution is valid.

Worked Example 10: Four coins are tossed. Let X be the number of heads. Write the probability distribution of X.

Step 1: Total outcomes = 2^4 = 16. Step 2: P(X = k) = C(4,k)/16 for k = 0, 1, 2, 3, 4. Step 3: P(X = 0) = 1/16, P(X = 1) = 4/16, P(X = 2) = 6/16, P(X = 3) = 4/16, P(X = 4) = 1/16. Step 4: Sum = 1/16 + 4/16 + 6/16 + 4/16 + 1/16 = 16/16 = 1.

5. Quick Revision Tables

Table 1

Experiment Random variable X Possible values Number of values
Toss a coin once Number of heads 0, 1 2
Toss a coin twice Number of heads 0, 1, 2 3
Toss a coin three times Number of heads 0, 1, 2, 3 4
Throw two dice Sum of faces 2 to 12 11
Draw 2 balls without replacement Number of black balls 0, 1, 2 3

Table 2

Distribution p(x) values Sum check Type
One die face 1/6 for each of 1 to 6 1 Uniform
Two coins heads 1/4, 1/2, 1/4 1 Symmetric
Three coins heads 1/8, 3/8, 3/8, 1/8 1 Binomial n = 3
Four coins heads 1/16, 4/16, 6/16, 4/16, 1/16 1 Binomial n = 4
Two balls from 4W 2B 2/5, 8/15, 1/15 1 Hypergeometric

6. Mind Map

flowchart TD
    A[Random Variables] --> B[Definition from sample space]
    A --> C[Discrete random variable]
    A --> D[Continuous random variable]
    A --> E[Probability distribution]
    B --> F[Assigns a real number to each outcome]
    C --> G[Finite or countable values]
    D --> H[Values fill an interval]
    E --> I[Table of values and probabilities]
    E --> J[Conditions on probabilities]
    I --> K[Sum of probabilities equals 1]
    J --> L[Each probability non-negative]
    K --> M[Mean and variance later]

7. Important Diagrams (SVG)

Random Variable Mapping from Outcomes to Numbers Coin tossed three times, X = number of heads TTT maps to 0 HTT, THT, TTH map to 1 HHT, HTH, THH map to 2 HHH maps to 3 Values of X: 0, 1, 2, 3 with counts 1, 3, 3, 1 Probabilities: 1/8, 3/8, 3/8, 1/8 Golden Rule: The random variable is a function; the probability belongs to the value, not the outcome alone.

Probability Bars for Three Coin Tosses P(X = k) for k = 0, 1, 2, 3 X = 0: 1/8 X = 1: 3/8 X = 2: 3/8 X = 3: 1/8 Golden Rule: The heights of the bars must sum to a total probability of exactly one.

8. Common Mistakes

  1. Students call a random variable "random" and forget it is a fixed function on the sample space.
  2. Students list values of X but miss some outcomes, producing probabilities that do not sum to 1.
  3. Students include values that the variable can never take, such as a sum of 1 for two dice.
  4. Students write P(X = xi) as a single number without counting all favourable outcomes.
  5. Students assume every distribution is uniform and assign equal probabilities to unequal outcomes.
  6. Students confuse the number of values with the total number of outcomes of the experiment.

9. Exam Tips

  1. List the full sample space first, then map every outcome to its value of X.
  2. Group outcomes by the value of X and count each group before writing probabilities.
  3. Always verify that the probabilities sum to 1 before moving to the next step.
  4. Use combinations when selecting several objects without replacement.
  5. Write the random variable as X and the values as lowercase x to keep notation clear.
  6. Learn the standard distributions, such as number of heads in n tosses, to speed up later problems.

10. Conclusion

A random variable converts the outcomes of a random experiment into numbers, allowing probability to be studied through a single variable X. Discrete random variables take a finite or countable set of values, and their probability distributions list each value with its probability under the twin conditions that probabilities are non-negative and sum to one. Constructing these distributions correctly is the foundation for every later idea in the chapter, because the mean and variance of a distribution are computed directly from its probability table. A careful habit of listing values, counting outcomes and checking the sum to one will make the entire treatment of random variables accurate and examination-ready.