Questions on random variables and the binomial distribution divide into two groups. The first group is routine: write the distribution table, compute the mean and variance, use $n$, $p$, $q$. The second group is where marks are won and lost: a variable that looks binomial and is not, a game whose fair price needs $E(X^2)$, an expected count that is easy by linearity and brutal by enumeration, a mode that needs the ratio of consecutive terms. This post concentrates on the second group, with enough worked problems that each technique becomes a reflex.
The chapter guide to random variables and the binomial distribution covers the basic table, mean, variance, the formulas for $B(n,p)$ and the standard questions. Here we go further: the algebra of expectation and variance, the indicator-variable trick, the ratio method for the mode and for solving parameters, sums of binomial variables, repeated compound trials, and a non-binomial waiting-time variable that students meet in disguise. The preceding probability posts are conditional probability and independence and Bayes' theorem and total probability, and the statistics side is in Statistics for JEE: mean, median, variance and dispersion. Twelve worked examples follow, each checked by exact arithmetic, enumeration or series before it was written down, then the traps, a recap and a plan.
What this post covers
All of it is in the JEE Main Mathematics syllabus (syllabus page). The areas:
| Area | The skill |
|---|---|
| Distribution tables | Unknown constants, mean, $E(X^2)$, variance |
| Linear transformations | $E(aX+b)$, $\mathrm{Var}(aX+b)$ and expressions built from them |
| Expected value of a game | Fair price, expected gain |
| Indicator variables | Expected counts by linearity |
| Binomial distribution | Ratio method, mode, cumulative sums, sums of independent binomials |
| Compound trials | A trial that is itself the result of a smaller experiment |
| Waiting times | The geometric variable, its mean, variance and parity |
Random variables: the algebra you need
A random variable $X$ with values $x_i$ and probabilities $p_i$ has
$$E(X)=\sum x_ip_i,\qquad E(X^2)=\sum x_i^2p_i,\qquad \mathrm{Var}(X)=E(X^2)-[E(X)]^2.$$
Two rules about transformations carry half of this chapter:
$$E(aX+b)=aE(X)+b,\qquad \mathrm{Var}(aX+b)=a^2\,\mathrm{Var}(X).$$
A shift changes the mean and leaves the spread alone; a multiplier $a$ scales the variance by $a^2$ (the standard deviation by $|a|$). So $E\big[(aX+b)^2\big]=\mathrm{Var}(aX+b)+[E(aX+b)]^2=a^2\mathrm{Var}(X)+[aE(X)+b]^2$. When a question asks for the expectation of a squared linear expression, use this identity instead of expanding term by term.
Expectation is linear: $E(X+Y)=E(X)+E(Y)$ always, whether or not $X$ and $Y$ are independent. Variance adds, $\mathrm{Var}(X+Y)=\mathrm{Var}(X)+\mathrm{Var}(Y)$, only when $X$ and $Y$ are independent (or at least uncorrelated).
Finding an unknown constant. The probabilities must be non-negative and add to $1$. A statement such as $P(X=x)=k(3-|x|)$ over a given set of values becomes an equation in $k$; compute $k$ first, then everything else.
Symmetry. If the distribution is symmetric about a value $c$ ($P(X=c+t)=P(X=c-t)$ for all $t$), then $E(X)=c$. It saves a calculation and is a good check.
Also read: Distribution Problems and Derangements for JEE
Expected value of a game
A game with payoff $W$ has expected gain $E(W)$. The fair price to play is the price $c$ for which $E(W-c)=0$, so $c=E(W)$. A game is favourable to the player when $E(W)$ exceeds the price paid. Questions give the payoffs for specific outcomes (a six, a double, a head); the work is listing the outcomes and their probabilities without double counting. If the payoff is a function of a number rolled, such as its square, compute $E$ of that function directly: $E(X^2)$ for a die is $\dfrac{1+4+9+16+25+36}{6}=\dfrac{91}{6}$, and it is not $[E(X)]^2$.
Indicator variables and linearity
An indicator variable $I_A$ equals $1$ if event $A$ occurs and $0$ otherwise, so $E(I_A)=P(A)$. If a count $X$ is a sum of indicators, $X=I_1+I_2+\dots+I_m$, then by linearity $$E(X)=P(A_1)+P(A_2)+\dots+P(A_m),$$ even if the events are dependent. This is the efficient way to find an expected count: the mean number of heads, matches, repeated letters, adjacent pairs, fixed points.
For the variance of a sum of dependent indicators you also need the covariances, which is harder; the question usually either gives a result you can quote or involves independent trials where variances add.
Adjacent heads. In $n$ tosses of a fair coin, let $X$ be the number of positions $i$ where toss $i$ and toss $i+1$ are both heads. There are $n-1$ adjacent pairs, each a head-head pair with probability $\tfrac14$. So $E(X)=\dfrac{n-1}{4}$, with no need to count sequences.
Matching problem. If $n\ge2$ letters are placed in $n$ addressed envelopes at random, the number $X$ of letters in the right envelope is a sum of $n$ indicators, each with probability $\tfrac1n$, so $E(X)=1$. A longer calculation, which is a standard result, gives $\mathrm{Var}(X)=1$ as well.
The binomial distribution: what to add to the basics
If $X\sim B(n,p)$, then $P(X=r)=\binom nr p^rq^{n-r}$ with $q=1-p$, $E(X)=np$ and $\mathrm{Var}(X)=npq$. The variance follows because $X$ is a sum of $n$ independent Bernoulli indicators, each of variance $pq$. A reminder of when it applies: a fixed number $n$ of trials, each with two outcomes, constant probability $p$, independence. Sampling without replacement from a small population breaks the last two conditions; use the hypergeometric reasoning of counting instead.
The ratio method. The ratio of consecutive probabilities is
$$\frac{P(X=r+1)}{P(X=r)}=\frac{n-r}{r+1}\cdot\frac pq.$$
It does three jobs.
- The mode. $P(X=r+1)>P(X=r)$ exactly when $(n-r)p>(r+1)q$, that is $r<(n+1)p-1$. So the most probable value is $\lfloor(n+1)p\rfloor$. If $(n+1)p$ is an integer, the values $(n+1)p-1$ and $(n+1)p$ tie and there are two modes.
- Solving for parameters. When a question says $P(X=r)=P(X=s)$ or gives the ratio of two terms, write both with $\binom nr$ and divide.
- Fast computation. Start from one term and generate the next by the ratio instead of recomputing powers.
Symmetry. For $B(n,p)$, $P(X=r)=\binom nr p^rq^{n-r}$ and the distribution for $B(n,q)$ is its mirror image under $r\to n-r$. At $p=\tfrac12$ the distribution is symmetric about $\tfrac n2$.
Finding $n$ and $p$ from moments. Given $E(X)=\mu$ and $\mathrm{Var}(X)=\sigma^2$: $q=\dfrac{\sigma^2}{\mu}$, then $p=1-q$ and $n=\dfrac{\mu}{p}$. The value of $n$ must come out a whole number, and a non-integer signals either an arithmetic error or that the distribution is not binomial. If instead you are given $E(X^2)$, use $\mathrm{Var}(X)=E(X^2)-\mu^2$ first.
Sums of independent binomials. If $X\sim B(m,p)$ and $Y\sim B(n,p)$ are independent with the same $p$, then $X+Y\sim B(m+n,p)$: it counts successes in $m+n$ trials. If the $p$ values differ, the sum is not binomial.
Compound trials. Sometimes the "trial" is itself a small experiment: three coins tossed together, and a success means all show the same face. Compute the probability $p$ of success for one repetition (here $\tfrac14$), then apply $B(n,p)$ across the repetitions.
Cumulative probabilities. "At least $k$" is usually easier as $1-P(X\le k-1)$ when $k$ is small relative to $n$, and "at most $k$" is a direct sum when $k$ is small. For "at least one", $1-q^n$ is the standard shortcut.
The geometric variable: not binomial, but in the same chapter
If independent trials with success probability $p$ are repeated until the first success, and $X$ is the number of trials, then $P(X=k)=q^{k-1}p$ for $k=1,2,3,\dots$ The values are unbounded, so this is not binomial. The mean and variance come from series:
$$E(X)=\sum_{k\ge1}kq^{k-1}p=\frac1p,\qquad \mathrm{Var}(X)=\frac q{p^2}.$$
For a fair coin $E(X)=2$ and $\mathrm{Var}(X)=2$. The probability that the first success arrives on an even trial is $\sum_{j\ge1}q^{2j-1}p=\dfrac{pq}{1-q^2}=\dfrac q{1+q}$, which is $\tfrac13$ for a fair coin. The odd values get at least the first toss's probability $\tfrac12$, so the even values hold less than half.
Question patterns that keep appearing
- A distribution table with a constant $k$, then the mean, variance or $E(X^2)$.
- $E$ of a squared linear expression given the mean and variance.
- The fair price or expected gain of a dice or coin game.
- An expected count by indicators (adjacent heads, matches).
- $P(X=r)=P(X=s)$ for a binomial, giving $p$, then another probability.
- The mode of a binomial, or parameters from the mean and variance.
- "At least" or "at most" probabilities with a manufacturing or exam context.
- A compound trial repeated $n$ times.
- The sum of independent binomial variables.
- A statement-style question about a given binomial distribution (multiple-correct).
- A waiting-time variable (first success) in a coin or die context.
Worked examples
Example 1 (easy, numerical value)
A random variable $X$ takes the values $-2,-1,0,1,2$ with $P(X=x)=k(3-|x|)$. Find $3\,\mathrm{Var}(X)$.
Solution. The weights are $1,2,3,2,1$ for $x=-2,\dots,2$, with sum $9$, so $k=\tfrac19$. The distribution is symmetric about $0$, so $E(X)=0$. Then $E(X^2)=\dfrac{4\cdot1+1\cdot2+0\cdot3+1\cdot2+4\cdot1}{9}=\dfrac{12}{9}=\dfrac43$. So $\mathrm{Var}(X)=\dfrac43$ and $3\,\mathrm{Var}(X)=4$.
Answer: 4. Because the mean is $0$, the variance equals $E(X^2)$.
Example 2 (easy, single correct)
If $E(X)=2$ and $\mathrm{Var}(X)=1$, then $E\big[(2X-3)^2\big]$ equals
(A) $1$ (B) $4$ (C) $5$ (D) $9$
Solution. $E(2X-3)=2\cdot2-3=1$ and $\mathrm{Var}(2X-3)=4\cdot1=4$. Then $E\big[(2X-3)^2\big]=\mathrm{Var}+\text{mean}^2=4+1=5$.
Answer: (C). Option (B) is the variance alone, and option (A) is the square of the mean: each is only one part of $E(Y^2)$.
Example 3 (medium, numerical value)
A player throws two fair dice. For a double six he receives $\text{₹}20$, for exactly one six he receives $\text{₹}5$, and otherwise he receives nothing. Let $E$ be the expected receipt in rupees. Find $36E$.
Solution. $P(\text{double six})=\tfrac1{36}$. $P(\text{exactly one six})=2\cdot\tfrac16\cdot\tfrac56=\tfrac{10}{36}$. So $E=20\cdot\tfrac1{36}+5\cdot\tfrac{10}{36}=\tfrac{20+50}{36}=\tfrac{70}{36}$, and $36E=70$.
Answer: 70. The fair price of the game is about $\text{₹}1.94$. Adding the two ways of getting exactly one six is the step most often missed.
Example 4 (medium, numerical value)
A fair coin is tossed $10$ times. Let $X$ be the number of positions $i$ ($1\le i\le9$) at which toss $i$ and toss $i+1$ are both heads. Find $4E(X)$.
Solution. There are $9$ adjacent pairs. For each, the probability of two heads is $\tfrac14$. By linearity of expectation, $E(X)=\dfrac94$, and $4E(X)=9$.
Answer: 9. The dependence between overlapping pairs is irrelevant to the mean. A direct enumeration over all $1024$ sequences gave the same $\tfrac94$.
Example 5 (medium, numerical value)
Five letters are placed at random in five addressed envelopes, one in each. Let $X$ be the number of letters in their correct envelopes. Find $E(X)+\mathrm{Var}(X)$.
Solution. Each letter is correct with probability $\tfrac15$, so $E(X)=5\cdot\tfrac15=1$. For the variance, an enumeration of the $120$ arrangements gives $E(X^2)=2$ and hence $\mathrm{Var}(X)=2-1=1$. This agrees with the standard result that $E(X)=\mathrm{Var}(X)=1$ for every $n\ge2$. The required sum is $2$.
Answer: 2. The variance is not $npq$: the letters' correctness events are dependent, so the binomial formula does not apply.
Example 6 (medium, numerical value)
For $X\sim B(6,p)$ it is given that $P(X=2)=P(X=4)$. Find $16\,P(X=3)$.
Solution. $\binom62p^2q^4=\binom64p^4q^2$ and $\binom62=\binom64=15$, so $q^2=p^2$ and, as both are positive, $p=q=\tfrac12$. Then $P(X=3)=\binom63\left(\tfrac12\right)^6=\dfrac{20}{64}=\dfrac5{16}$, and $16\,P(X=3)=5$.
Answer: 5. The equality of probabilities at positions symmetric about $n/2=3$ forces $p=\tfrac12$.
Example 7 (medium, numerical value)
A packet contains $10$ bulbs. Each bulb is defective with probability $0.05$, independently. Find the probability that the packet has at most one defective bulb, correct to two decimal places.
Solution. $P(0)=0.95^{10}\approx0.5987$ and $P(1)=10(0.05)(0.95)^9\approx0.3151$. The sum is about $0.9139$, which is $0.91$ to two decimal places.
Answer: 0.91. Using the ratio $\dfrac{P(1)}{P(0)}=\dfrac{10}{1}\cdot\dfrac{0.05}{0.95}\approx0.5263$ gives $P(1)\approx0.5263\times0.5987=0.3151$, a useful check.
Example 8 (medium, numerical value)
Three fair coins are tossed together. A repetition is a "success" if all three show the same face. The experiment is repeated $4$ times independently. If $p$ is the probability of exactly two successes, find $128p$.
Solution. For one repetition, all-same has probability $\tfrac28=\tfrac14$. The number of successes in four repetitions is $B\left(4,\tfrac14\right)$, so $P(\text{exactly two})=\binom42\left(\tfrac14\right)^2\left(\tfrac34\right)^2=6\cdot\dfrac{9}{256}=\dfrac{54}{256}=\dfrac{27}{128}$. So $128p=27$.
Answer: 27. Applying $B(12,\cdot)$ to the individual tosses would answer a different question; the trial here is the whole triple of coins.
Example 9 (hard, single correct)
$X\sim B\left(4,\tfrac12\right)$ and $Y\sim B\left(6,\tfrac12\right)$ are independent. The probability that $X+Y=5$ is
(A) $\dfrac{63}{256}$ (B) $\dfrac{5}{16}$ (C) $\dfrac{21}{64}$ (D) $\dfrac{1}{2}$
Solution. The sum counts heads in $10$ fair tosses, so $X+Y\sim B\left(10,\tfrac12\right)$ and $P(X+Y=5)=\dfrac{\binom{10}5}{2^{10}}=\dfrac{252}{1024}=\dfrac{63}{256}$. A direct convolution $\sum_i\binom4i\binom6{5-i}=252$ confirms the count.
Answer: (A). Option (B) is the value for $B(6,\tfrac12)$ at $r=3$, a trap when the sum is not recognised as binomial.
Example 10 (hard, multiple correct, Advanced style)
Let $X\sim B\left(12,\tfrac13\right)$. Which statements are correct?
(A) $E(X)=4$. (B) $\mathrm{Var}(X)=\tfrac83$. (C) The most probable value of $X$ is $4$. (D) $P(X=5)>P(X=3)$.
Solution. $E(X)=12\cdot\tfrac13=4$ and $\mathrm{Var}(X)=12\cdot\tfrac13\cdot\tfrac23=\tfrac83$, so (A) and (B) hold. For the mode, $(n+1)p=\tfrac{13}3\approx4.33$, not an integer, so the mode is $\lfloor4.33\rfloor=4$ and (C) holds. For (D), the ratio method gives $\dfrac{P(4)}{P(3)}=\dfrac{9}{4}\cdot\dfrac12=1.125$ and $\dfrac{P(5)}{P(4)}=\dfrac85\cdot\dfrac12=0.8$, so $P(5)=0.8\times1.125\,P(3)=0.9\,P(3)<P(3)$. Numerically $P(3)\approx0.212$ and $P(5)\approx0.191$. So (D) fails.
Answer: (A), (B), (C). The distribution rises to $4$ and then falls, but the two sides of the peak are not mirror images when $p\ne\tfrac12$, so one step above the mode need not match one step below it.
Example 11 (hard, single correct)
A fair coin is tossed until the first head appears, and $X$ is the number of tosses. The probability that $X$ is even is
(A) $\dfrac13$ (B) $\dfrac12$ (C) $\dfrac23$ (D) $\dfrac14$
Solution. $P(X=k)=\left(\tfrac12\right)^k$. The even values $2,4,6,\dots$ give $\tfrac14+\tfrac1{16}+\tfrac1{64}+\cdots=\dfrac{1/4}{1-1/4}=\dfrac13$. Equivalently let $a=P(X\text{ even})$: the first toss is a head with probability $\tfrac12$ (then $X=1$, odd); with probability $\tfrac12$ it is a tail, after which $X$ is even exactly when the remaining count is odd, probability $1-a$. So $a=\tfrac12(1-a)$ and $a=\tfrac13$.
Answer: (A). The mean of the same variable is $\sum k\left(\tfrac12\right)^k=2$ and its variance is $2$; a numerical partial sum to $200$ terms agrees to many decimal places.
Example 12 (medium, numerical value)
A binomial variable has mean $6$ and $E(X^2)=38.4$. Find $n$.
Solution. $\mathrm{Var}(X)=E(X^2)-\mu^2=38.4-36=2.4$. Then $q=\dfrac{2.4}{6}=0.4$, $p=0.6$ and $n=\dfrac{6}{0.6}=10$. Check: $npq=10(0.6)(0.4)=2.4$.
Answer: 10. The step students miss is converting $E(X^2)$ to the variance before using $npq$.
Common traps
- Squaring the mean instead of using $E(X^2)$. $E(X^2)\ne[E(X)]^2$. The difference is the variance. A die has $E(X^2)=\tfrac{91}6$ and $[E(X)]^2=\tfrac{49}4$.
- Forgetting $a^2$ in the variance. $\mathrm{Var}(aX+b)=a^2\mathrm{Var}(X)$. The shift $b$ never appears, and a negative $a$ gives a positive factor $a^2$.
- Using $npq$ for a non-binomial count. The matching problem has variance $1$ and not $npq$, because the indicators are dependent. Apply $npq$ only to independent trials with constant probability.
- Mixing up $n$ and the number of trials in a compound experiment. In Example 8, $n=4$ repetitions, not $12$ coin tosses.
- Adding variances of dependent variables. The sum rule $\mathrm{Var}(X+Y)=\mathrm{Var}X+\mathrm{Var}Y$ needs independence. Expectations add always.
- Probabilities that do not sum to $1$. In a table with an unknown constant, find the constant first; do not compute a mean with the unnormalised weights.
- Missing a tie in the mode. If $(n+1)p$ is an integer there are two modes. For $B(9,0.5)$, $(n+1)p=5$, so $4$ and $5$ both are modes.
- Treating sampling without replacement as binomial. Draws from a small population without replacement change $p$ after each draw. The mean may still be $np$, but the variance and probabilities are not the binomial ones.
- Confusing "at least" with "exactly". "At least two defectives" is $1-P(0)-P(1)$, not $P(2)$.
- Rounding early in a numerical-value answer. Powers of numbers near $1$, such as $0.95^{10}$, are sensitive to rounding. Keep four or five decimal places until the last step.
- Geometric variable treated as binomial. "Toss until the first head" has no fixed number of trials; its values are $1,2,3,\dots$ and its mean is $\tfrac1p$, not $np$.
A one-page recap
| Item | Result |
|---|---|
| Mean and variance | $E(X)=\sum x_ip_i$; $\mathrm{Var}=E(X^2)-[E(X)]^2$ |
| Linear change | $E(aX+b)=aE+b$; $\mathrm{Var}(aX+b)=a^2\mathrm{Var}$ |
| Squared linear expression | $E(Y^2)=\mathrm{Var}(Y)+[E(Y)]^2$ |
| Indicator count | $E(X)=\sum P(A_i)$, dependence irrelevant |
| Binomial | $P(X=r)=\binom nrp^rq^{n-r}$; mean $np$; variance $npq$ |
| Ratio | $\dfrac{P(r+1)}{P(r)}=\dfrac{n-r}{r+1}\cdot\dfrac pq$ |
| Mode | $\lfloor(n+1)p\rfloor$, two modes if $(n+1)p$ is an integer |
| From mean and variance | $q=\dfrac{\sigma^2}{\mu}$, $p=1-q$, $n=\dfrac\mu p$ |
| Sum of binomials | same $p$: $B(m,p)+B(n,p)=B(m+n,p)$ |
| Geometric | $P(X=k)=q^{k-1}p$; mean $\tfrac1p$; variance $\tfrac q{p^2}$ |
| At least one | $1-q^n$ |
Also read: Binomial Theorem for JEE: General Term and Properties
How to practise this chapter
The Probability chapter has three chapter tests, in order: Chapter Test 1, Chapter Test 2 and Chapter Test 3, each with 15 questions in 36 minutes. The most relevant extra practice is the random variables Topic Drill, with 20 questions in 48 minutes on distribution tables, means and variances. The Statistics chapter (Chapter Test 1 onward) trains the related ideas of mean and variance for data. Read the book chapter beside the tests: English, Hindi and Telugu, with the Statistics chapter as the companion.
A seven-day plan, our suggestion:
| Day | Work |
|---|---|
| 1 | Tables, $E(X^2)$, linear changes; Examples 1 and 2; five tables of your own |
| 2 | Games and fair price; Example 3; invent a game with three payoffs and compute its fair price |
| 3 | Indicator variables; Examples 4 and 5; apply the method to expected number of pairs of equal digits |
| 4 | The ratio method, mode, parameters from moments; Examples 6, 10 and 12 |
| 5 | Cumulative probabilities and compound trials; Examples 7 and 8 |
| 6 | Sums of binomials and the geometric variable; Examples 9 and 11; Chapter Tests 1 and 2 timed |
| 7 | Chapter Test 3 and the random variables drill; rewrite the recap from memory |
For mixed practice, JEE Main Mathematics Practice Test 1 combines this chapter with others and JEE Main Mock 1 adds time pressure. The mock, practice and chapter tests are part of the Pro Pass; the free 10-question JEE Main mini mock needs no sign-up. For planning see JEE Main Mathematics preparation strategy and the dispersion practice in measures of dispersion problems.
Frequently asked questions
How do I decide whether a problem is binomial?
Check four things: a fixed number of trials, two outcomes per trial, the same probability each time, and independence between trials. If any fails, as with draws without replacement or "until the first success", the binomial formulas do not apply.
Why does linearity of expectation work without independence?
The expectation of a sum is the sum of the expectations because expectation is an average and averaging is linear. Dependence affects how the values are spread, which is the variance, but not the mean. That is why the indicator method gives expected counts even for overlapping events.
What is the fastest way to find the mode of a binomial?
Compute $(n+1)p$. If it is not an integer, the mode is its floor. If it is an integer, both that integer and the one below are modes. The ratio method confirms the direction in which the probabilities rise or fall.
When do I use $E(X^2)$ and when the variance?
Use $E(X^2)$ when the question asks for the mean of a squared quantity, or when a game's payoff depends on the square. Use the variance for spread. The two are linked by $E(X^2)=\mathrm{Var}(X)+[E(X)]^2$.
Is the geometric variable really part of this chapter?
Questions of the form "toss until the first head" appear in JEE Main probability problems, often asking for a probability or an expected number. Check the syllabus page for the formal topic list; the series technique shown here is enough for those questions.
How should I present a numerical-value answer?
Give the final value in the form the question asks, usually an integer or a value correct to two decimal places, and keep fractions through the calculation to avoid rounding errors. Follow the instructions printed with the paper for the format.
Can the variance of a binomial variable ever exceed its mean?
No. $\mathrm{Var}(X)=npq=\mu q$ and $q<1$, so the variance is always smaller than the mean. If a question gives a variance larger than the mean for a binomial variable, there is an error in the data.

Comments (0)
No comments yet. Be the first to share your thoughts.