# Cumulative distribution function

> Canonical: https://skillalmanac.com/glossary/cumulative-distribution-function | Last verified: 2026-11-25 | Index status: index-eligible

A cumulative distribution function is a function giving the probability that a random variable is less than or equal to each chosen value.

Also called: CDF, distribution function.

## In plain language

The cumulative distribution function of a random variable X is F(x) = P(X ≤ x). It accumulates probability from the lower end of the variable’s range through x. A CDF applies to discrete and continuous variables, stays between 0 and 1 and never decreases as x increases. It need not be smooth.

## Technical definition

For any random variable, F(x) = P(X ≤ x). If a distribution has density f, its CDF can be obtained by integrating f up to x; that representation does not apply when no density exists. For a < b, P(a < X ≤ b) = F(b) - F(a). An empirical cumulative proportion computed from a finite sample estimates or summarizes observed data and must not be presented as the population CDF without qualification.

## How it shows up when you use agents

An agent can use a cumulative distribution function when a task asks for the probability that a random quantity is at or below a threshold. The definition is F(x) = P(X ≤ x), so the inequality and the threshold both matter.

Consider a hypothetical discrete variable X with P(X = 0) = 0.2, P(X = 1) = 0.5 and P(X = 2) = 0.3. Then F(0) = 0.2, F(1) = 0.2 + 0.5 = 0.7 and F(2) = 1. The function rises in steps; it does not need to be smooth. The probability that 0 < X ≤ 2 is F(2) - F(0) = 1 - 0.2 = 0.8.

For an observed sample, an agent might instead report the proportion of recorded values at or below a threshold. Label that result as an empirical sample proportion, including its count and denominator, rather than silently treating it as a known population probability.

## Common confusions

A CDF value is cumulative probability, not density. If a distribution has a probability density function, integrating that density up to x produces F(x). But the CDF itself is already a probability and must lie between 0 and 1. A density’s height has different units and can exceed 1.

CDFs apply to both discrete and continuous random variables. Do not assume every CDF is smooth or that every continuous distribution has a density. The general definition F(x) = P(X ≤ x) remains valid without a density.

An empirical cumulative calculation and a population model answer different questions. In a hypothetical sample with 7 of 10 values at or below 4, the empirical cumulative proportion at 4 is 7 / (10) = 0.7. That arithmetic describes those ten observations; it does not prove the population probability is 0.7. The EDA skill can inspect quantiles, ranges, counts, outliers and coding issues, but it does not fit a distribution, calculate arbitrary requested CDF values or certify that the sample represents a population.

## Worked examples in this catalogue

### [data-analysis-eda](https://skillalmanac.com/skills/skill-almanac/data-analysis-eda)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Use the data-analysis EDA skill to inspect numeric quantiles, ranges, counts and possible coding problems before interpreting cumulative patterns in a CSV.

Why it exercises the concept: Quantiles and ordered observations help check cumulative claims and reveal sentinels or unit errors. The skill profiles the supplied sample only; it does not fit a population distribution, calculate arbitrary requested CDF values, train a model or certify representativeness.

## Related terms

- [Data analysis](https://skillalmanac.com/glossary/data-analysis.md)
- [Predictive analytics](https://skillalmanac.com/glossary/predictive-analytics.md)
- [Data science](https://skillalmanac.com/glossary/data-science.md)

## Sources

- [1.3.6.2. Related Distributions](https://www.itl.nist.gov/div898/handbook/eda/section3/eda362.htm), National Institute of Standards and Technology (accessed 2026-11-25)
- [Probability Density Function (PDF)](https://www.probabilitycourse.com/chapter4/4_1_1_pdf.php), ProbabilityCourse.com (accessed 2026-11-25)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-25. [Glossary index](https://skillalmanac.com/glossary.md).
