Random variable

Short definition

A random variable assigns a numerical value to each possible outcome of a random process. This makes it possible to describe random events mathematically and analyse them statistically.

Other names: Random quantity, stochastic variable

Example

A fair die is rolled once. The random variable X describes the number rolled. It can take the values 1, 2, 3, 4, 5 or 6. Each of these values has a probability of 1/6.

Meaning and explanation

A random variable assigns numerical values to the outcomes of a random experiment. Capital letters such as X usually denote the random variable, while lowercase letters such as x denote an observed value. The outcome of the experiment is random; the assignment of numerical values is fixed (Illowsky & Dean, 2023, ch. 4).

Discrete random variables have finitely or countably many possible values, such as the number of exams passed. Continuous models are used, for example, for processing times or body heights. The measurement precision of an instrument must be distinguished from the mathematical model (Illowsky & Dean, 2023, chs. 4 and 5).

A probability distribution describes the possible values and their probabilities. For discrete variables, an individual value can have a positive probability. For continuous models with a density, probabilities are calculated as areas over ranges of values; the probability of any single exact value is zero (Illowsky & Dean, 2023, chs. 4.1 and 5.1).

Expected value and variance describe the location and spread of a distribution, provided these quantities exist. For independent, identically distributed repetitions with a finite expected value, the average approaches the expected value in the long run. The expected value need not be a possible individual outcome: for a fair die, it is 3.5 (Illowsky & Dean, 2023, ch. 4.2).

References

Illowsky, B., & Dean, S. (2023). Introductory statistics (2nd ed.). OpenStax. https://openstax.org/details/books/introductory-statistics-2e

Common points of confusion

Background knowledge