# Probability density function

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

A probability density function is a nonnegative function whose area over an interval gives that interval’s probability for a distribution having a density.

Also called: probability density, density function.

## In plain language

A probability density function describes how probability is distributed over possible values when the distribution has a density. Its height at one point is density, not the probability of that exact point. Probabilities come from areas: integrating the density across an interval. The total area over all possible values is 1.

## Technical definition

For a distribution having density f, f(x) is nonnegative and its integral over the real line is 1. For suitable endpoints a and b, P(a < X ≤ b) = the integral of f(x) from a to b. A density value can exceed 1 because it is probability per unit of the variable, while the integrated probability remains between 0 and 1. Not every continuous distribution has a probability density function, so the density representation must be an explicit assumption.

## How it shows up when you use agents

An agent may encounter a probability density function when a workflow models a continuous quantity such as latency under an explicitly chosen distribution. The curve’s height is not the probability of observing that exact value. Probability is obtained from area over a range.

For a checkable hypothetical example, let X have a uniform distribution on [0, 2]. Its density is 1 / (2 - 0) = 0.5 throughout that interval and 0 elsewhere. The probability that X lies between 0.5 and 1.5 is the rectangle’s area: (1.5 - 0.5) × 0.5 = 0.5. The probability at any single specified point is 0, even though the density there is 0.5.

Before adopting such a model, use descriptive checks on the actual numeric data and state that the distribution is an assumption, not an empirical count discovered by the curve.

## Common confusions

Density is not point probability. A density value can even exceed 1 when the unit interval is sufficiently narrow; what must stay between 0 and 1 is an integrated probability. For example, a uniform distribution on [0, 0.5] has density 1 / (0.5 - 0) = 2, while its total area is 0.5 × 2 = 1.

A histogram or sample frequency table is also not automatically a population density. It summarizes observed data using chosen bins. A fitted density adds modelling choices and uncertainty.

Not every continuous distribution has a probability density function. Use density formulas only after establishing or assuming a distribution with a density. The EDA skill can inspect quantiles, range, mean, median, suspected outliers, heavy tails and coding problems in a CSV. It does not fit densities, select a probability family, compute arbitrary requested probabilities or validate the population assumption.

## 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 a numeric column’s quantiles, range, mean, median and outlier counts before proposing a distributional model.

Why it exercises the concept: The profile can reveal skew, heavy tails, suspicious sentinels and unit problems that make a density assumption questionable. It does not fit a probability density, select a distribution, calculate arbitrary interval probabilities or prove that the population has a density.

## Related terms

- [Data analysis](https://skillalmanac.com/glossary/data-analysis.md)
- [Predictive analytics](https://skillalmanac.com/glossary/predictive-analytics.md)
- [Anomaly detection](https://skillalmanac.com/glossary/anomaly-detection.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).
