Probability distributions
Random variables & probability distributions
A random variable provides a numerical description of the outcome of a random experiment, and may be thought of as a function that assigns a numerical value to each outcome in a sample space. For example, if is the random variable associated with the sum of the results of rolling two fair six-sided dice, then the probability that is , because of the 36 possible dice rolls, 3 result in a sum of : , , and .
There are two types of random variables:
- Discrete Random Variable: Takes on countable values (finite or countably infinite). For example: the result of dice rolls, the number of children in a household in a town.
- Continuous Random Variable: Takes on uncountably infinite values (any value in an interval). For example: the time between cars arriving at an intersection, the amount of rain expected tomorrow.
Probability distributions provide a mathematical framework for modeling uncertainty by assigning probabilities to possible values of a random variable. Probability distributions for discrete random variables are described in terms of probability mass functions (PMFs), and those for continuous random variables are described in terms of probability density functions (PDFs).
Probability mass functions (PMFs)
PMFs must satisfy the following properties:
- for all
Probability density function (PDFs)
Note that the probability of obtaining any exact value of is zero: for any specific value .
PMFs must satisfy the following properties:
- for all
Cumulative distribution functions (CDF)
Properties of CDFs include:
- is non-decreasing
The original PMF or PDF may be recovered from the CDF:
- For discrete taking on integer values:
- For continuous :
Note that the PMF of discrete random variables that do not take on integer values may also be recovered from the CDF by subtracting off the CDF of the next discrete value of just below the target .
Some probability problems are more easily solved using CDFs instead of traditional counting techniques. For example, let’s determine the probability that highest result in rolling fair six-sided dice is .
Let be the random variable the highest result in rolling fair six-sided dice. Then is the desired PMF. The CDF thus represents the probability that the highest roll is or lower. By the multiplication rule, the probability that the highest roll is or lower is the product of the probability that each of the rolls results in is lower:
Then, we use the formula to recover the desired PMF: