Discrete Random Variables, Probability Distributions, and the Binomial Family
Basic Definitions of Random Variables
Random Variable Definition: A random variable is mathematically defined as a function that maps outcomes from the sample space of a random experiment to a set of numbers.
- Domain: The sample space (S) representing all possible elementary outcomes of the experiment.
- Codomain: A set of numbers, typically the set of real numbers (R) or natural numbers (N).
Classification of Random Variables:
- Discrete Random Variable: A random variable whose range consists of clearly separated values with well-defined gaps in between them. In standard probability modeling, primary attention is given to discrete random variables taking integer values.
- Continuous Random Variable: A random variable that can assume any value within a given continuous interval of real numbers.
Probability Transfer: The probability measure initially defined on events within the sample space (S) is carried over directly to the numerical range through the random variable mapping.
Illustrative Example: The Sum of Two Fair Dice
Experimental Setup: Consider rolling two honest, fair six-sided dice (d6).
Sample Space (S):
- The sample space consists of ordered pairs of individual die outcomes:
S={(a,b)∣a∈{1,2,3,4,5,6},b∈{1,2,3,4,5,6}}
- Here, a denotes the outcome of the first die and b denotes the outcome of the second die.
- The total number of equally likely outcomes in the sample space is:
∣S∣=6×6=36
Random Variable Specification:
- Define the random variable X as the sum of the two dice:
X(a,b)=a+b
- Domain: The sample space S.
- Codomain: The set of natural numbers N.
- Range: The set of all achievable integer values:
Range(X)={2,3,4,5,6,7,8,9,10,11,12}

- Derivation of Outcome Probabilities:
- Pr(X=2)=Pr({(1,1)})=361
- Pr(X=3)=Pr({(1,2),(2,1)})=362
- Pr(X=4)=Pr({(1,3),(2,2),(3,1)})=363
- Pr(X=5)=Pr({(1,4),(2,3),(3,2),(4,1)})=364
- Pr(X=6)=Pr({(1,5),(2,4),(3,3),(4,2),(5,1)})=365
- Pr(X=7)=Pr({(1,6),(2,5),(3,4),(4,3),(5,2),(6,1)})=366
- Pr(X=8)=Pr({(2,6),(3,5),(4,4),(5,3),(6,2)})=365
- Pr(X=9)=Pr({(3,6),(4,5),(5,4),(6,3)})=364
- Pr(X=10)=Pr({(4,6),(5,5),(6,4)})=363
- Pr(X=11)=Pr({(5,6),(6,5)})=362
- Pr(X=12)=Pr({(6,6)})=361
Probability Distribution Function and Cumulative Distribution Function
Probability Distribution Function (PDF):
- For a discrete random variable X, the probability distribution function (also called the probability mass function) maps each possible value k to the probability that X assumes that exact value:
f(k)=Pr(X=k)
Cumulative Distribution Function (CDF):
- For a random variable X, the cumulative distribution function, denoted F(k) or FX(k), gives the probability that X takes on a value less than or equal to a specified threshold k:
F(k)=Pr(X≤k)
- For discrete random variables, this equals the cumulative sum of probabilities up to k:
F(k)=∑j≤kPr(X=j)
Tabular Distribution of the Two-Dice Sum Experiment:
- k=2: Pr(X=2)=361; cumulative: F(2)=Pr(X≤2)=361
- k=3: Pr(X=3)=362; cumulative: F(3)=Pr(X≤3)=361+362=363
- k=4: Pr(X=4)=363; cumulative: F(4)=Pr(X≤4)=363+363=366
- k=5: Pr(X=5)=364; cumulative: F(5)=Pr(X≤5)=366+364=3610
- k=6: Pr(X=6)=365; cumulative: F(6)=Pr(X≤6)=3610+365=3615
- k=7: Pr(X=7)=366; cumulative: F(7)=Pr(X≤7)=3615+366=3621
- k=8: Pr(X=8)=365; cumulative: F(8)=Pr(X≤8)=3621+365=3626
- k=9: Pr(X=9)=364; cumulative: F(9)=Pr(X≤9)=3626+364=3630
- k=10: Pr(X=10)=363; cumulative: F(10)=Pr(X≤10)=3630+363=3633
- k=11: Pr(X=11)=362; cumulative: F(11)=Pr(X≤11)=3633+362=3635
- k=12: Pr(X=12)=361; cumulative: F(12)=Pr(X≤12)=3635+361=3636=1
Properties of CDFs and Relationship with PDFs
General Setting: Let X be a discrete random variable whose ordered possible values are given by k1<k2<⋯<kn, with cumulative distribution function F.
Monotonicity (Non-Decreasing Nature):
- If ki<kj, then F(ki)≤F(kj).
Boundary Conditions:
- At the lowest possible support value k1:
F(k1)=Pr(X=k1)
- At the highest possible support value kn:
F(kn)=1
Strict Left Inequality (Strictly Less Than):
- The probability that X is strictly less than a value kj is obtained by subtracting the point probability from the CDF at kj:
Pr(X<kj)=Pr(X≤kj)−Pr(X=kj)=F(kj)−Pr(X=kj)
- Alternatively, expressed using the preceding discrete value kj−1:
Pr(X<kj)=Pr(X≤kj−1)=F(kj−1)
Right Complement (Strictly Greater Than):
- The probability that X strictly exceeds a threshold kj is found via the complement rule:
Pr(X>kj)=1−Pr(X≤kj)=1−F(kj)
Interval Probability Formula:
- For any two values in the support with ki≤kj, the probability that X lies within the closed interval [ki,kj] is:
Pr(ki≤X≤kj)=F(kj)−F(ki−1)
Recovering the PDF from the CDF:
- Point probabilities can be computed directly from differences of consecutive CDF values:
Pr(X=ki)=F(ki)−F(ki−1)
- For the initial value i=1:
Pr(X=k1)=F(k1)
Worked Examples Using CDF Calculations
The Binomial Random Variable
Conceptual Role: A binomial random variable counts the total number of successes occurring in a fixed sequence of independent Bernoulli trials.
Family Classification: Binomial random variables constitute a two-parameter family determined completely by:
- n: The fixed number of independent trials.
- p: The constant probability of success on each individual trial.
Standard Notation:X∼b(n,p)
Probability Distribution Function (PDF):
- The probability of observing exactly k successes out of n trials is:
Pr(X=k)=(kn)pk(1−p)n−k
- The possible values of k span the integer range:
k∈{0,1,2,…,n}
- The binomial coefficient counts the number of distinct subsets of size k chosen from n trials:
(kn)=k!(n−k)!n!
Cumulative Distribution Function (CDF):
- The cumulative probability of observing at most k successes is:
FX(k)=Pr(X≤k)=∑j=0k(jn)pj(1−p)n−j