Learn/Combinatorics/Random Variables
Combinatorics • Topic 23

Random Variables

A random variable is a variable whose value is subject to variations due to chance. It bridges the gap between abstract outcomes and concrete numbers.

Definition

Definition (Random Variable)
A random variable is a function that assigns a real number to each outcome in the sample space .

Discrete Random Variables

can take on a countable set of distinct values (e.g., integers).
  • Probability Mass Function (PMF): .

Common Distributions

1. Bernoulli()

Success (1) with prob , Failure (0) with prob .
  • Example: One coin flip.

2. Binomial()

Number of successes in independent Bernoulli trials.

3. Geometric()

Number of trials needed to get the first success.

Practice Problems

Exercise (Problem 1)
Let be the sum of two fair dice. Write out the PMF table for .
Exercise (Problem 2)
A fair coin is flipped 5 times. What is the probability that the number of heads is exactly 3?
Exercise (Problem 3)
Let be the number of distinct values obtained when rolling 3 dice. Find .