TExcelTAD
Home › School Probability & Statistics on Paper › Discrete Random Variables and Probability Distribution Tables

Discrete Random Variables and Probability Distribution Tables

In descriptive statistics, we summarize data that has already been collected and observed. In probability theory, we look forward into the future to model the likelihood of outcomes before an experiment is performed.

To connect real-world chance experiments to algebra, mathematicians use random variables. A random variable translates random events—such as coin flips, dice rolls, or medical test results—into well-defined numbers, allowing us to build complete probability distribution tables on paper.


Defining a Random Variable

Random Variable (X):A rule or function that assigns a single real number to each outcomein the sample space S of a random experiment (X:S→R).Discrete Random Variable (DRV):A random variable that takes on separate, countable numerical values(x1,x2,…,xk) with gaps between them (e.g., 0,1,2,3…).\begin{aligned} \textbf{Random Variable } (X): \quad &\text{A rule or function that assigns a single real number to each outcome} \\ &\text{in the sample space } S \text{ of a random experiment } (X: S \to \mathbb{R}). \\ \textbf{Discrete Random Variable (DRV):} \quad &\text{A random variable that takes on separate, countable numerical values} \\ &(x_1, x_2, \dots, x_k) \text{ with gaps between them (e.g., } 0, 1, 2, 3\dots\text{).} \end{aligned}

Notation Convention:

  • Capital letter XX: denotes the random variable itself (the abstract concept or rule).
  • Lowercase letter xx: denotes a specific numerical value that XX could take.
  • P(X=x)P(X = x): denotes the probability that the random variable XX assumes the specific value xx.

The Two Universal Axioms of a Discrete Distribution

For any valid discrete probability distribution where XX takes values {x1,x2,…,xk}\{x_1, x_2, \dots, x_k\}, two strict mathematical conditions must hold:

1. Non-Negativity:0≤P(X=xi)≤1for every possible value xi2. Total Certainty:∑i=1kP(X=xi)=P(X=x1)+P(X=x2)+⋯+P(X=xk)=1\begin{aligned} \textbf{1. Non-Negativity:} \quad &0 \le P(X = x_i) \le 1 \quad \text{for every possible value } x_i \\ \textbf{2. Total Certainty:} \quad &\sum_{i=1}^k P(X = x_i) = P(X = x_1) + P(X = x_2) + \dots + P(X = x_k) = 1 \end{aligned}

If the probabilities sum to anything other than 1.01.0 (or nn\frac{n}{n}), or if any individual probability is negative or exceeds 11, the table is mathematically invalid.


Formula Box: Compound Probabilities and the CDF

Strict Inequality (<):P(X<a)=∑xi<aP(X=xi)Inclusive Inequality (≤):P(X≤a)=∑xi≤aP(X=xi)Interval Probability:P(a≤X≤b)=∑xi=abP(X=xi)Complement Rule:P(X≥a)=1−P(X<a)Cumulative Distribution F(x):F(x)=P(X≤x)=∑xi≤xP(X=xi)\begin{aligned} \text{Strict Inequality } (<): \quad &P(X < a) = \sum_{x_i < a} P(X = x_i) \\ \text{Inclusive Inequality } (\le): \quad &P(X \le a) = \sum_{x_i \le a} P(X = x_i) \\ \text{Interval Probability:} \quad &P(a \le X \le b) = \sum_{x_i = a}^b P(X = x_i) \\ \text{Complement Rule:} \quad &P(X \ge a) = 1 - P(X < a) \\ \textbf{Cumulative Distribution } F(x): \quad &F(x) = P(X \le x) = \sum_{x_i \le x} P(X = x_i) \end{aligned}

Step-by-Step Paper Notebook Method

How to Build a Probability Distribution Table on Paper

  1. Identify the Sample Space (SS): Write out all possible experimental outcomes.
  2. Determine the Support of XX: List all distinct numerical values xx that the variable XX can take, written in ascending order: x1<x2<⋯<xkx_1 < x_2 < \dots < x_k.
  3. Compute Probabilities P(X=xi)P(X = x_i): For each value xix_i, identify all favorable outcomes in SS and calculate:
    P(X=xi)=Number of favorable outcomesTotal outcomes in SP(X = x_i) = \frac{\text{Number of favorable outcomes}}{\text{Total outcomes in } S}
  4. Draw the Distribution Table: Set up a clean two-row table:
xx x1x_1 x2x_2 …\dots xkx_k
P(X=x)P(X = x) p1p_1 p2p_2 …\dots pkp_k
  1. Mandatory Paper Verification: Add up all values in the second row:
    ∑pi=p1+p2+⋯+pk\sum p_i = p_1 + p_2 + \dots + p_k
    If the sum does not equal 11, stop and check your calculations.

Worked Examples

Example 1: Number of Heads in Three Coin Flips

Problem: A fair coin is tossed three times. Let the random variable XX represent the total number of heads obtained.

  1. List the sample space SS.
  2. Determine the possible values of XX.
  3. Construct the probability distribution table on paper.
  4. Calculate P(X≥2)P(X \ge 2) and P(X<2)P(X < 2).

Step-by-Step Paper Solution:

  1. Sample Space (SS): There are 23=82^3 = 8 equally likely outcomes:

    S={HHH, HHT, HTH, HTT, THH, THT, TTH, TTT}S = \{ HHH, \ HHT, \ HTH, \ HTT, \ THH, \ THT, \ TTH, \ TTT \}
  2. Values of XX (count of Heads):

    • TTT  ⟹  X=0TTT \implies X = 0 (11 outcome)
    • HTT, THT, TTH  ⟹  X=1HTT, \ THT, \ TTH \implies X = 1 (33 outcomes)
    • HHT, HTH, THH  ⟹  X=2HHT, \ HTH, \ THH \implies X = 2 (33 outcomes)
    • HHH  ⟹  X=3HHH \implies X = 3 (11 outcome) Possible values: x∈{0,1,2,3}x \in \{0, 1, 2, 3\}.
  3. Construct the Probability Distribution Table:

xx 00 11 22 33
P(X=x)P(X = x) 18\frac{1}{8} 38\frac{3}{8} 38\frac{3}{8} 18\frac{1}{8}
  • Check Axiom 2:
    ∑P(X=x)=18+38+38+18=88=1✓\sum P(X = x) = \frac{1}{8} + \frac{3}{8} + \frac{3}{8} + \frac{1}{8} = \frac{8}{8} = 1 \quad \checkmark
  1. Compound Probabilities:
    • At least two heads (X≥2X \ge 2):
      P(X≥2)=P(X=2)+P(X=3)=38+18=48=12=0.5P(X \ge 2) = P(X = 2) + P(X = 3) = \frac{3}{8} + \frac{1}{8} = \frac{4}{8} = \frac{1}{2} = 0.5
    • Strictly fewer than two heads (X<2X < 2):
      P(X<2)=P(X=0)+P(X=1)=18+38=48=12P(X < 2) = P(X = 0) + P(X = 1) = \frac{1}{8} + \frac{3}{8} = \frac{4}{8} = \frac{1}{2}
      Or by the complement rule:
      P(X<2)=1−P(X≥2)=1−12=12P(X < 2) = 1 - P(X \ge 2) = 1 - \frac{1}{2} = \frac{1}{2}

Example 2: Determining an Unknown Constant kk

Problem: A discrete random variable YY has the probability distribution defined by:

P(Y=y)=k(2y−1)for y∈{1, 2, 3, 4}P(Y = y) = k(2y - 1) \quad \text{for } y \in \{1, \ 2, \ 3, \ 4\}
  1. Find the exact numerical value of the constant kk on paper.
  2. Write out the completed distribution table.
  3. Compute P(Y is prime)P(Y \text{ is prime}).

Step-by-Step Paper Solution:

  1. Express Each Probability in Terms of kk:

    • For y=1y = 1: P(Y=1)=k(2(1)−1)=k(1)=kP(Y = 1) = k(2(1) - 1) = k(1) = k
    • For y=2y = 2: P(Y=2)=k(2(2)−1)=k(3)=3kP(Y = 2) = k(2(2) - 1) = k(3) = 3k
    • For y=3y = 3: P(Y=3)=k(2(3)−1)=k(5)=5kP(Y = 3) = k(2(3) - 1) = k(5) = 5k
    • For y=4y = 4: P(Y=4)=k(2(4)−1)=k(7)=7kP(Y = 4) = k(2(4) - 1) = k(7) = 7k
  2. Apply Total Certainty Axiom (∑P(Y=y)=1\sum P(Y = y) = 1):

    k+3k+5k+7k=116k=1k=116\begin{aligned} k + 3k + 5k + 7k &= 1 \\ 16k &= 1 \\ k &= \frac{1}{16} \end{aligned}

    Check non-negativity: k=116>0k = \frac{1}{16} > 0, so all probabilities are strictly positive.

  3. Complete the Distribution Table:

yy 11 22 33 44
P(Y=y)P(Y = y) 116\frac{1}{16} 316\frac{3}{16} 516\frac{5}{16} 716\frac{7}{16}

Check: 1+3+5+716=1616=1\frac{1 + 3 + 5 + 7}{16} = \frac{16}{16} = 1.

  1. Calculate P(Y is prime)P(Y \text{ is prime}):
    • Prime numbers in the support {1,2,3,4}\{1, 2, 3, 4\} are 22 and 33 (note: 11 is not prime).
    P(Y∈{2,3})=P(Y=2)+P(Y=3)=316+516=816=12P(Y \in \{2, 3\}) = P(Y = 2) + P(Y = 3) = \frac{3}{16} + \frac{5}{16} = \frac{8}{16} = \frac{1}{2}

