WishWasTraining Academy
NDA & Naval Academy entrance exam school
โ† home
Chapter M8-8 ยท 8 of 8 in Statistics and Probability ยท 12 min read

Random variables and the binomial distribution

34 real NDA questions of this kind in the 19 papers of 2017 to 2026.

Try three questions free โ†“
This chapter has a video lessonWatch it, practise with a drill and keep your record, all with a free account. No fee, no card.

Why this chapter matters. This chapter drew 17 questions in the seven papers from NDA II 2023 to NDA II 2026, at least one in every paper. The favourite question gives the mean and the variance (or standard deviation) of a binomial distribution and asks for โ€‹nโ€‹, โ€‹pโ€‹ or โ€‹P(X = 0)โ€‹: it came in five of the seven papers and takes three lines. The others ask for โ€‹P(X = r)โ€‹ from the formula, for โ€‹pโ€‹ when two probabilities are compared, or for the conditions under which the distribution may be used.

What you will be able to do

  • Write the probability distribution of a random variable and find its mean and variance.
  • Say when the binomial distribution applies, and use โ€‹P(X = r) = {}^nC_r\,p^r q^{n-r}โ€‹.
  • Find โ€‹nโ€‹ and โ€‹pโ€‹ from the mean โ€‹npโ€‹ and the variance โ€‹npqโ€‹.
  • Find "at least one" and "at least two" probabilities through the complement.

Before you start you should know: independent events (Chapter M8-6), โ€‹{}^nC_rโ€‹ (Chapter M1-9), the binomial theorem (Chapter M1-10), and mean and variance (Chapters M8-2 and M8-3).

1. Random variable and its distribution

A random variable is a number decided by the outcome of a random experiment. It is written with a capital letter such as โ€‹Xโ€‹.

Toss two coins and let โ€‹Xโ€‹ be the number of heads. The outcomes โ€‹TTโ€‹, โ€‹HTโ€‹, โ€‹THโ€‹, โ€‹HHโ€‹ give โ€‹X = 0, 1, 1, 2โ€‹. The table of the values of โ€‹Xโ€‹ with their probabilities is the probability distribution of โ€‹Xโ€‹:

โ€‹Xโ€‹ 0 1 2
โ€‹P(X)โ€‹ โ€‹\dfrac{1}{4}โ€‹ โ€‹\dfrac{1}{2}โ€‹ โ€‹\dfrac{1}{4}โ€‹

In every probability distribution, each probability lies from 0 to 1 and the probabilities add up to 1.

A bar chart of the number of heads when two coins are tossed: probability one quarter for 0 heads (TT), one half for 1 head (HT, TH) and one quarter for 2 heads (HH)

2. Mean and variance of a random variable

If โ€‹Xโ€‹ takes the values โ€‹x_1, x_2, \ldotsโ€‹ with probabilities โ€‹p_1, p_2, \ldotsโ€‹, then

\text{Mean } E(X) = \sum x_i p_i \qquad \text{Variance } \text{Var}(X) = \sum x_i^2 p_i - \left[E(X)\right]^2

The standard deviation is the square root of the variance. These are the formulas of Chapter M8-3 with probabilities in place of โ€‹\dfrac{f_i}{N}โ€‹.

For the two coins: โ€‹E(X) = 0 \times \dfrac{1}{4} + 1 \times \dfrac{1}{2} + 2 \times \dfrac{1}{4} = 1โ€‹. โ€‹\sum x_i^2 p_i = 0 + \dfrac{1}{2} + 1 = \dfrac{3}{2}โ€‹. Variance โ€‹= \dfrac{3}{2} - 1^2 = \dfrac{1}{2}โ€‹.

A new variable โ€‹Y = aX + bโ€‹. The rules of Chapter M8-3 hold again:

E(aX + b) = a\,E(X) + b \qquad \text{Var}(aX + b) = a^2\,\text{Var}(X)

3. The binomial distribution

Many experiments are the same simple trial repeated: toss a coin 6 times, fire 7 shots, test 5 patients. The binomial distribution gives the probability of each number of successes. It may be used when all four conditions hold:

  1. The number of trials โ€‹nโ€‹ is fixed and finite.
  2. The trials are independent.
  3. Each trial has only two outcomes, called success and failure.
  4. The probability of success, โ€‹pโ€‹, is the same in every trial.

