A random variable assigns a numerical value to each outcome. Its distribution describes how probability is spread over those values. The variable, its realized value , and the event are different objects.
Discrete probability mass
For the number of heads in two independent fair coin flips, the probabilities of zero, one, and two heads are one quarter, one half, and one quarter. The middle count has more probability because two distinct outcomes produce it.
The cumulative distribution function
Every CDF is nondecreasing and right-continuous. It approaches zero far to the left and one far to the right. For discrete variables, its jumps are the point probabilities.
This interval identity works for both discrete and continuous distributions. Including or excluding an endpoint can change a discrete probability, so keep the inequalities consistent.
Continuous density
When a distribution has a probability density, interval probabilities are areas under that density. The density itself is not a point probability and can be greater than one.
For a variable with a density, for every individual value. For example, a uniform density on an interval of length has height , while its total area is still .
Quantiles and medians
This generalized inverse defines quantiles even when the CDF has jumps. A median satisfies both and ; it need not be unique.
Turning uniforms into other distributions
If , then has CDF . In the other direction, is uniform on when is continuous. The latter claim is not true for a discrete CDF without an additional randomization step.
For an exponential waiting time, solve the CDF equation for the input. This gives an inverse-transform sampling rule.