Random variable
By Jude Wallis · Published
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 is a rule that attaches a number to every outcome of a chance process. The rule itself is not random. The randomness sits in which outcome occurs, and once the outcome is known the variable has one definite value. Notation carries that distinction: a capital letter, usually , names the rule, and a lowercase names one value the rule can produce. That is why probabilities are written , read as the probability that takes the particular value .
Flip a fair coin twice. The sample space is HH, HT, TH, TT, each outcome with probability 0.25. Let count the heads. Then HH maps to 2, HT and TH both map to 1, and TT maps to 0. Four outcomes collapse into three values, and the probabilities follow the map: , while and are each 0.25.
"Blood type is a random variable" is the error worth naming. The output has to be a number, because everything done with a random variable afterwards is arithmetic. Blood type is a categorical outcome, so it does not qualify. Build a number out of it and you are fine: the count of type O donors among 20 arrivals is a random variable, and counts can be averaged. The related slip is writing in lowercase, which asks about a value instead of about the variable.
Random variables split into two kinds according to the values they can take. Discrete ones have values you can list, and continuous ones take any value in an interval and get their probabilities from area under a density curve. That split decides everything downstream, including whether you add probabilities or integrate areas to answer a question.
Random variables are introduced at topic 2.8 of Unit 2, and their summaries, the mean (mu-X) and the standard deviation (sigma-X), at topic 2.9, Parameters of Random Variables.
Where this comes up
- Discrete random variable practice problemsPractice
- AP Stats 2.8: Random Variables & DistributionsAP topic
- AP Stats 2.9: Mean & SD of Random VariablesAP topic
- Expected value and random variable practice problemsPractice
- What was removed from AP StatisticsGuide
- AP Statistics units 2027: all five, weightedGuide
- Probability vs sampling distributionComparison
- How many units are in AP Statistics? FiveGuide
26 pages on the site use this term.
More random variables and distributions terms, or browse the full statistics glossary.