A random variable is a function from outcomes to numbers, equipped with a probability distribution describing the likelihood of each value.
Discrete RVs:
- PMF (probability mass function): , must satisfy
- Example: coin flip, dice roll, word count
Continuous RVs:
- PDF (probability density function): where
- and
- Note: can exceed 1; it's a density, not a probability
CDF (cumulative distribution function):
- Works for both discrete and continuous
- Non-decreasing, right-continuous, ,
- For continuous RVs:
Joint distributions: for two RVs. Marginal: . Conditional: .
Independence: iff for all .
See also: Expectation and Variance, Key Probability Distributions, Bayes' Theorem