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 (SS) representing all possible elementary outcomes of the experiment.
    • Codomain: A set of numbers, typically the set of real numbers (R\mathbb{R}) or natural numbers (N\mathbb{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 (SS) 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 (d6d6).

  • Sample Space (SS):

    • 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}}S = \{(a, b) \mid a \in \{1, 2, 3, 4, 5, 6\}, \, b \in \{1, 2, 3, 4, 5, 6\}\}
    • Here, aa denotes the outcome of the first die and bb denotes the outcome of the second die.
    • The total number of equally likely outcomes in the sample space is:         ∣S∣=6×6=36|S| = 6 \times 6 = 36
  • Random Variable Specification:

    • Define the random variable XX as the sum of the two dice:         X(a,b)=a+bX(a, b) = a + b
    • Domain: The sample space SS.
    • Codomain: The set of natural numbers N\mathbb{N}.
    • Range: The set of all achievable integer values:         Range(X)={2,3,4,5,6,7,8,9,10,11,12}\text{Range}(X) = \{2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12\}

Mapping of dice roll outcomes in the sample space to values in the codomain

  • Derivation of Outcome Probabilities:
    • Pr⁡(X=2)=Pr⁡({(1,1)})=136\Pr(X = 2) = \Pr(\{(1, 1)\}) = \frac{1}{36}
    • Pr⁡(X=3)=Pr⁡({(1,2),(2,1)})=236\Pr(X = 3) = \Pr(\{(1, 2), (2, 1)\}) = \frac{2}{36}
    • Pr⁡(X=4)=Pr⁡({(1,3),(2,2),(3,1)})=336\Pr(X = 4) = \Pr(\{(1, 3), (2, 2), (3, 1)\}) = \frac{3}{36}
    • Pr⁡(X=5)=Pr⁡({(1,4),(2,3),(3,2),(4,1)})=436\Pr(X = 5) = \Pr(\{(1, 4), (2, 3), (3, 2), (4, 1)\}) = \frac{4}{36}
    • Pr⁡(X=6)=Pr⁡({(1,5),(2,4),(3,3),(4,2),(5,1)})=536\Pr(X = 6) = \Pr(\{(1, 5), (2, 4), (3, 3), (4, 2), (5, 1)\}) = \frac{5}{36}
    • Pr⁡(X=7)=Pr⁡({(1,6),(2,5),(3,4),(4,3),(5,2),(6,1)})=636\Pr(X = 7) = \Pr(\{(1, 6), (2, 5), (3, 4), (4, 3), (5, 2), (6, 1)\}) = \frac{6}{36}
    • Pr⁡(X=8)=Pr⁡({(2,6),(3,5),(4,4),(5,3),(6,2)})=536\Pr(X = 8) = \Pr(\{(2, 6), (3, 5), (4, 4), (5, 3), (6, 2)\}) = \frac{5}{36}
    • Pr⁡(X=9)=Pr⁡({(3,6),(4,5),(5,4),(6,3)})=436\Pr(X = 9) = \Pr(\{(3, 6), (4, 5), (5, 4), (6, 3)\}) = \frac{4}{36}
    • Pr⁡(X=10)=Pr⁡({(4,6),(5,5),(6,4)})=336\Pr(X = 10) = \Pr(\{(4, 6), (5, 5), (6, 4)\}) = \frac{3}{36}
    • Pr⁡(X=11)=Pr⁡({(5,6),(6,5)})=236\Pr(X = 11) = \Pr(\{(5, 6), (6, 5)\}) = \frac{2}{36}
    • Pr⁡(X=12)=Pr⁡({(6,6)})=136\Pr(X = 12) = \Pr(\{(6, 6)\}) = \frac{1}{36}