Such trials are called Bernoulli trials. Write โ€‹q = 1 - pโ€‹ for the probability of failure, and let โ€‹Xโ€‹ be the number of successes in the โ€‹nโ€‹ trials. Then

P(X = r) = {}^nC_r\,p^r\,q^{n-r}, \qquad r = 0, 1, 2, \ldots, n

Why. One particular order with โ€‹rโ€‹ successes and โ€‹n - rโ€‹ failures has probability โ€‹p^r q^{n-r}โ€‹, because the trials are independent. The โ€‹rโ€‹ successes can be placed among the โ€‹nโ€‹ trials in โ€‹{}^nC_rโ€‹ ways. For 3 trials and 2 successes the orders are โ€‹SSFโ€‹, โ€‹SFSโ€‹, โ€‹FSSโ€‹: three orders, each with probability โ€‹p^2 qโ€‹.

The eight orders of success S and failure F in three trials, grouped by the number of successes: FFF; SFF, FSF, FFS; SSF, SFS, FSS; SSS; with probabilities q cubed, 3pq squared, 3p squared q and p cubed

The probabilities are the terms of the expansion of โ€‹(q + p)^nโ€‹, which is why the distribution is called binomial, and why they add up to 1. We write โ€‹X \sim B(n, p)โ€‹; โ€‹nโ€‹ and โ€‹pโ€‹ are the parameters.

Two special cases are used all the time: โ€‹P(X = 0) = q^nโ€‹ (no success) and โ€‹P(X = n) = p^nโ€‹ (all successes).

4. Mean and variance of the binomial distribution

Quantity Formula
Mean โ€‹npโ€‹
Variance โ€‹npqโ€‹
Standard deviation โ€‹\sqrt{npq}โ€‹

Since โ€‹qโ€‹ is less than 1, the variance of a binomial distribution is always less than its mean.

The picture shows two binomial distributions with โ€‹n = 4โ€‹. With โ€‹p = \dfrac{1}{2}โ€‹ the shape is symmetric. With โ€‹p = \dfrac{1}{4}โ€‹ the peak moves to the left. In both, the peak is at the mean โ€‹npโ€‹.

Bar charts of two binomial distributions: B(4, 1/2) with probabilities 1, 4, 6, 4, 1 over 16, symmetric about the mean 2; and B(4, 1/4) with probabilities 81, 108, 54, 12, 1 over 256, with its peak at the mean 1

To find โ€‹nโ€‹ and โ€‹pโ€‹ from the mean and the variance:

q = \frac{\text{variance}}{\text{mean}}, \qquad p = 1 - q, \qquad n = \frac{\text{mean}}{p}

If the standard deviation is given, square it first to get the variance.

5. Worked examples

Example 1. A random variable โ€‹Xโ€‹ has this distribution. Find โ€‹kโ€‹, the mean and the variance.

โ€‹Xโ€‹ 1 2 3 4
โ€‹P(X)โ€‹ โ€‹kโ€‹ โ€‹2kโ€‹ โ€‹3kโ€‹ โ€‹4kโ€‹

The probabilities add up to 1: โ€‹10k = 1โ€‹, so โ€‹k = \dfrac{1}{10}โ€‹. Mean โ€‹= \dfrac{1 \times 1 + 2 \times 2 + 3 \times 3 + 4 \times 4}{10} = \dfrac{30}{10} = 3โ€‹. โ€‹\sum x_i^2 p_i = \dfrac{1 + 8 + 27 + 64}{10} = 10โ€‹. Variance โ€‹= 10 - 3^2 = 1โ€‹.

Example 2. A die is thrown 4 times. Find the probability of getting exactly two sixes.

Here โ€‹n = 4โ€‹, โ€‹p = \dfrac{1}{6}โ€‹, โ€‹q = \dfrac{5}{6}โ€‹. โ€‹P(X = 2) = {}^4C_2 \left(\dfrac{1}{6}\right)^2 \left(\dfrac{5}{6}\right)^2 = 6 \times \dfrac{25}{1296} = \dfrac{150}{1296} = \dfrac{25}{216}โ€‹.