Example 3: Drawing Marbles Without Replacement

Problem: A pouch contains 44 green marbles and 22 yellow marbles (total 66 marbles). Two marbles are drawn at random without replacement. Let XX be the number of yellow marbles drawn. Construct the probability distribution table and find the cumulative distribution function F(x)F(x).

Step-by-Step Paper Solution:

  1. Identify Possible Values for XX: Since at most two marbles are drawn, X∈{0, 1, 2}X \in \{0, \ 1, \ 2\}.

  2. Compute Individual Probabilities Using Combinations: Total ways to choose 22 marbles out of 66:

    (62)=6×52×1=15\binom{6}{2} = \frac{6 \times 5}{2 \times 1} = 15
    • Case X=0X = 0 (Zero yellow   ⟹  2\implies 2 green):
      P(X=0)=(42)(20)(62)=6×115=615=25P(X = 0) = \frac{\binom{4}{2}\binom{2}{0}}{\binom{6}{2}} = \frac{6 \times 1}{15} = \frac{6}{15} = \frac{2}{5}
    • Case X=1X = 1 (One yellow, one green):
      P(X=1)=(41)(21)(62)=4×215=815P(X = 1) = \frac{\binom{4}{1}\binom{2}{1}}{\binom{6}{2}} = \frac{4 \times 2}{15} = \frac{8}{15}
    • Case X=2X = 2 (Two yellow, zero green):
      P(X=2)=(40)(22)(62)=1×115=115P(X = 2) = \frac{\binom{4}{0}\binom{2}{2}}{\binom{6}{2}} = \frac{1 \times 1}{15} = \frac{1}{15}
  3. Probability Distribution Table:

xx 00 11 22
P(X=x)P(X = x) 615\frac{6}{15} 815\frac{8}{15} 115\frac{1}{15}

