← Explore exam analytics

Probability · TOPIC LESSON

Discrete Random Variables

Turn outcomes into numerical values, then distinguish a fixed count of successes from a waiting time.

JEE Main · JEE Advanced80 min study guide11 indexed sections

BY THE END, YOU CAN

  • Construct a probability mass function and cumulative distribution from a finite experiment.
  • Compute expectations, variances and transformed-variable moments.
  • Derive the binomial distribution from independent repeated trials.
  • Use complements, modes and threshold inequalities for repeated-trial questions.
  • Distinguish binomial counts, geometric waiting times and sampling without replacement.

BEFORE YOU START

  • Elementary probability, independence and conditional probability.
  • Binomial coefficients, finite sums and geometric series.
  • Logarithms and basic inequalities.

Original educational lesson. Work through the examples before revealing the practice answers. Check the current official syllabus separately; historical question frequency does not establish eligibility or predict future questions.

CONNECT THE CONCEPT TO THE EXAM

Selected exam questions & worked solutions

These selected examples are separate from the original practice below. Each identifies its exam, year and wording. They do not represent every paper or every selected year.

No source-verified exam questions have been published for this lesson yet. The worked examples and practice below are original teaching material, not past-exam questions.

01 / UNDERSTAND & APPLY

1. A random variable maps outcomes to numbers

A random variable X assigns a numerical value to each outcome of a probability experiment. If two coins are tossed, the outcomes HH,HT,TH,TT are not themselves numbers. The variable X = number of heads maps them to 2,1,1,0. Different outcomes can produce the same value, so the probabilities of those outcomes must be added when constructing the distribution of X.

A discrete random variable takes finitely many or countably many values. Its probability mass function, or pmf, is p(x) = P(X = x). A valid pmf has p(x) ≥ 0 for every value and Σp(x) = 1. We use the term pmf to distinguish these point masses from a continuous probability density, even though some elementary texts call both a probability distribution function.

The support is the set of values with positive probability. It is not necessarily an interval and need not contain the mean. A variable counting successes has integer support, but its expectation can be fractional. For example, an average of 1.5 successes over many repetitions does not mean a single experiment can produce half a success.

When a formula for p(x) includes an unknown constant, first normalize the total and then check nonnegativity. A constant that makes the probabilities sum to one can still produce negative probabilities if the proposed formula or parameter range is invalid. Both requirements are essential.

ORIGINAL WORKED EXAMPLE

Normalize a small distribution

A variable X takes values 0,1,2 with probabilities k,2k,3k. Find k and P(X ≥ 1).

  1. The total probability is k + 2k + 3k = 6k, which must equal 1. Therefore k = 1/6.
  2. The probabilities are 1/6,1/3,1/2, all nonnegative and at most one.
  3. The event X ≥ 1 includes values 1 and 2, so its probability is 1/3 + 1/2 = 5/6.
  4. The complement check gives 1 − P(X = 0) = 1 − 1/6 = 5/6.

Answer k = 1/6; P(X ≥ 1) = 5/6.

02 / UNDERSTAND & APPLY

2. Cumulative probability is a step function

The cumulative distribution function is F(t) = P(X ≤ t). For a discrete variable, it adds the masses at values no greater than t. It is nondecreasing and right-continuous, with limits zero at the far left and one at the far right. A jump at x has size P(X = x). The distinction between ≤ and < matters exactly at a support value.

For the distribution on 0,1,2 with masses 1/6,1/3,1/2, F(t) is 0 for t < 0, 1/6 for 0 ≤ t < 1, 1/2 for 1 ≤ t < 2, and 1 for t ≥ 2. A graph uses horizontal segments and open/closed endpoint markers to show which step contains each support value.

If Y = g(X), several X-values may map to the same Y-value. To find P(Y = y), add P(X = x) over every x satisfying g(x) = y. Squaring a variable is a common example: x and −x have the same square. Transforming the values without combining their probabilities can produce a duplicated or incorrect distribution.

For an interval event, use the endpoint convention carefully. P(a < X ≤ b) = F(b) − F(a). If the left endpoint is included, subtract P(X < a) instead. On integer support, P(a ≤ X ≤ b) can often be written F(b) − F(a − 1) when a and b are integers.

Full-size scientific diagram. Swipe or scroll horizontally; keyboard users can focus the diagram and use arrow keys.

