Mathematics · Ch 10 — Random Variables and Probability Distributions
What is a Random Variable?
What is a Random Variable?
A great many real questions boil down to attaching a number to the outcome of an experiment whose result we cannot predict with certainty. "How many heads show up when a coin is tossed 20 times?", "how many defective bulbs are there in a box of 50?", "how many customers walk into a shop in an hour?" — in every case, chance decides the outcome, but what we actually care about is a number derived from that outcome.
This idea is captured by the notion of a random variable. Formally, if is the sample space of a random experiment, a random variable is simply a function that assigns a real number to every outcome in . It does not have to be the outcome itself — it can be any numerical feature we choose to track, such as a count, a sum, or a score.
Worked Example. Suppose two ordinary six-sided dice are rolled together. The sample space consists of all ordered pairs with . Define to be the sum of the two numbers shown, so . This is a random variable — a function from into the real numbers. Its possible values (its range) are . For instance, , and there are six outcomes in that give , namely . …