Course contentsShow
← Mathematics
Lesson 2830 of 3,12156. Probability — Random VariablesFree lesson

Indicator Random Variables

Using binary random variables to represent whether events occur.

Indicator Random Variables

You'll learn how to use special binary random variables to track whether an event happens or not.

What Are Indicator Random Variables?

An indicator random variable (also called a Bernoulli random variable) is the simplest type of random variable you can define. It takes only two values:

  • 1 if a particular event occurs
  • 0 if the event does not occur

Think of it as a light switch for events: ON (1) when the event happens, OFF (0) when it doesn't.

Formal Definition

For any event A in a sample space, we define its indicator random variable, often written as I_A or 1_A, by:

I_A(ω) = 1  if ω ∈ A
I_A(ω) = 0  if ω ∉ A

where ω represents an outcome in the sample space.

Why Use Indicators?

Indicator random variables are incredibly powerful for several reasons:

  1. Simplicity: They convert event-based questions into arithmetic.
  2. Probability Connection: Notice that E[I_A] = 1·P(A) + 0·P(A^c) = P(A). The expected value of an indicator equals the probability of its event!
  3. Counting: Summing indicators counts how many events occur in a collection.

Example

Roll a die. Let A = "roll is even." Then:

  • I_A(1) = 0, I_A(2) = 1, I_A(3) = 0, I_A(4) = 1, I_A(5) = 0, I_A(6) = 1

If you want to count how many of several independent events occur, you can sum their indicators.

Key Takeaway: Indicator random variables are binary variables that equal 1 when an event occurs and 0 otherwise, elegantly converting logical conditions into arithmetic operations for probability calculations.