A three-point pmf and its right-continuous CDFThe pmf assigns probabilities 1/6, 1/3 and 1/2 to values 0,1 and 2. The CDF is 0 below 0, 1/6 on [0,1), 1/2 on [1,2), and 1 on [2,infinity). Open and closed endpoint markers show that each support value belongs to the higher step. The CDF jumps equal the corresponding pmf masses.Point masses and cumulative steps describe the same variableProbability mass functionF(t) = P(X ≤ t)1/601/311/22xp(x)0121/61/21tMasses at 0,1,2: 1/6, 1/3, 1/2Closed dots include the jump value.
Finite distribution from the worked example. PMF bars show probability masses; the CDF uses right-continuous steps.

03 / UNDERSTAND & APPLY

3. Expectation is a probability-weighted average

For a finite discrete variable, E[X] = Σx p(x). Each possible value is weighted by its probability. If an infinite distribution is used, the corresponding convergence conditions matter; for a finite expectation of a signed variable, absolute convergence is the standard safe condition. All numerical examples here have finite support or a geometric distribution with finite moments.

For a function g, E[g(X)] = Σg(x)p(x). In general this is not g(E[X]). Squaring an average differs from averaging squares unless the variable has no variability. This distinction will lead directly to the variance formula.

Expectation is linear: E[aX + bY + c] = aE[X] + bE[Y] + c whenever the relevant expectations exist. Independence is not needed. To see why, expand the weighted sum over the joint outcomes and distribute addition. Independence is a sufficient condition for the product identity E[XY] = E[X]E[Y] when the expectations are finite; it is not necessary for that equality and is not needed for the basic sum rule.

An indicator I_A is 1 when event A occurs and 0 otherwise. Its expectation is P(A). Writing a count as a sum of indicators often gives its mean without first finding the full distribution. For example, the expected number of red balls in n draws from an urn with red fraction R/N is nR/N even without replacement, because every draw position has the same marginal red probability.

ORIGINAL WORKED EXAMPLE

Moments from a probability table

For X with values 0,1,2 and probabilities 1/6,1/3,1/2, find E[X] and E[X²].

  1. The mean is 0·(1/6) + 1·(1/3) + 2·(1/2) = 1/3 + 1 = 4/3.
  2. The second moment is 0²·(1/6) + 1²·(1/3) + 2²·(1/2) = 1/3 + 2 = 7/3.
  3. The square of the mean is 16/9, which differs from E[X²] = 21/9.
  4. The mean 4/3 lies between the smallest and largest support values 0 and 2, as any probability-weighted average must.

Answer E[X] = 4/3; E[X²] = 7/3.

04 / UNDERSTAND & APPLY

4. Variance measures spread around the mean

Variance is Var(X) = E[(X − μ)²], where μ = E[X]. Expanding the square and using linearity gives Var(X) = E[X²] − μ². It is nonnegative because the defining squared deviation is nonnegative. A negative computed variance signals arithmetic or modelling error, apart from possible tiny numerical rounding in machine calculations.

For constants a,b, E[aX + b] = aE[X] + b and Var(aX + b) = a²Var(X). Adding b shifts all outcomes and their mean together, leaving deviations unchanged. Multiplying by a multiplies each deviation by a, so its square gains a². Standard deviation scales by |a|, not by a when a is negative.

For two variables, Var(X + Y) = Var(X) + Var(Y) + 2Cov(X,Y), where Cov(X,Y) = E[XY] − E[X]E[Y]. Independent variables have zero covariance, so their variances add. Without independence or another zero-covariance argument, omitting the covariance term is unjustified.

A simple warning example is Y = X. Then Var(X + Y) = Var(2X) = 4Var(X), not 2Var(X). The variables are perfectly linked. By contrast, E[X + Y] = 2E[X] still holds, illustrating again that expectation linearity is less demanding than variance addition.

ORIGINAL WORKED EXAMPLE

A transformed score

For the preceding X, define Y = 3X − 2. Find E[Y], Var(X), and Var(Y).

  1. Using the moments already computed, Var(X) = 7/3 − (4/3)² = 21/9 − 16/9 = 5/9.
  2. Linearity gives E[Y] = 3(4/3) − 2 = 2.
  3. Variance scaling gives Var(Y) = 3²(5/9) = 5. The shift −2 does not affect spread.
  4. A direct check uses Y-values −2,1,4 with probabilities 1/6,1/3,1/2. Their mean is 2 and their second moment is 9, so variance is 9 − 4 = 5.

Answer E[Y] = 2; Var(X) = 5/9; Var(Y) = 5.

05 / UNDERSTAND & APPLY

5. Four conditions create a binomial count

A binomial experiment has a fixed number n of trials, two categories called success and failure on each trial, a constant success probability p, and independence across trials. The words success and failure are labels, not judgments of desirability. The random variable X counts successes, so its possible count values are 0,1,…,n; these form its support when 0<p<1.

