PDF
✖
PDF
Details

- For discrete distributions, PDF is also known as a probability mass function.
- For continuous distributions, PDF[dist,x] dx gives the probability that an observed value will lie between x and x+dx for infinitesimal dx.
- For discrete distributions, PDF[dist,x] gives the probability that an observed value will be x.
- For continuous multivariate distributions, PDF[dist,{x1,x2,…}]dx1 dx2 … gives the probability that an observed value will lie in the box given by the limits xi and xi+dxi for infinitesimal dxi.
- For discrete multivariate distributions, PDF[dist,{x1,x2,…}] gives the probability that an observed value will be {x1,x2,…}.
Examples
open allclose allBasic Examples (4)Summary of the most common use cases
The PDF of a univariate continuous distribution:

https://wolfram.com/xid/0bn6enu-crvabh


https://wolfram.com/xid/0bn6enu-cubfzx

The PDF of a univariate discrete distribution:

https://wolfram.com/xid/0bn6enu-ibu4tk


https://wolfram.com/xid/0bn6enu-j5du1

The PDF of a multivariate continuous distribution:

https://wolfram.com/xid/0bn6enu-cifkrj


https://wolfram.com/xid/0bn6enu-njup1w

The PDF for a multivariate discrete distribution:

https://wolfram.com/xid/0bn6enu-od3dae


https://wolfram.com/xid/0bn6enu-j1nznt

Scope (23)Survey of the scope of standard use cases
Parametric Distributions (5)

https://wolfram.com/xid/0bn6enu-dgckxh


https://wolfram.com/xid/0bn6enu-f8gibm

Obtain a machine-precision result:

https://wolfram.com/xid/0bn6enu-kdtpo7

Obtain a result at any precision for a continuous distribution:

https://wolfram.com/xid/0bn6enu-d6m9eu

Obtain a result at any precision for a discrete distribution with inexact parameters:

https://wolfram.com/xid/0bn6enu-e696

PDF threads element-wise over lists:

https://wolfram.com/xid/0bn6enu-uxh42


https://wolfram.com/xid/0bn6enu-mcr1m6

Nonparametric Distributions (4)
PDF for non-parametric distributions:

https://wolfram.com/xid/0bn6enu-bhbipu

https://wolfram.com/xid/0bn6enu-ezf28g


https://wolfram.com/xid/0bn6enu-fnodal

Compare with the value for the underlying parametric distribution:

https://wolfram.com/xid/0bn6enu-llcjdj

Plot the PDF for a histogram distribution:

https://wolfram.com/xid/0bn6enu-bezwuv

Closed-form expression for the PDF of a kernel mixture distribution:

https://wolfram.com/xid/0bn6enu-dldvgo

Plot of the PDF of a bivariate smooth kernel distribution:

https://wolfram.com/xid/0bn6enu-d1pyr5

Derived Distributions (10)
Product of independent distributions:

https://wolfram.com/xid/0bn6enu-8pyz0


https://wolfram.com/xid/0bn6enu-i185f

Component mixture distribution:

https://wolfram.com/xid/0bn6enu-g8oy2


https://wolfram.com/xid/0bn6enu-l97u83

Quadratic transformation of a discrete distribution:

https://wolfram.com/xid/0bn6enu-qx2dx


https://wolfram.com/xid/0bn6enu-k0a3dq


https://wolfram.com/xid/0bn6enu-d2ukan


https://wolfram.com/xid/0bn6enu-59tyl


https://wolfram.com/xid/0bn6enu-b8ebyy


https://wolfram.com/xid/0bn6enu-bnm6za

Parameter mixture distribution:

https://wolfram.com/xid/0bn6enu-bct2he


https://wolfram.com/xid/0bn6enu-o4vib6


https://wolfram.com/xid/0bn6enu-cng2z2

Formula distribution defined by its PDF:

https://wolfram.com/xid/0bn6enu-few7li


https://wolfram.com/xid/0bn6enu-ceb6ni

Defined by its survival function:

https://wolfram.com/xid/0bn6enu-hfkb2


