Random Variables
A random variable is a function from outcomes to values, not the realized value itself. Given a probability space , a real-valued random variable is a measurable map . Its distribution is the induced probability law
This lets one talk about common distributions, expectation and variance, and relationships such as covariance and correlation without listing raw outcomes each time.
Intuition
The same outcome can feed many random variables. For two dice, one variable might be the sum, another the maximum, and another an indicator that the roll is a double. The distribution is determined by the mapping plus the underlying probability measure.
Worked computation
Let be the maximum of two fair dice. For , at least one die must show and neither die can exceed . The count is therefore out of 36 ordered outcomes.
| Count | ||
|---|---|---|
| 1 | 1 | |
| 2 | 3 | |
| 3 | 5 | |
| 4 | 7 | |
| 5 | 9 | |
| 6 | 11 |
The expectation is
Using the same probabilities, , so . The random variable “maximum of two dice” is biased toward high values because many more outcomes map to 5 or 6 than to 1 or 2.
Caveats
Observed columns are samples from variables, not the variables themselves. A feature distribution can change under sampling bias or deployment drift, so claims about must name the population and measurement process.
References
Nav