Random variable

A random variable assigns a numerical value to each outcome of a chance process, so its value is determined by the result of a random event.

A random variable turns the outcomes of a random process into numbers you can average and analyze. For example, if XX is the number of heads in two coin flips, then XX can equal 0, 1, or 2, each with its own probability. Random variables are discrete when their values are countable and continuous when they can take any value in an interval. Its long-run average is the expected value E(X)=xipiE(X) = \sum x_i \, p_i (E of X, each value times its probability, summed).

More random variables and distributions terms, or browse the full statistics glossary.