
| Attribute | Discrete random variable | Continuous random variable |
|---|---|---|
| Range | a countable set of isolated values | an interval (or union of intervals) of real numbers |
| Listability | values can be listed individually, even if infinitely many | values form a continuum and cannot be listed point by point |
| Typical source | counting processes (successes, occurrences, items) | measurement (time, length, weight, temperature) |
| Example ranges | {0, 1, 2, …}; {1, 2, 3, 4, 5, 6} | [0, ∞); [0, 1]; (−∞, ∞) |
| Probability function | probability mass function p(x) = P(X = x) | probability density function f(x) |
| Example variables | number of heads, face value of a die, indicator of an event | time until arrival, height, weight, temperature |
| Aspect | Statement | Example or symbol |
|---|---|---|
| What a random variable is | a function X: Ω → ℝ that assigns a real number to each outcome of an experiment | rolling a die: X(face) = the face number |
| Where the randomness lies | in the underlying experiment; the variable itself is a fixed rule | the flip of a coin is random; labeling H = 1, T = 0 is fixed |
| Discrete type | range is a countable set of isolated values | X ∈ {1, 2, 3, 4, 5, 6} |
| Continuous type | range is an interval of real numbers | X ∈ [0, ∞) for time until an event |
| Notation for the rule | capital letter, referring to the entire assignment | X, Y, Z |
| Notation for a value | lowercase letter, referring to a specific result after the experiment | x, y, z — e.g. “X = 4” means the die landed on 4 |
| Probability statements | events rewritten as conditions on the variable's value | P(X = x), P(X ≤ x), P(a ≤ X ≤ b) |
| Indicator variable | a special binary random variable marking whether an event occurs | 1 = 1 if A occurs, 0 otherwise |
| What random variables enable | a numerical framework for analyzing randomness | distributions, expectation, variance, comparison across experiments |