https://wolfram.com/xid/0bn6enu-gmxz4v

The PDF for QuantityDistribution assumes the argument is a Quantity with compatible units:

https://wolfram.com/xid/0bn6enu-z6cqh


https://wolfram.com/xid/0bn6enu-bjwd0p

This allows for direct quantity substitution:

https://wolfram.com/xid/0bn6enu-bs6882

Compare with the direct use of the quantity argument:

https://wolfram.com/xid/0bn6enu-kkvt7w

Random Processes (4)
Find the PDF for a SliceDistribution of a discrete-state random process:

https://wolfram.com/xid/0bn6enu-hha5jz


https://wolfram.com/xid/0bn6enu-ec193c

A continuous-state random process:

https://wolfram.com/xid/0bn6enu-cg4akz


https://wolfram.com/xid/0bn6enu-dzmz38

Find the multiple time-slice PDF for a discrete-state process:

https://wolfram.com/xid/0bn6enu-r98gn


https://wolfram.com/xid/0bn6enu-hlbkqt

A multi-slice for a continuous-state process:

https://wolfram.com/xid/0bn6enu-h5vy9j


https://wolfram.com/xid/0bn6enu-m37pj

Find the PDF for the StationaryDistribution of a discrete-state random process:

https://wolfram.com/xid/0bn6enu-mpszqf


https://wolfram.com/xid/0bn6enu-bdqzil

Find the slice distribution for time :

https://wolfram.com/xid/0bn6enu-h72hjq


https://wolfram.com/xid/0bn6enu-e0fhml

Applications (10)Sample problems that can be solved with this function
Visualizing PDFs (5)

https://wolfram.com/xid/0bn6enu-f0ov1z


https://wolfram.com/xid/0bn6enu-btvbs

Plot a continuous bivariate PDF:

https://wolfram.com/xid/0bn6enu-f22pm2

Plot a discrete bivariate PDF:

https://wolfram.com/xid/0bn6enu-f59enu


https://wolfram.com/xid/0bn6enu-cgdrmm

Plot a family of univariate continuous PDFs:

https://wolfram.com/xid/0bn6enu-i7zu82

Computing the CDF (1)
Confidence Intervals (1)
Mode of a Distribution (1)
Affine Transformations (1)
Poisson Approximation to Binomial (1)
Verify the Poisson approximation of the binomial distribution for large and small
:

https://wolfram.com/xid/0bn6enu-b9c2b0

https://wolfram.com/xid/0bn6enu-pnmfu


https://wolfram.com/xid/0bn6enu-drjm46


https://wolfram.com/xid/0bn6enu-gyrntf


https://wolfram.com/xid/0bn6enu-bzo9yq

Properties & Relations (9)Properties of the function, and connections to other functions
The integral or sum over the support of the distribution is unity:

https://wolfram.com/xid/0bn6enu-irh6rs


https://wolfram.com/xid/0bn6enu-dwmrz2

The CDF is the integral of the PDF
for continuous distributions;
:

https://wolfram.com/xid/0bn6enu-nrya2e


https://wolfram.com/xid/0bn6enu-ii9ir5


https://wolfram.com/xid/0bn6enu-ev6jjf

The CDF is the integral of the PDF
;
:

https://wolfram.com/xid/0bn6enu-ls1vpz

https://wolfram.com/xid/0bn6enu-dzq36n

https://wolfram.com/xid/0bn6enu-o923w

https://wolfram.com/xid/0bn6enu-jyp266

The CDF is the sum of the PDF
for discrete distributions
:

https://wolfram.com/xid/0bn6enu-fnsjkn


https://wolfram.com/xid/0bn6enu-hd6k6l


https://wolfram.com/xid/0bn6enu-jych9e

The survival function is the integral of the PDF
;
:

https://wolfram.com/xid/0bn6enu-hps8vg


https://wolfram.com/xid/0bn6enu-bid0zg


https://wolfram.com/xid/0bn6enu-kdflkq

Expectation for for a continuous distribution is the PDF-weighted integral
:

