liveBook · Manning

Discrete variable

As explained in Causal AI

A discrete outcome is one of a finite or countable set of distinct values that a discrete random variable can take.

A discrete variable takes values from a finite or countable set of distinct outcomes. A random variable X might represent a three-sided die roll with values {1, 2, 3}, or a coin flip with values {0, 1} or {True, False}. section 2.1.1

Each possible outcome receives a probability mass between zero and one, and the masses across all outcomes sum to one. Writing X = x identifies the event that X took the particular value x; this differs from continuous variables, which use probability densities over ranges. section 2.1.1 section 2.1.7

Common discrete distribution classes include:

  • Categorical distributions assign probabilities to categories such as ice cream, frozen yogurt, and sherbet, or to indices representing those categories. section 2.1.7
  • Bernoulli distributions are categorical distributions with two outcomes, while discrete uniform distributions assign equal probability to every outcome. section 2.1.7

Three-sided die

Represent a die roll as X ∈ {1, 2, 3}. The event X = 2 means that the observed roll was 2, and its probability is one entry in the variable's probability-mass specification. section 2.1.1

Figure 2.1 Three-sided dice each represent a random variable with three discrete outcomes.
figure

Use the die illustration to connect a physical random experiment with its finite set of discrete outcomes. section 2.1.1

How Causal AI covers it

How deep it goes
Defines outcomes, notation, probability masses, and distribution classes, but stops short of deeper distribution theory.
Examples
Uses three-sided dice, coin flips, categorical food choices, and indexed categories as concrete discrete outcomes.
What it assumes
Assumes basic variables and probability language while introducing random-variable notation and discrete-versus-continuous distinctions.
What you can do after
Apply discrete variables by specifying outcomes, assigning probability masses, and selecting categorical or Bernoulli distributions.
How it connects
Connects random variables with probability mass functions, categorical distributions, Bernoulli distributions, and causal discovery.

Also explained in

Compare how 5 books explain discrete variable →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Causal AI. The section links point to the parts of the book it draws on.