Sum check: 6+8+115=1515=1✓\frac{6 + 8 + 1}{15} = \frac{15}{15} = 1 \quad \checkmark

  1. Construct the Cumulative Distribution Function F(x)=P(X≤x)F(x) = P(X \le x):
    F(x)={0if x<0615=0.4if 0≤x<1615+815=1415≈0.933if 1≤x<21if x≥2F(x) = \begin{cases} 0 & \text{if } x < 0 \\ \frac{6}{15} = 0.4 & \text{if } 0 \le x < 1 \\ \frac{6}{15} + \frac{8}{15} = \frac{14}{15} \approx 0.933 & \text{if } 1 \le x < 2 \\ 1 & \text{if } x \ge 2 \end{cases}

Common Mistakes & Paper Traps

  1. Strict vs. Non-Strict Inequality Confusion:

    • In continuous mathematics, P(X<3)=P(X≤3)P(X < 3) = P(X \le 3).
    • In discrete statistics, they are completely different!
      P(X<3)=P(X=0)+P(X=1)+P(X=2)(excludes 3)P(X < 3) = P(X = 0) + P(X = 1) + P(X = 2) \quad (\text{excludes } 3)
      P(X≤3)=P(X=0)+P(X=1)+P(X=2)+P(X=3)(includes 3)P(X \le 3) = P(X = 0) + P(X = 1) + P(X = 2) + P(X = 3) \quad (\text{includes } 3)
    • Always verify whether an inequality includes or excludes the endpoint.
  2. Forgetting to Normalize Probabilities:

    • Writing down relative frequencies or counts without dividing by the total sample space size NN. Probabilities must always satisfy 0≤pi≤10 \le p_i \le 1.
  3. Negative Constant Solutions:

    • When solving ∑P(X=x)=1\sum P(X = x) = 1, students sometimes find a constant cc algebraically but forget that every resulting probability must be non-negative: P(X=x)≥0P(X = x) \ge 0. Any solution yielding a negative probability must be rejected.
  4. Sampling With vs. Without Replacement:

    • Failing to adjust the denominator when sampling without replacement (e.g., using 26×16\frac{2}{6} \times \frac{1}{6} instead of 26×15\frac{2}{6} \times \frac{1}{5}).

Pencil & Paper Practice

Practice 1

A discrete random variable XX has the probability mass function:

xx −2-2 −1-1 00 11 22
P(X=x)P(X = x) 0.10.1 cc 0.30.3 2c2c 0.150.15
  1. Find the value of the constant cc on paper.
  2. Calculate P(X>0)P(X > 0).
  3. Calculate P(X2=1)P(X^2 = 1).

Practice 2

Two tetrahedral (4-sided) fair dice, each with faces numbered 1,2,3,41, 2, 3, 4, are rolled together. Let the random variable DD be the absolute difference between the two scores:

D=∣D1−D2∣D = |D_1 - D_2|

Construct the full probability distribution table for DD on paper.


Worked Solutions for Practice Problems

Solution to Practice 1

  1. Find cc using ∑P(X=x)=1\sum P(X = x) = 1:
    0.1+c+0.3+2c+0.15=13c+0.55=13c=0.45c=0.15\begin{aligned} 0.1 + c + 0.3 + 2c + 0.15 &= 1 \\ 3c + 0.55 &= 1 \\ 3c &= 0.45 \\ c &= 0.15 \end{aligned}
    Probabilities: P(X=−1)=0.15P(X = -1) = 0.15, P(X=1)=2(0.15)=0.30P(X = 1) = 2(0.15) = 0.30.
  2. Calculate P(X>0)P(X > 0):
    P(X>0)=P(X=1)+P(X=2)=0.30+0.15=0.45P(X > 0) = P(X = 1) + P(X = 2) = 0.30 + 0.15 = 0.45
  3. Calculate P(X2=1)P(X^2 = 1): X2=1X^2 = 1 occurs when X=−1X = -1 or X=1X = 1:
    P(X2=1)=P(X=−1)+P(X=1)=0.15+0.30=0.45P(X^2 = 1) = P(X = -1) + P(X = 1) = 0.15 + 0.30 = 0.45

Solution to Practice 2

  1. Sample Space (4×4=164 \times 4 = 16 equally likely outcomes):
    D1\D212341∣1−1∣=0∣1−2∣=1∣1−3∣=2∣1−4∣=32∣2−1∣=1∣2−2∣=0∣2−3∣=1∣2−4∣=23∣3−1∣=2∣3−2∣=1∣3−3∣=0∣3−4∣=14∣4−1∣=3∣4−2∣=2∣4−3∣=1∣4−4∣=0\begin{array}{c|cccc} D_1 \backslash D_2 & 1 & 2 & 3 & 4 \\ \hline 1 & |1-1|=0 & |1-2|=1 & |1-3|=2 & |1-4|=3 \\ 2 & |2-1|=1 & |2-2|=0 & |2-3|=1 & |2-4|=2 \\ 3 & |3-1|=2 & |3-2|=1 & |3-3|=0 & |3-4|=1 \\ 4 & |4-1|=3 & |4-2|=2 & |4-3|=1 & |4-4|=0 \end{array}
  2. Count Frequencies for each value of D∈{0,1,2,3}D \in \{0, 1, 2, 3\}:
    • D=0D = 0: (1,1),(2,2),(3,3),(4,4)  ⟹  4(1,1), (2,2), (3,3), (4,4) \implies 4 outcomes
    • D=1D = 1: (1,2),(2,1),(2,3),(3,2),(3,4),(4,3)  ⟹  6(1,2), (2,1), (2,3), (3,2), (3,4), (4,3) \implies 6 outcomes
    • D=2D = 2: (1,3),(3,1),(2,4),(4,2)  ⟹  4(1,3), (3,1), (2,4), (4,2) \implies 4 outcomes
    • D=3D = 3: (1,4),(4,1)  ⟹  2(1,4), (4,1) \implies 2 outcomes
  3. Construct the Probability Table:
dd 00 11 22 33
P(D=d)P(D = d) 416=14\frac{4}{16} = \frac{1}{4} 616=38\frac{6}{16} = \frac{3}{8} 416=14\frac{4}{16} = \frac{1}{4} 216=18\frac{2}{16} = \frac{1}{8}

Check: 4+6+4+216=1616=1✓\frac{4 + 6 + 4 + 2}{16} = \frac{16}{16} = 1 \quad \checkmark


Test yourself

Which of the following is a necessary condition for a discrete probability table to be mathematically valid?

  1. Every value of xx must be positive
  2. The sum of all probabilities ∑P(X=x)\sum P(X = x) must equal exactly 11
  3. All probabilities P(X=x)P(X = x) must be equal
  4. The sample size nn must be an even integer

A random variable XX takes values {1,2,3}\{1, 2, 3\} with probabilities P(X=1)=cP(X=1) = c, P(X=2)=2cP(X=2) = 2c, and P(X=3)=0.4P(X=3) = 0.4. What is the value of cc?

  1. 0.20.2
  2. 0.30.3
  3. 0.60.6
  4. 0.10.1

For a discrete random variable XX taking integer values 0,1,2,3,40, 1, 2, 3, 4, what does the expression P(X≥2)P(X \ge 2) equal?

  1. P(X=3)+P(X=4)P(X = 3) + P(X = 4)
  2. 1−P(X≤2)1 - P(X \le 2)
  3. P(X=2)+P(X=3)+P(X=4)P(X = 2) + P(X = 3) + P(X = 4)
  4. 1−P(X=2)1 - P(X = 2)