One specified sequence with r successes and n−r failures has probability pʳ(1−p)^(n−r) by independence. There are C(n,r) ways to choose the success positions. These sequences are disjoint, so adding them gives P(X=r) = C(n,r)pʳ(1−p)^(n−r). The binomial theorem confirms that all these probabilities sum to (p + 1−p)ⁿ = 1.

For p=0 or p=1, the distribution is degenerate at 0 or n. Handle these cases directly instead of relying on ambiguous-looking powers such as 0⁰ in an endpoint formula. For 0<p<1, every support value has positive probability.

Trials can have more than two physical outcomes and still produce a binomial count if each is classified into success versus not-success. Rolling a fair die n independent times and counting sixes has p=1/6. But sampling without replacement from a finite urn usually violates independence and constant conditional probability, so the exact count distribution is hypergeometric rather than binomial.

P(X=r) = C(n,r)pʳ(1−p)^(n−r), r=0,…,n

For a fixed n of independent trials with the same success probability p.

ORIGINAL WORKED EXAMPLE

Exactly two successes and at least one

Five independent trials each succeed with probability 1/3. Find P(X=2) and P(X≥1).

  1. The model is binomial with n=5 and p=1/3.
  2. For exactly two, P(X=2)=C(5,2)(1/3)²(2/3)³=10·1/9·8/27=80/243.
  3. For at least one, use the complement of zero successes: P(X≥1)=1−(2/3)⁵=1−32/243=211/243.
  4. The complement method avoids separately adding the five probabilities for one through five successes.

Answer P(X=2)=80/243; P(X≥1)=211/243.

06 / UNDERSTAND & APPLY

6. Mean, variance and the most likely count are different summaries

Write a binomial count as X = I₁ + ⋯ + Iₙ, where each indicator is one on success. Each has mean p and variance p(1−p). Linearity gives E[X]=np. Independence makes covariances zero, giving Var(X)=np(1−p). The standard deviation is √[np(1−p)]. These derivations explain why the moment formulas depend on the trial assumptions.

The mean need not be an integer and need not be the most likely count. The mode maximizes the pmf over integer r. For 0<p<1, compare adjacent probabilities: P(X=r+1)/P(X=r) = [(n−r)/(r+1)]p/(1−p). The probabilities rise while this ratio exceeds one and fall after it drops below one.

If (n+1)p is not an integer, the unique mode is floor((n+1)p). If (n+1)p is an integer m, the two modes are m−1 and m. The boundary cases p=0 or p=1 are handled separately. This is an exact discrete statement; rounding the mean np can fail to identify a tie.

As p moves from zero toward one-half for fixed n, the variance grows; beyond one-half it decreases symmetrically. The uncertainty is largest at p=1/2, not at the largest mean. A near-certain success count can have a high mean but small spread.

ORIGINAL WORKED EXAMPLE

A binomial mean and a tied mode

For X distributed as Binomial(5,1/3), find the mean, variance and mode or modes.

  1. The mean is np=5/3 and the variance is np(1−p)=5(1/3)(2/3)=10/9.
  2. Compute (n+1)p=6/3=2, an integer. Therefore the two modal counts are 1 and 2.
  3. Check P(X=1)=5(1/3)(2/3)⁴=80/243, equal to the earlier P(X=2)=80/243.
  4. The fractional mean 5/3 is not itself a possible count. It summarizes the long-run average, while the modes describe the largest point probabilities.

Answer Mean 5/3; variance 10/9; modes 1 and 2.

07 / UNDERSTAND & APPLY

7. How many trials are needed for a target chance?

For independent trials with success probability p, the probability of no successes in n trials is (1−p)ⁿ. Therefore the chance of at least one is 1−(1−p)ⁿ. If a target probability q is specified with 0<p<1 and 0<q<1, solve (1−p)ⁿ ≤ 1−q.

Taking logarithms gives n ln(1−p) ≤ ln(1−q). Since ln(1−p) is negative, dividing reverses the inequality: n ≥ ln(1−q)/ln(1−p). The smallest allowed integer n is the ceiling of that ratio, followed by a direct check of n and n−1. Floating-point rounding near an integer boundary should not decide the answer by itself.

At least r successes is a binomial tail sum, often easier through its complement of fewer than r successes. Exactly r is a single pmf value. At most r includes the endpoint r. These word distinctions determine whether a term is included in the sum and cannot be repaired by using the same formula with an approximate threshold.

A fixed probability p and independence are essential for the exponential no-success expression. If probabilities differ across independent trials, no-success probability is the product of their individual failure probabilities. If trials are dependent, conditional failure probabilities must be used instead.

ORIGINAL WORKED EXAMPLE

A minimum number of attempts

Independent attempts succeed with probability 0.2. What is the smallest number giving at least 0.9 probability of one or more successes?

  1. The requirement is 1−0.8ⁿ ≥ 0.9, or 0.8ⁿ ≤ 0.1.
  2. Taking logarithms and dividing by the negative ln 0.8 gives n ≥ ln 0.1/ln 0.8, approximately 10.32.
  3. The first integer candidate is 11. Check 0.8¹⁰ ≈ 0.107374 > 0.1, so 10 trials are insufficient.
  4. Also 0.8¹¹ ≈ 0.085899 < 0.1, so 11 trials achieve the target. The strict numerical checks confirm the rounding direction.

Answer 11 attempts.

08 / UNDERSTAND & APPLY

8. A waiting time is not a fixed-trial count

Let T be the trial number of the first success in independent trials with constant p, where 0<p≤1. For 0<p<1, T has support 1,2,3,… and P(T=k)=(1−p)^(k−1)p. For p=1, T=1 with probability one, so its support is only {1}. The event requires k−1 failures followed by a success in that specified order, so there is no binomial coefficient.

The tail probability is P(T>n)=(1−p)ⁿ for nonnegative integer n. Consequently the geometric distribution is memoryless: P(T>m+n|T>m)=(1−p)ⁿ, provided the conditioning probability is positive. After observing m failures, the chance of another n failures is unchanged because the future trials remain independent with the same p.

The mean waiting time is E[T]=1/p and the variance is (1−p)/p². The mean follows, for example, from the tail-sum identity E[T]=Σₙ₌₀∞P(T>n)=Σₙ₌₀∞(1−p)ⁿ. The geometric series converges for p>0. If p=0, a success never occurs under the model and there is no finite waiting-time mean.

Some conventions define a geometric variable as the number of failures before the first success, starting at zero. That variable is T−1, with mean (1−p)/p and the same variance. State which convention you use before quoting a formula. Also, the first success on trial k is not the same event as exactly one success among k trials.

ORIGINAL WORKED EXAMPLE

A first-success probability and an updated wait

Independent trials succeed with probability 1/4. Find the probability that the first success is on trial 4, and the probability of a success within the next two trials given that the first three failed.

  1. First success on trial 4 requires FFFS, with probability (3/4)³(1/4)=27/256.
  2. After the first three failures, future trials are still independent with success probability 1/4. The chance of no success in the next two is (3/4)²=9/16.
  3. Thus the requested conditional chance of a success within those next two trials is 1−9/16=7/16.
  4. The waiting-time mean is 4 trials, but that mean does not imply trial 4 is the most likely first-success location. The geometric pmf decreases with k when 0<p<1, so trial 1 is most likely.

Answer First success on trial 4: 27/256; success in next two after three failures: 7/16.

09 / UNDERSTAND & APPLY

9. Original practice: pmfs and moments

Normalize first, then calculate moments. When a variable is transformed, either use a justified moment identity or combine probabilities for equal transformed values.

ORIGINAL PRACTICE · 1

X takes values −1,0,1 with probabilities 1/4,1/2,1/4. Find E[X] and Var(X).

Reveal answer & reasoning

Mean 0; variance 1/2.

Symmetric masses cancel in the mean. E[X²]=1/4+1/4=1/2, so subtracting the squared mean leaves 1/2.

ORIGINAL PRACTICE · 2

For that X, find the distribution of Y=X².

Reveal answer & reasoning

P(Y=0)=1/2 and P(Y=1)=1/2.

Both X=−1 and X=1 map to Y=1, so their probabilities add. X=0 is the only source of Y=0.

ORIGINAL PRACTICE · 3

If E[X]=3 and Var(X)=2, find the mean and variance of 2X+5.

Reveal answer & reasoning

Mean 11; variance 8.

The mean is 2·3+5. The variance is 2²·2; the shift 5 contributes no spread.

ORIGINAL PRACTICE · 4

Does E[X+Y]=E[X]+E[Y] require independence?

Reveal answer & reasoning

No, assuming the expectations exist.

Linearity follows by distributing the sum in the expectation. Independence is a sufficient condition for product factorization or variance addition, not for this sum rule.

ORIGINAL PRACTICE · 5

An indicator I equals 1 with probability 0.3 and 0 otherwise. Find its mean and variance.

Reveal answer & reasoning

Mean 0.3; variance 0.21.

E[I]=0.3 and I²=I, so Var(I)=0.3−0.3²=0.21.

ORIGINAL PRACTICE · 6

A pmf assigns probabilities c,2c,−c to three distinct values. Can any real c make it valid?

Reveal answer & reasoning

No.

Normalization requires 2c=1, so c=1/2, which makes the third probability −1/2. Satisfying the total alone does not ensure nonnegativity.

10 / UNDERSTAND & APPLY

10. Original practice: count or wait?

Identify whether the experiment fixes the number of trials or stops at an event. Then check independence and whether the success probability remains constant.

ORIGINAL PRACTICE · 1

A fair coin is tossed four independent times. Find the probability of exactly three heads.

Reveal answer & reasoning

1/4.

The binomial probability is C(4,3)(1/2)³(1/2)=4/16.

ORIGINAL PRACTICE · 2

A fair die is rolled three independent times. Find the probability of at least one six.

Reveal answer & reasoning

91/216.

The no-six probability is (5/6)³=125/216, so the complement is 1−125/216=91/216.

ORIGINAL PRACTICE · 3

For X~Binomial(10,0.2), find its mean and variance.

Reveal answer & reasoning

Mean 2; variance 1.6.

Use np=10·0.2 and np(1−p)=10·0.2·0.8. The trial assumptions are part of the stated binomial model.

ORIGINAL PRACTICE · 4

For X~Binomial(8,0.4), find the unique mode.

Reveal answer & reasoning

3.

Compute (n+1)p=9·0.4=3.6, which is not an integer. The mode is its floor, 3.

ORIGINAL PRACTICE · 5

Trials succeed independently with probability 1/5. Find the probability that the first success is on trial 3.

Reveal answer & reasoning

16/125.

The required order is FFS, giving (4/5)²(1/5)=16/125. No factor C(3,1) belongs here.

ORIGINAL PRACTICE · 6

For that waiting time T, find E[T] and Var(T).

Reveal answer & reasoning

Mean 5; variance 20.

With support beginning at trial 1, E[T]=1/p=5 and Var(T)=(1−p)/p²=(4/5)/(1/25)=20.

ORIGINAL PRACTICE · 7

Two balls are drawn without replacement from an urn with 3 red and 2 blue. Is the red count exactly Binomial(2,3/5)?

Reveal answer & reasoning

No.

The second draw’s red probability depends on the first draw. The exact two-red probability is (3/5)(2/4)=3/10, while the binomial formula would give 9/25. The mean is still 2·3/5=6/5 by indicator linearity.

ORIGINAL PRACTICE · 8

Independent trial success probabilities are 1/2,1/3 and 1/4. Find the probability of at least one success.

Reveal answer & reasoning

3/4.

The no-success probability is (1/2)(2/3)(3/4)=1/4. Complement gives 3/4. The trials are independent but not identically distributed, so the standard single-p binomial model does not apply.

11 / UNDERSTAND & APPLY

11. Match the distribution to the experiment

A random variable is a numerical map, its pmf assigns probability masses, its CDF accumulates those masses, its expectation is a weighted average, and its variance measures squared spread. These objects answer different questions. An expected count need not be a possible count, and a most likely count need not equal the expectation.

For repeated trials, ask four questions before saying binomial: is n fixed, are outcomes classified into two categories, is p constant, and are trials independent? For a first-success waiting time, use the geometric model and state whether you count trials or failures. Without replacement, inspect dependence rather than applying a familiar formula by appearance.

The common errors are forgetting to combine transformed values, replacing E[X²] by E[X]², adding variances without a dependence check, omitting a binomial coefficient for an unordered success count, adding one to a waiting-time formula under the wrong convention, and reversing a logarithmic inequality incorrectly.

Final checks include total probability one, nonnegative variance, a mean within finite support bounds, and exact enumeration for a small case. For a minimum-trials answer, verify both the claimed minimum and the preceding integer. These checks test the boundary cases where otherwise correct formulas are most often misapplied.

KEEP THE BIG IDEAS

Quick revision

  • A pmf must be nonnegative and total one; transformed equal values require combined masses.
  • Expectation is linear without independence, but variance addition needs covariance control.
  • Binomial counts require fixed n, independent trials and a common p.
  • A geometric variable counts waiting time, so its formula has a specified order and no binomial coefficient.
  • Complements and direct boundary checks make repeated-trial thresholds reliable.
Back to the top ↑

READ WITH CONTEXT

References & scope

The teaching notes, worked explanations and original practice are written for this lesson. Separately labeled selected exam questions identify their exam, year, source and whether wording is paraphrased or an exact excerpt. Educational references do not certify current exam coverage.

Explore this topic in context

Analytics use a separately reviewed, incomplete historical corpus. Opening a topic does not change its counts or denominator.

KEEP EXPLORING

Your next idea is waiting.

Back to Mathematics index →Browse all topic notes