Skip to content

Indicator Random Variable

Definition

For an event AA, the indicator random variable 𝟙1A\indicator_{A} equals 11 if AA occurs and 00 otherwise.


Interpretation

An indicator turns an event into a numerical yes-or-no observation: 𝟙1A\indicator_A is 11 on the outcomes in AA and 00 on all others. Counting how many events occur becomes adding random variables: the number of the events A1,…,AnA_1,\ldots,A_n that occur is 𝟙1A1+⋯+𝟙1An\indicator_{A_1}+\cdots+\indicator_{A_n}, whether or not the events are independent.

A sample space with an event A and four outcomes, with arrows from the outcomes in A to the value 1 and from the others to the value 0 on a number line.

In the figure the outcomes ω1\omega_1 and ω2\omega_2 lie in AA and are sent to 11, while ω3\omega_3 and ω4\omega_4 are sent to 00. So 𝟙1A\indicator_A takes only the values 00 and 11, with P(𝟙1A=1)=P(A)\mathbb{P}(\indicator_A=1)=\mathbb{P}(A): a Bernoulli variable with parameter P(A)\mathbb{P}(A), as in the Key Results.

Operations on events become arithmetic: 𝟙1A𝟙1B=1\indicator_A\indicator_B=1 exactly when both AA and BB occur, 1−𝟙1A=11-\indicator_A=1 exactly when AA fails, and 𝟙1A∪B=𝟙1A+𝟙1B−𝟙1A𝟙1B\indicator_{A\cup B}=\indicator_A+\indicator_B-\indicator_A\indicator_B is the indicator form of the inclusion-exclusion principle. Combined with the fundamental bridge E[𝟙1A]=P(A)\mathbb{E}[\indicator_A]=\mathbb{P}(A), a sum of indicators turns an expected count into a sum of probabilities.


Key Results

  • 𝟙1A∼Bern⁡(P(A))\indicator_A\sim\operatorname{Bern}(\mathbb{P}(A)).
  • 𝟙1A∩B=𝟙1A𝟙1B\indicator_{A\cap B}=\indicator_A\indicator_B and 𝟙1Ac=1−𝟙1A\indicator_{A^c}=1-\indicator_A.
  • A sum of indicators counts the number of events that occur, even when those events are dependent.

Examples

  • A fair-toss heads indicator is 11 on heads and 00 on tails.
  • The number of heads in three tosses is 𝟙1A1+𝟙1A2+𝟙1A3\indicator_{A_1}+\indicator_{A_2}+\indicator_{A_3}.

Prerequisites

Sources

Aliases: indicator r.v., indicator variable Keywords: event indicator Symbols: intersection, omega, union

Last updated: 20 October 2026 03:02