STEMviz
Mathematics · Geometry, Vectors and Statistics

Discrete Random Variables and the Binomial Distribution

A random variable turns the outcome of a random experiment into a number, which makes it possible to ask genuinely quantitative questions — not just "what is the probability of this event?" but "what value should I expect, on average, and how much might it vary?" This chapter builds the general machinery of discrete random variables, then specialises to the single most important named discrete distribution: the binomial, which models counting successes across repeated independent trials.

To follow the chapter you need the probability rules, independence, and the combination counting (nCr{}^nC_r) from earlier in the course. Have the formula for nCr=n!r!(n−r)!{}^nC_r=\dfrac{n!}{r!(n-r)!} ready, since it is the combinatorial heart of the binomial formula.

A random variable is a function, not an event. XX assigns a number to every outcome of a random experiment. "X=3X=3" is an event (a specific value), but XX itself is the whole rule, and its probability distribution lists every value it can take alongside the probability of each.

1. Discrete Random Variables and Probability Distributions

A discrete random variable XX takes a countable set of values x1,x2,…x_1, x_2, \ldots, each with probability P(X=xi)P(X=x_i). A valid probability distribution must satisfy

0≤P(X=xi)≤1for every i,∑iP(X=xi)=10\le P(X=x_i)\le1 \quad\text{for every } i, \qquad \sum_i P(X=x_i) = 1

Worked example. A discrete random variable XX has distribution given by P(X=1)=0.2P(X=1)=0.2, P(X=2)=kP(X=2)=k, P(X=3)=0.3P(X=3)=0.3, P(X=4)=0.1P(X=4)=0.1. Find kk.

0.2+k+0.3+0.1=1  ⟹  k=0.40.2+k+0.3+0.1=1 \implies k=0.4

Keep reading: Discrete Random Variables and the Binomial Distribution

This chapter is Premium. Unlock every Mathematics lesson — theory, interactive visualizations, quizzes, exercises and flashcards — with a one-time purchase or a monthly plan, or get every subject at once with the Full Course Bundle. The first 2 chapters of every block are free with an account.