The cumulative distribution function (CDF) is a function that describes the probability that a random variable takes on a value less than or equal to a specific value. It provides a complete picture of the distribution of probabilities for both discrete and continuous random variables, enabling comparisons and insights across different types of distributions.