Follow your curiosity

What discovery has been shared with you?

Start with one fact. Explore it, go deeper, then follow whichever branch catches your imagination.

Choose subjects for a surprise

Exploring any topic

Begin your discovery

Your next discovery is one click away.

Choose one or more subjects above, or leave Any Topic selected and let curiosity decide.

Mathematics

Random Variables

Quick fact

Random variables are not 'variables' in the usual sense—they are functions that map outcomes to numbers, and their behavior is fully described by a probability distribution.

Why this is interesting

You flip a coin 10 times. Instead of just counting heads, you want to model the number of heads as something that can vary. That 'something' is a random variable—it turns chance into a number you can work with.

Read the full explanation

Understanding Random Variables

Imagine a random process, like rolling a die. The outcome is a number, but random variables are more general: they can assign numbers to non-numeric outcomes. For example, define X as 1 if it rains tomorrow, 0 otherwise. X is a random variable. The key idea is that a random variable is a function from the set of all possible outcomes (the sample space) to real numbers. This allows us to use mathematics—addition, multiplication, calculus—on randomness. Discrete random variables take on countable values (e.g., number of heads), while continuous random variables can take any value in an interval (e.g., height of a randomly selected person). The probability distribution tells us how likely each value or range of values is.

A deeper explanation

Why does this transformation matter? Because once outcomes are mapped to numbers, we can compute summaries that capture the essence of the randomness. The expected value (average) tells us the long-run average outcome. The variance measures spread. These are defined solely through the random variable's distribution. The concept is foundational because it unifies probability across different contexts—a coin flip, a temperature measurement, a stock return—all become instances of a random variable. This allows the use of powerful tools like the Law of Large Numbers (averages converge to expected value) and the Central Limit Theorem (averages become normally distributed). Without random variables, probability would remain a collection of unrelated dice games. With them, we build models that underpin modern statistics, machine learning, and scientific inference.

Keep FACTREE close

Internet access is required. Updates arrive when you reopen or reload the app. You may need to sign in again in the installed app.