- 1. Given that it happened: what is conditional probability?
- 2. The rules still work: properties of conditional probability
- 3. One after the other: the multiplication theorem
- 4. When one event tells you nothing: independent events
- 5. Independent or mutually exclusive? The trap
- 6. Adding up every route: partitions and total probability
- 7. Working backwards from the clue: Bayes' theorem
- 8. Guess first: a 99% accurate test says you are ill
- 9. Outcomes into numbers: random variables and probability distributions
- 10. The average and the spread: mean, variance and standard deviation (JEE extra)
- 11. Repeat and count: Bernoulli trials and the binomial distribution (JEE extra)
- Review
9 of 11·NCERT §13.5·5 min
Outcomes into numbers: random variables and probability distributions
The big ideaA random variable gives a number to every outcome of an experiment; its probability distribution lists each possible number with its chance, and those chances always add up to 1.
In simple words
Toss two coins. The results are pairs like "head, tail", which you can't add or average. So you decide on a rule, such as "count the heads". Now every result has a number: 2, 1, 1 or 0. That rule is a random variable. Then you list how likely each number is.
What is a random variable?
A random variable is a real-valued function defined on the sample space of a random experiment. In plain words: a rule that turns each outcome into a real number. It is written with a capital letter, usually X.
Toss a coin twice: S = {HH, HT, TH, TT}. Let X = the number of heads. Then
\[ X(\text{HH}) = 2, \quad X(\text{HT}) = 1, \quad X(\text{TH}) = 1, \quad X(\text{TT}) = 0 \]
You can define more than one random variable on the same sample space. Let Y = 1 if the two tosses match and 0 if they differ. Then Y(HH) = 1, Y(HT) = 0, Y(TH) = 0, Y(TT) = 1. X and Y are two different random variables on the same S.
Other examples: the sum of two dice; the number of defective bulbs in a box of 10; your winnings in rupees in a game at a mela.
Don't mix these up
- Despite its name, a random variable is not a "variable" you solve for, and it is not random by itself: it is a fixed rule (a function). The randomness is in which outcome happens.
- X is the rule; a small x is one of its values. "X = 1" is an event: here {HT, TH}.
Try it: pick a rule, then watch the 36 outcomes stack themselves into a distribution.
Probability distribution
Not in the current textbook, but JEE asks it: the rationalised book stops after defining a random variable. Older editions went on to probability distributions, mean and variance, and JEE Main still sets questions on them (often "find k" or "find the mean"), so learn the rest of this page and the next two.
Since "X = x" is an event, it has a probability, written P(X = x). The probability distribution of X is the list of all its possible values \( x_1, x_2, \dots, x_n \) with their probabilities \( p_1, p_2, \dots, p_n \), where \( p_i = \text{P}(X = x_i) \). It must satisfy
\[ p_i \ge 0 \text{ for every } i \quad \text{and} \quad p_1 + p_2 + \dots + p_n = 1 \]
A random variable like these, with values you can list one by one, is a discrete random variable.
Worked examples
- Heads in three tosses. The 8 outcomes give X = 0 once (TTT), 1 three times, 2 three times and 3 once (HHH).
x 0 1 2 3 P(X = x) \( \frac18 \) \( \frac38 \) \( \frac38 \) \( \frac18 \) - Find k. P(X = x) = kx for x = 1, 2, 3, 4. The probabilities must add to 1: \( k(1 + 2 + 3 + 4) = 10k = 1 \), so \( k = \frac1{10} \). Then P(X ≥ 3) \( = \frac{3}{10} + \frac{4}{10} = \frac{7}{10} \).
- Aces in two cards. Two cards are drawn one by one without replacement; X = number of aces. Using the multiplication rule:
\( \text{P}(X = 0) = \frac{48}{52} \times \frac{47}{51} = \frac{188}{221} \), \( \text{P}(X = 1) = 2 \times \frac{4}{52} \times \frac{48}{51} = \frac{32}{221} \) (ace first or ace second), \( \text{P}(X = 2) = \frac{4}{52} \times \frac{3}{51} = \frac{1}{221} \).
Check: \( \frac{188 + 32 + 1}{221} = 1 \).
Try it. Two dice are rolled and X is the larger of the two numbers. Find P(X = 6) and P(X = 1).
Answer
- Random variable
- A rule (real-valued function) giving a number to every outcome in S.
- Discrete random variable
- One whose values can be listed: 0, 1, 2, …
- Probability distribution
- The table of values of X and their probabilities.
- P(X = x)
- The chance that the random variable takes the value x.
Words to know
Which of these tables is a valid probability distribution?
- x: 0, 1, 2 with P: 0.4, 0.4, 0.3
- x: 0, 1, 2 with P: 0.6, 0.5, −0.1
- x: −1, 0, 5 with P: 0.2, 0.5, 0.3
P(X = x) = k for x = 0, 1, 2 and 2k for x = 3. What is k?
- \( \frac14 \)
- \( \frac15 \)
- \( \frac13 \)
A random variable is best described as
- an event of the sample space
- a function from the sample space to the real numbers
- the probability of an outcome
Picture and video credits