https://wolfram.com/xid/0bn6enu-bjga3w

https://wolfram.com/xid/0bn6enu-dlhu9o


https://wolfram.com/xid/0bn6enu-ci8ibw

The expectation for for a discrete distribution is the PDF-weighted sum
:

https://wolfram.com/xid/0bn6enu-cenlaj

https://wolfram.com/xid/0bn6enu-hogpc5


https://wolfram.com/xid/0bn6enu-lt6w3

The probability of for a discrete univariate distribution is given by the PDF:

https://wolfram.com/xid/0bn6enu-bztb39


https://wolfram.com/xid/0bn6enu-k67x0r

The HazardFunction of a distribution is a ratio of the PDF and the survival function:

https://wolfram.com/xid/0bn6enu-epuujk


https://wolfram.com/xid/0bn6enu-gbf1mf

Possible Issues (3)Common pitfalls and unexpected behavior
Symbolic closed forms do not exist for some distributions:

https://wolfram.com/xid/0bn6enu-gtite


https://wolfram.com/xid/0bn6enu-k4p5g

Substitution of invalid values into symbolic outputs can give results that are not meaningful:

https://wolfram.com/xid/0bn6enu-gk0wnb

Passing it as an argument will generate correct results:

https://wolfram.com/xid/0bn6enu-d88ikd

The PDF of a distribution whose measure is incompatible with the Lebesgue measure or counting measure on the integer lattice may not evaluate or may give an incorrect result:

https://wolfram.com/xid/0bn6enu-foy3vo
The result of the PDF is not normalized:

https://wolfram.com/xid/0bn6enu-gk9aqa

The distribution measure has an atom at the origin, and hence is incompatible with the Lebesgue measure:

https://wolfram.com/xid/0bn6enu-coz5ws

The incompatibility manifests itself in a jump discontinuity of the CDF at the atom location:

https://wolfram.com/xid/0bn6enu-dbwu


https://wolfram.com/xid/0bn6enu-ggfyc

Mixed distributions are fully supported by Expectation, Probability, RandomVariate, etc.:

https://wolfram.com/xid/0bn6enu-cor556


https://wolfram.com/xid/0bn6enu-fcf0lv

Neat Examples (3)Surprising or curious use cases
PDF for a truncated binormal distribution:

https://wolfram.com/xid/0bn6enu-bsv6sj

https://wolfram.com/xid/0bn6enu-c8a4wj

Isosurfaces for a trivariate normal distribution:

https://wolfram.com/xid/0bn6enu-b2fz20

https://wolfram.com/xid/0bn6enu-jwdkdd

Isosurfaces for PDF when varying a correlation coefficient:

https://wolfram.com/xid/0bn6enu-cm6fau

https://wolfram.com/xid/0bn6enu-bh19ht

Wolfram Research (2007), PDF, Wolfram Language function, https://reference.wolfram.com/language/ref/PDF.html (updated 2010).
Text
Wolfram Research (2007), PDF, Wolfram Language function, https://reference.wolfram.com/language/ref/PDF.html (updated 2010).
Wolfram Research (2007), PDF, Wolfram Language function, https://reference.wolfram.com/language/ref/PDF.html (updated 2010).
CMS
Wolfram Language. 2007. "PDF." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2010. https://reference.wolfram.com/language/ref/PDF.html.
Wolfram Language. 2007. "PDF." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2010. https://reference.wolfram.com/language/ref/PDF.html.
APA
Wolfram Language. (2007). PDF. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/PDF.html
Wolfram Language. (2007). PDF. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/PDF.html
BibTeX
@misc{reference.wolfram_2025_pdf, author="Wolfram Research", title="{PDF}", year="2010", howpublished="\url{https://reference.wolfram.com/language/ref/PDF.html}", note=[Accessed: 25-May-2025
]}
BibLaTeX
@online{reference.wolfram_2025_pdf, organization={Wolfram Research}, title={PDF}, year={2010}, url={https://reference.wolfram.com/language/ref/PDF.html}, note=[Accessed: 25-May-2025
]}