Probability Distribution Function and Cumulative Distribution Function

  • Probability Distribution Function (PDF):

    • For a discrete random variable XX, the probability distribution function (also called the probability mass function) maps each possible value kk to the probability that XX assumes that exact value:         f(k)=Pr⁡(X=k)f(k) = \Pr(X = k)
  • Cumulative Distribution Function (CDF):

    • For a random variable XX, the cumulative distribution function, denoted F(k)F(k) or FX(k)F_X(k), gives the probability that XX takes on a value less than or equal to a specified threshold kk:         F(k)=Pr⁡(X≤k)F(k) = \Pr(X \le k)
    • For discrete random variables, this equals the cumulative sum of probabilities up to kk:         F(k)=∑j≤kPr⁡(X=j)F(k) = \sum_{j \le k} \Pr(X = j)
  • Tabular Distribution of the Two-Dice Sum Experiment:

    • k=2k = 2: Pr⁡(X=2)=136\Pr(X = 2) = \frac{1}{36}; cumulative: F(2)=Pr⁡(X≤2)=136F(2) = \Pr(X \le 2) = \frac{1}{36}
    • k=3k = 3: Pr⁡(X=3)=236\Pr(X = 3) = \frac{2}{36}; cumulative: F(3)=Pr⁡(X≤3)=136+236=336F(3) = \Pr(X \le 3) = \frac{1}{36} + \frac{2}{36} = \frac{3}{36}
    • k=4k = 4: Pr⁡(X=4)=336\Pr(X = 4) = \frac{3}{36}; cumulative: F(4)=Pr⁡(X≤4)=336+336=636F(4) = \Pr(X \le 4) = \frac{3}{36} + \frac{3}{36} = \frac{6}{36}
    • k=5k = 5: Pr⁡(X=5)=436\Pr(X = 5) = \frac{4}{36}; cumulative: F(5)=Pr⁡(X≤5)=636+436=1036F(5) = \Pr(X \le 5) = \frac{6}{36} + \frac{4}{36} = \frac{10}{36}
    • k=6k = 6: Pr⁡(X=6)=536\Pr(X = 6) = \frac{5}{36}; cumulative: F(6)=Pr⁡(X≤6)=1036+536=1536F(6) = \Pr(X \le 6) = \frac{10}{36} + \frac{5}{36} = \frac{15}{36}
    • k=7k = 7: Pr⁡(X=7)=636\Pr(X = 7) = \frac{6}{36}; cumulative: F(7)=Pr⁡(X≤7)=1536+636=2136F(7) = \Pr(X \le 7) = \frac{15}{36} + \frac{6}{36} = \frac{21}{36}
    • k=8k = 8: Pr⁡(X=8)=536\Pr(X = 8) = \frac{5}{36}; cumulative: F(8)=Pr⁡(X≤8)=2136+536=2636F(8) = \Pr(X \le 8) = \frac{21}{36} + \frac{5}{36} = \frac{26}{36}
    • k=9k = 9: Pr⁡(X=9)=436\Pr(X = 9) = \frac{4}{36}; cumulative: F(9)=Pr⁡(X≤9)=2636+436=3036F(9) = \Pr(X \le 9) = \frac{26}{36} + \frac{4}{36} = \frac{30}{36}
    • k=10k = 10: Pr⁡(X=10)=336\Pr(X = 10) = \frac{3}{36}; cumulative: F(10)=Pr⁡(X≤10)=3036+336=3336F(10) = \Pr(X \le 10) = \frac{30}{36} + \frac{3}{36} = \frac{33}{36}
    • k=11k = 11: Pr⁡(X=11)=236\Pr(X = 11) = \frac{2}{36}; cumulative: F(11)=Pr⁡(X≤11)=3336+236=3536F(11) = \Pr(X \le 11) = \frac{33}{36} + \frac{2}{36} = \frac{35}{36}
    • k=12k = 12: Pr⁡(X=12)=136\Pr(X = 12) = \frac{1}{36}; cumulative: F(12)=Pr⁡(X≤12)=3536+136=3636=1F(12) = \Pr(X \le 12) = \frac{35}{36} + \frac{1}{36} = \frac{36}{36} = 1

