Probability Density Function

A probability density function:

  • is used to define the statistical distributions of a continuous random variable; and

  • can be defined for uniform, normal, log-normal, piecewise linear, and discrete distributions.

This page discusses:

Introduction

There are many examples of randomness associated with data. Particle sizes in a granular media such as gravel are an example. Randomness observed in data can be described by statistical distributions. Pseudo-random numbers that are generated based on statistical distributions are used to capture randomness in data in a numerical simulation.

Applications

The size distribution of particle species generated by a particle generator can be described by statistical distributions.

Probability Density Function

A probability density function (PDF) describes the probability of the value of a continuous random variable falling within a range. If the random variable can only have specific values (like throwing dice), a probability mass function (PMF) would be used to describe the probabilities of the outcomes. The plot on the left in Figure 1 shows a PDF for the random variable x. The probability that the random variable has a value in the range x and x+dx is f(x)dx. The probability that the random variable x will be in the range axb is given by:

Pr[axb]=abf(x)dx.

The probability that the random variable x is in the range - and is one; i.e.,

-f(x)dx=1.

The area under the PDF curve is, therefore, always unity.

Probability distributions of continuous and discrete variables.

The plot on the right in Figure 1 shows a PMF where the horizontal axis shows the specific values of the random variable and the vertical axis shows the corresponding probabilities.

Abaqus/Explicit supports uniform, normal (Gaussian), log-normal, piecewise linear, and discrete probability density functions. To define a probability density function, you must assign it a name and specify its type.

Uniform Probability Density Function

Uniform distributions (shown in Figure 2) have many applications, particularly in the numerical simulation of random processes. The following function describes a uniform probability density function for a random variable x between xmin and xmax:

f(x)={1xmax-xminxminxxmax0otherwise.

The mean is μ=xmin+xmax2, and the variance is σ2=(xmax-xmin)212. You specify xmin and xmax for the uniform distribution.

Uniform PDF.

Normal Probability Density Function

Normal distributions (shown in Figure 3) have many applications in science and engineering; for example, errors in experimental measurements are often assumed to have a normal distribution. The following function describes a normal probability density function:

f(x)=12πσe[-(x-μ)22σ2].

The mean is μ=1Ni=1Nxi, and the variance is σ2=1Ni=1N(xi-μ)2. You specify the mean, μ, and standard deviation, σ, for the normal distribution.

Normal PDF.

Log-Normal Probability Density Function

Log-normal distributions (shown in Figure 4) are used in describing many natural phenomena. They are commonly used to describe particle size distributions in soils. The following function describes a log-normal probability density function:

f(x)={12πσxe[-[ln(x)-μ]22σ2]x>00otherwise.

The mean, μ^, and standard deviation, σ^, in the x space are related to μ and σ as follows:

μ^=e[μ+12σ2]σ2^=e2μeσ2(eσ2-1),

where the parameters μ and σ are the mean and standard deviation in the ln(x) space; given by μ=1Ni=1Nln(xi) and σ=1Ni=1N(ln(xi)-μ)2, respectively. You specify the mean, μ^, and the standard deviation, σ^, in the x space for the log-normal distribution.

Log-normal PDF.

Piecewise Linear Probability Density Function

A piecewise linear probability density function can be used to approximate general distributions that are not well represented by the other PDF forms discussed above. With a piecewise linear probability density function, you specify PDF values at discrete points. Abaqus/Explicit considers linear variations in the PDF between these points, as shown in Figure 5. The PDF is zero below the first data point and above the last data point.

Piecewise linear PDF.

As mentioned earlier, the area under a PDF is unity. When the deviation of the area under the PDF is within 2% of unity, Abaqus/Explicit renormalizes the specified PDF data to achieve this requirement. This renormalization of data values allows you to specify relative PDF values that can be obtained from a histogram with small numerical errors. A histogram contains the data in the form of a table of random variable ranges and the percentage or number that falls within those ranges. The PDF is obtained from the histogram by normalizing the area under the histogram. As shown in Figure 6, you specify a table of the midpoint value of each range in the normalized histogram and the corresponding count:

{x1c(x1)x2c(x2)x3c(x3)....xnc(xn)
Histogram.

There may be situations where the random variable has continuous values over certain ranges and discrete values elsewhere. Figure 7 shows the use of a piecewise linear probability density function to approximate such distributions where the discrete values are approximated by continuous random variables spanning a very narrow range of values (for example, the discrete value x7 is approximated by the continuous range from x5 to x9).

Approximating a discrete probability distribution using a piecewise linear PDF.

Discrete Probability Density Function

Some applications have only certain specific outcomes. These applications can be represented by a discrete probability density function, as shown in Figure 8. A simple example is throwing of a pair of dice. Only the outcomes of 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, and 12 are possible, with the probabilities of 1/36, 2/36, 3/36, 4/36, 5/36, 6/36, 5/36, 4/36, 3/36, 2/36, and 1/36, respectively. A very specific case of a discrete probability density function is the case when only one value occurs with the probability of 1. To specify a discrete probability density function, you provide a table of the specific values of the random variable along with the corresponding probability:

{x1p1x2p2x3p3....xnpn

The specified probabilities should sum up to 1. Small deviations can occur in some cases. When the sum of the probabilities is within two percent of unity, Abaqus/Explicit renormalizes the specified probabilities to ensure that they sum up to 1.

Discrete PDF.

Truncated Probability Density Function

The normal and log-normal probability density functions have open-ended characteristics. These PDFs can be truncated to enforce upper and lower bounds on the value of the random variable. Figure 9 shows a truncated normal distribution f^(x) where all values of the random variable x<xmin and x>xmax from the untruncated normal distribution f(x) have been rejected.

f^(x)={0x<xminf(x)kxminxxmax0x>xmin,

where

k=xminxmaxf(x)dx.

The factor k represents the probability that the random variable is in the range from xmin to x=xmax for the untruncated PDF.

Truncated PDF.

You specify the lower and upper limits of the random variable along with the mean and standard deviation for these types of PDFs. The uniform and the piecewise linear distributions have lower and upper limits for the random variable built into the definition of the PDF and, therefore, do not require renormalization because of truncation.

Output

No output is available for probability density functions.

Limitations

Probability density functions are supported only for the size distributions of PD3D elements created using a particle generator.

Input File Template

The following example illustrates the use of a probability density function for particle size distribution:

HEADINGPARTICLE GENERATOR, NAME=generator_name, TYPE=PD3D, 
MAXIMUM NUMBER OF PARTICLES=number
**
PARTICLE GENERATOR INLET, SURFACE=inlet_surf
**
PARTICLE GENERATOR MIXTURE
gen_SET1, gen_SET2
**
PROBABILITY DENSITY FUNCTION, NAME=PDF_gen_SET1, TYPE=NORMAL
Data line to define PDF
PROBABILITY DENSITY FUNCTION, NAME=PDF_gen_SET2, TYPE=LOGNORMAL
Data line to define PDF
**
DISCRETE SECTION, ELSET=gen_SET1
PDF_gen_SET1
DISCRETE SECTION, ELSET=gen_SET2
PDF_gen_SET2END STEP

References

  1. Benjamin J. R. and CACornell, Probability, Statistics, and Decision for Civil Engineers,” McGraw-Hill, 1970.
  2. Press W. H.SATeukolskyWTVetterling, and BPFlannery, Numerical Recipes in Fortran 77, The Art of Scientific Computing,” University of Cambridge, 1992.
  3. Saucier R.Computer Generation of Statistical Distributions,” Army Research Laboratory, 2000.