Random variable
Last updated
A random variable is a mathematical function that maps outcomes of a random experiment to numerical values.[1][2] They can be classified as discrete or continuous depending on whether their possible values are countable or uncountably infinite.[3][4][5] Capital Roman letters like X, Y, Z, and T are common notations for random variables.[6][2]
Key facts and history
When the image of X is finite or countably infinite, it is called a discrete random variable and has a probability mass function.[3][5] The most formal definition of a random variable uses measure theory and requires a sigma-algebra to constrain possible probability sets.[7]
What the research sources say
The MathsIsFun account explains that a random variable is a set of possible values from a random experiment, such as assigning Heads=0 and Tails=1.[2] That account gives examples of discrete random variables including the number of children in a family or the number of defective light bulbs in a box.[5] The Yale account defines a continuous random variable as one taking an infinite number of possible values, usually measurements like height or weight.[5] It further explains that the probability of observing any single value of a continuous random variable is 0.[5]
The Yale account states that a discrete random variable may take only a countable number of distinct values, often counts.[5]
References
- Wikipedia, "Random variable" (CC BY-SA 4.0), which cites: Deisenroth, "Mathematics for machine learning", Cambridge University Press, 2020 (we also read that source) en.wikipedia.org
- "Random Variables", www.mathsisfun.com. facts only, no text reused. mathsisfun.com
- Wikipedia, "Random variable" (CC BY-SA 4.0), which cites: Yates, "The Practice of Statistics", Freeman, 2003 (original not read by us) en.wikipedia.org
- Wikipedia, "Random variable" (CC BY-SA 4.0), which cites: "Random Variables", www.stat.yale.edu; Dekking, "A Modern Introduction to Probability and Statistics", Springer Texts in Statistics, 2005 (we also read that source) en.wikipedia.org
- "Random Variables", www.stat.yale.edu. facts only, no text reused. stat.yale.edu
- Wikipedia, "Random variable" (CC BY-SA 4.0), which cites: "Random Variables", www.mathsisfun.com (we also read that source) en.wikipedia.org
- Wikipedia, "Random variable" (CC BY-SA 4.0), which cites: Steigerwald, "Economics 245A – Introduction to Measure Theory", University of California, Santa Barbara (original not read by us) en.wikipedia.org
Each numbered sentence above was checked against the source it cites before publication. Sentences citing Wikipedia adapt text from the English Wikipedia article Random variable (contributors), used under CC BY-SA 4.0; this entry is available under the same licence. Other sources were used for facts only; no text or images are copied from them.
Also in the Codexery
More in Probability & Statistics
Sources
Compiled from Wikipedia and the sources listed below. Text from Wikipedia is available under CC BY-SA 4.0; this entry is adapted from it.
- Wikipedia: Random variable (CC BY-SA 4.0).
- Word definitions: the Codexery glossary, each quoted from its Wikipedia article.
Spotted an error? Know more?
Reader corrections go straight into our review queue. Suggest an edit · How this site is sourced