Properties of CDFs and Relationship with PDFs

  • General Setting: Let XX be a discrete random variable whose ordered possible values are given by k1<k2<⋯<knk_1 < k_2 < \dots < k_n, with cumulative distribution function FF.

  • Monotonicity (Non-Decreasing Nature):

    • If ki<kjk_i < k_j, then F(ki)≤F(kj)F(k_i) \le F(k_j).
  • Boundary Conditions:

    • At the lowest possible support value k1k_1:         F(k1)=Pr⁡(X=k1)F(k_1) = \Pr(X = k_1)
    • At the highest possible support value knk_n:         F(kn)=1F(k_n) = 1
  • Strict Left Inequality (Strictly Less Than):

    • The probability that XX is strictly less than a value kjk_j is obtained by subtracting the point probability from the CDF at kjk_j:         Pr⁡(X<kj)=Pr⁡(X≤kj)−Pr⁡(X=kj)=F(kj)−Pr⁡(X=kj)\Pr(X < k_j) = \Pr(X \le k_j) - \Pr(X = k_j) = F(k_j) - \Pr(X = k_j)
    • Alternatively, expressed using the preceding discrete value kj−1k_{j-1}:         Pr⁡(X<kj)=Pr⁡(X≤kj−1)=F(kj−1)\Pr(X < k_j) = \Pr(X \le k_{j-1}) = F(k_{j-1})
  • Right Complement (Strictly Greater Than):

    • The probability that XX strictly exceeds a threshold kjk_j is found via the complement rule:         Pr⁡(X>kj)=1−Pr⁡(X≤kj)=1−F(kj)\Pr(X > k_j) = 1 - \Pr(X \le k_j) = 1 - F(k_j)
  • Interval Probability Formula:

    • For any two values in the support with ki≤kjk_i \le k_j, the probability that XX lies within the closed interval [ki,kj][k_i, k_j] is:         Pr⁡(ki≤X≤kj)=F(kj)−F(ki−1)\Pr(k_i \le X \le k_j) = F(k_j) - F(k_{i-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)\Pr(X = k_i) = F(k_i) - F(k_{i-1})
    • For the initial value i=1i = 1:         Pr⁡(X=k1)=F(k1)\Pr(X = k_1) = F(k_1)

Worked Examples Using CDF Calculations

  • Example 1: Computing Closed Interval Probability Pr⁡(5≤X≤10)\Pr(5 \le X \le 10):

    • Applying the interval formula:         Pr⁡(5≤X≤10)=F(10)−F(4)\Pr(5 \le X \le 10) = F(10) - F(4)
    • Substituting the values from the cumulative distribution table:         F(10)=3336F(10) = \frac{33}{36}F(4)=636F(4) = \frac{6}{36}
    • Evaluating the expression:         Pr⁡(5≤X≤10)=3336−636=2736=34\Pr(5 \le X \le 10) = \frac{33}{36} - \frac{6}{36} = \frac{27}{36} = \frac{3}{4}
  • Example 2: Computing Open Interval Probability Pr⁡(3<X<7)\Pr(3 < X < 7) Using Only the CDF:

    • Discrete Conversion Rule: Because XX only takes integer values, the strict inequality 3<X<73 < X < 7 is precisely equivalent to the inclusive integer range 4≤X≤64 \le X \le 6:         Pr⁡(3<X<7)=Pr⁡(4≤X≤6)\Pr(3 < X < 7) = \Pr(4 \le X \le 6)
    • Applying the interval formula using the CDF:         Pr⁡(4≤X≤6)=F(6)−F(3)\Pr(4 \le X \le 6) = F(6) - F(3)
    • Substituting the values from the cumulative distribution table:         F(6)=1536F(6) = \frac{15}{36}F(3)=336F(3) = \frac{3}{36}
    • Evaluating the expression:         Pr⁡(3<X<7)=1536−336=1236=13\Pr(3 < X < 7) = \frac{15}{36} - \frac{3}{36} = \frac{12}{36} = \frac{1}{3}

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:

    • nn: The fixed number of independent trials.
    • pp: The constant probability of success on each individual trial.
  • Standard Notation:X∼b(n,p)X \sim b(n, p)

  • Probability Distribution Function (PDF):

    • The probability of observing exactly kk successes out of nn trials is:         Pr⁡(X=k)=(nk)pk(1−p)n−k\Pr(X = k) = \binom{n}{k} p^k (1 - p)^{n - k}
    • The possible values of kk span the integer range:         k∈{0,1,2,…,n}k \in \{0, 1, 2, \dots, n\}
    • The binomial coefficient counts the number of distinct subsets of size kk chosen from nn trials:         (nk)=n!k! (n−k)!\binom{n}{k} = \frac{n!}{k! \, (n - k)!}
  • Cumulative Distribution Function (CDF):

    • The cumulative probability of observing at most kk successes is:         FX(k)=Pr⁡(X≤k)=∑j=0k(nj)pj(1−p)n−jF_X(k) = \Pr(X \le k) = \sum_{j=0}^k \binom{n}{j} p^j (1 - p)^{n - j}