Example 3. A fair coin is tossed 6 times. Find the probability of at least 2 heads.

โ€‹n = 6โ€‹, โ€‹p = q = \dfrac{1}{2}โ€‹. Use the complement: โ€‹P(X = 0) = \dfrac{1}{64}โ€‹ and โ€‹P(X = 1) = \dfrac{6}{64}โ€‹. So โ€‹P(X \ge 2) = 1 - \dfrac{7}{64} = \dfrac{57}{64}โ€‹.

Example 4. A binomial distribution has mean 3 and variance 2. Find โ€‹nโ€‹, โ€‹pโ€‹ and โ€‹P(X = 0)โ€‹.

โ€‹q = \dfrac{2}{3}โ€‹, so โ€‹p = \dfrac{1}{3}โ€‹ and โ€‹n = \dfrac{3}{1/3} = 9โ€‹. โ€‹P(X = 0) = q^9 = \left(\dfrac{2}{3}\right)^9โ€‹.

Example 5. A random variable โ€‹Xโ€‹ has standard deviation 2. Find the variance of โ€‹Y = 3X - 2โ€‹.

โ€‹\text{Var}(X) = 2^2 = 4โ€‹. โ€‹\text{Var}(Y) = 3^2 \times 4 = 36โ€‹. Subtracting 2 has no effect on the variance.

6. From the real papers

Try each for 75 seconds before reading the solution.

NDA II 2023, Q109. The probability that a person recovers from a disease is 0.8. What is the probability that exactly 2 persons out of 5 will recover from the disease?

(a) 0.00512โ€ƒโ€ƒ(b) 0.02048โ€ƒโ€ƒ(c) 0.2048โ€ƒโ€ƒ(d) 0.0512

Solution. โ€‹n = 5โ€‹, โ€‹p = 0.8โ€‹, โ€‹q = 0.2โ€‹. โ€‹P(X = 2) = {}^5C_2\,(0.8)^2 (0.2)^3 = 10 \times 0.64 \times 0.008 = 0.0512โ€‹. Answer (d).

NDA I 2024, Q115. An unbiased coin is tossed โ€‹nโ€‹ times. The probability of getting at least one tail is โ€‹pโ€‹ and the probability of at least two tails is โ€‹qโ€‹ and โ€‹p - q = \frac{5}{32}โ€‹. What is the value of โ€‹nโ€‹?

(a) โ€‹4โ€‹โ€ƒโ€ƒ(b) โ€‹5โ€‹โ€ƒโ€ƒ(c) โ€‹6โ€‹โ€ƒโ€ƒ(d) โ€‹7โ€‹

Solution. "At least one" minus "at least two" leaves "exactly one". โ€‹P(\text{exactly one tail}) = {}^nC_1 \left(\dfrac{1}{2}\right)^n = \dfrac{n}{2^n}โ€‹. So โ€‹\dfrac{n}{2^n} = \dfrac{5}{32} = \dfrac{5}{2^5}โ€‹, which gives โ€‹n = 5โ€‹. (In this question โ€‹pโ€‹ and โ€‹qโ€‹ are not the usual success and failure probabilities.) Answer (b).

NDA I 2025, Q107. Let โ€‹Xโ€‹ be a random variable following binomial distribution with parameters โ€‹n = 6โ€‹ and โ€‹p = kโ€‹. Further, โ€‹9P(X = 4) = P(X = 2)โ€‹. What is the value of โ€‹kโ€‹?

(a) 1/2โ€ƒโ€ƒ(b) 1/3โ€ƒโ€ƒ(c) 1/4โ€ƒโ€ƒ(d) 1/5

Solution. โ€‹9 \times {}^6C_4\,k^4 (1 - k)^2 = {}^6C_2\,k^2 (1 - k)^4โ€‹. Since โ€‹{}^6C_4 = {}^6C_2 = 15โ€‹, cancel 15 and โ€‹k^2 (1 - k)^2โ€‹: โ€‹9k^2 = (1 - k)^2โ€‹. Both โ€‹kโ€‹ and โ€‹1 - kโ€‹ are positive, so โ€‹3k = 1 - kโ€‹ and โ€‹k = \dfrac{1}{4}โ€‹. Answer (c).

