Formally, a probability distribution has density ''f'' if ''f'' is a non-negative Lebesgue-integrable function such that the probability of the interval ''b'' is given by
:
for any two numbers ''a'' and ''b''. This implies that the total integral of ''f'' must be 1. Conversely, any non-negative Lebesgue-integrable function with total integral 1 is the probability density of a suitably defined probability distribution.
Intuitively, if a probability distribution has density ''f''(''x''), then the infinitesimal Interval ''x'' + d''x'' has probability ''f''(''x'') d''x''.
Informally, a probability density function can be seen as a "smoothed out" version of a , producing a histogram depicting relative frequencies of output ranges, then this histogram will resemble the random variable's probability density, assuming that the output ranges are sufficiently narrow.
A is any function ''f''(''x'') that describes the probability density in terms of the input variable ''x'' in a manner described below.
- ''f''(''x'') is greater than or equal to zero for all values of ''x''
- The total area under the graph is 1:
::
The actual probability can then be calculated by taking the integral of the function ''f''(''x'') by the integration interval of the input variable ''x''.
For example: the probability of the variable ''X'' being within the interval {Link without Title} would be
:
For example, the Continuous Uniform Distribution on the interval {Link without Title} has probability density ''f''(''x'') = 1 for 0 ≤ ''x'' ≤ 1 and ''f''(''x'') = 0 elsewhere. The standard Normal Distribution has probability density
:
If a random variable ''X'' is given and its distribution admits a probability density function ''f''(''x''), then the Expected Value of ''X'' (if it exists) can be calculated as
:
Not every probability distribution has a density function: the distributions of Discrete Random Variable s do not; nor does the Cantor Distribution , even though it has no discrete component, i.e., does not assign positive probability to any individual point.
A distribution has a density function if and only if its Differentiable , and its derivative can be used as probability density:
:
If a probability distribution admits a density, then the probability of every one-point set {''a''} is zero.
It is a common mistake to think of ''f''(''x'') as the probability of {''x''}, but this is incorrect; in fact, ''f''(''x'') will often be bigger than 1 - consider a random variable that is Uniformly Distributed between 0 and ½. Loosely, one may think of ''f''(''x'') ''dx'' as the probability that a random variable whose probability density function if ''f'' is in the interval from ''x'' to ''x'' + ''dx'', where ''dx'' is an infinitely small increment.
Two probability densities ''f'' and ''g'' represent the same Probability Distribution precisely if they differ only on a set of Lebesgue Measure Zero .
In the field of Statistical Physics , a non-formal reformulation of the relation above between the derivative of the Cumulative Distribution Function and the probability density function is generally used as the definition of the probability density function. This alternate definition is the following:
If ''dt'' is an infinitely small number, the probability that is included within the interval (''t'', ''t'' + ''dt'') is equal to , or:
: |