NDA I 2025, Q118. The probability of a man hitting a target is 1/5. If the man fires 7 times, then what is the probability that he hits the target at least twice?

(a) โ€‹1 - \left(\frac{3}{5}\right)\left(\frac{4}{5}\right)^6โ€‹โ€ƒโ€ƒ(b) โ€‹1 - \left(\frac{3}{5}\right)\left(\frac{4}{5}\right)^7โ€‹โ€ƒโ€ƒ(c) โ€‹1 - \left(\frac{11}{5}\right)\left(\frac{4}{5}\right)^6โ€‹โ€ƒโ€ƒ(d) โ€‹1 - \left(\frac{11}{5}\right)\left(\frac{4}{5}\right)^7โ€‹

Solution. โ€‹n = 7โ€‹, โ€‹p = \dfrac{1}{5}โ€‹, โ€‹q = \dfrac{4}{5}โ€‹. โ€‹P(X = 0) = \left(\dfrac{4}{5}\right)^7โ€‹ and โ€‹P(X = 1) = 7 \times \dfrac{1}{5} \times \left(\dfrac{4}{5}\right)^6โ€‹. Their sum is โ€‹\left(\dfrac{4}{5}\right)^6 \left[\dfrac{4}{5} + \dfrac{7}{5}\right] = \dfrac{11}{5}\left(\dfrac{4}{5}\right)^6โ€‹. So โ€‹P(X \ge 2) = 1 - \dfrac{11}{5}\left(\dfrac{4}{5}\right)^6โ€‹. Answer (c).

NDA II 2025, Q106. Under which of the following conditions may binomial distribution be used? I. The number of trials is infinite and not fixed. II. The trials are independent. III. Each trial has two possible outcomes. Select the correct answer using the code given below.

(a) II onlyโ€ƒโ€ƒ(b) III onlyโ€ƒโ€ƒ(c) I and IIโ€ƒโ€ƒ(d) II and III

Solution. The number of trials must be fixed and finite, so I is wrong. II and III are two of the four conditions of section 3. Answer (d).

NDA I 2026, Q116. For a Binomial distribution with mean โ€‹6โ€‹ and standard deviation โ€‹\sqrt{2}โ€‹, what is the value of โ€‹P(X = 0)โ€‹?

(a) โ€‹\left(\frac{1}{3}\right)^9โ€‹โ€ƒโ€ƒ(b) โ€‹\left(\frac{2}{3}\right)^9โ€‹โ€ƒโ€ƒ(c) โ€‹\frac{1}{3}\left(\frac{2}{3}\right)^8โ€‹โ€ƒโ€ƒ(d) โ€‹\frac{2}{3}\left(\frac{1}{3}\right)^8โ€‹

Solution. Variance โ€‹= (\sqrt{2})^2 = 2โ€‹. โ€‹q = \dfrac{2}{6} = \dfrac{1}{3}โ€‹, โ€‹p = \dfrac{2}{3}โ€‹, โ€‹n = \dfrac{6}{2/3} = 9โ€‹. โ€‹P(X = 0) = q^9 = \left(\dfrac{1}{3}\right)^9โ€‹. Answer (a).

NDA I 2025, Q119. Let โ€‹Xโ€‹ be a random variable following binomial distribution whose mean and variance are 200 and 160 respectively. What is the value of the number of trials (โ€‹nโ€‹)?

(a) 500โ€ƒโ€ƒ(b) 1000โ€ƒโ€ƒ(c) 1500โ€ƒโ€ƒ(d) 2000

Solution. Mean โ€‹= np = 200โ€‹ and variance โ€‹= npq = 160โ€‹. Dividing, โ€‹q = \dfrac{160}{200} = 0.8โ€‹, so โ€‹p = 0.2โ€‹. Then โ€‹n = \dfrac{200}{0.2} = 1000โ€‹. Answer (b).

7. Mistakes that cost marks

  1. Leaving out โ€‹{}^nC_rโ€‹. โ€‹p^r q^{n-r}โ€‹ is the probability of one order only. There are โ€‹{}^nC_rโ€‹ orders.
  2. Taking โ€‹\dfrac{\text{variance}}{\text{mean}}โ€‹ as โ€‹pโ€‹. It is โ€‹qโ€‹. Then โ€‹p = 1 - qโ€‹. In โ€‹P(X = 0) = q^nโ€‹ the base is โ€‹qโ€‹, not โ€‹pโ€‹.
  3. Using the standard deviation as the variance. If the question gives a standard deviation of โ€‹\sqrt{2}โ€‹, the variance is 2.
  4. Adding many terms for "at least". "At least two" is โ€‹1 - P(X = 0) - P(X = 1)โ€‹: two terms, not โ€‹n - 1โ€‹ terms.

8. Quick check

Do these without help. Answers are at the end.

  1. โ€‹Xโ€‹ takes the values 0, 1, 2 with probabilities 0.3, 0.5, 0.2. Find the mean and the variance of โ€‹Xโ€‹.
  2. โ€‹X \sim B(10, 0.4)โ€‹. Find the mean and the variance.
  3. A binomial distribution has mean 10 and variance 6. Find โ€‹pโ€‹ and โ€‹nโ€‹.
  4. A fair coin is tossed 5 times. Find the probability of exactly 3 heads.
  5. In each of 4 independent trials the probability of success is โ€‹\dfrac{1}{3}โ€‹. Find the probability of at least one success.

9. Read and watch more, free

What Where Language
Self-study notes, with random variables and the binomial distribution NIOS Mathematics, Lesson 19 Probability ยท Hindi edition English, Hindi
Textbook, the probability behind this chapter (the binomial distribution itself is only mentioned) NCERT Class 12 Mathematics, Chapter 13 Probability ยท Hindi edition English, Hindi
Video, topic by topic Mohit Tyagi: Probability (16 lessons, up to distributions) Hinglish
Video, the whole of Probability for NDA Chandigarh Career Group: NDA Maths one shots (the Probability class, about 8 hours 30 minutes) Hinglish
Video and practice, random variables Khan Academy: Statistics and Probability course (Unit 9) English

The videos were chosen from their titles, length and views; they have not yet been watched by a teacher.

Answers to the quick check

  1. Mean โ€‹= 0 + 0.5 + 0.4 = 0.9โ€‹. โ€‹\sum x_i^2 p_i = 0.5 + 0.8 = 1.3โ€‹. Variance โ€‹= 1.3 - 0.81 = 0.49โ€‹.
  2. Mean โ€‹= 10 \times 0.4 = 4โ€‹. Variance โ€‹= 10 \times 0.4 \times 0.6 = 2.4โ€‹.
  3. โ€‹q = \dfrac{6}{10} = 0.6โ€‹, so โ€‹p = 0.4โ€‹ and โ€‹n = \dfrac{10}{0.4} = 25โ€‹.
  4. โ€‹{}^5C_3 \left(\dfrac{1}{2}\right)^5 = \dfrac{10}{32} = \dfrac{5}{16}โ€‹.
  5. โ€‹1 - \left(\dfrac{2}{3}\right)^4 = 1 - \dfrac{16}{81} = \dfrac{65}{81}โ€‹.

Next chapter: none. This is the last chapter of the Mathematics course.

Free ยท no sign-up

Try three questions on this chapter

Exam-pattern questions from this chapter's drill. Pick an answer for each, then check.

  1. Question 1 of 3
    A binomial distribution has mean 4 and variance โ€‹\tfrac{8}{3}โ€‹. What is the probability of exactly one success?
  2. Question 2 of 3
    Consider the following statements about the binomial distribution โ€‹B(n, p)โ€‹: I. The number of trials โ€‹nโ€‹ may be infinite. II. For a fixed โ€‹nโ€‹, the variance is greatest when โ€‹p = 1โ€‹. Which of the statements given above is/are correct?
  3. Question 3 of 3
    The mean of a binomial distribution is 6 and its variance is 1.5. What is the number of trials?
Free sign-up

You have read the chapter. Now make it stick.

A free account adds the video lesson, a drill of ten questions on this chapter marked like the exam, the timed mock papers, a study plan to your exam date and your own record of what you have done. No fee, no card.

Past questions quoted are from the official UPSC paper named in the text; the explanations are WishWas's own and have been checked against the official key. The links under โ€œRead and watch moreโ€ go to free material on other sites; nothing is copied.