Brighton Webs Ltd.
statistical and data services for industry
Home
Index
Feedback

The Triangular Distribution is typically used as a subjective description of a population for which there is only limited sample data. It is based on a knowledge of the minimum and maximum and an inspired guess as to what the modal value might be. Despite being a simplistic description of a population, it is a very useful distribution for modeling processes where the relationship between variables is known, but data is scarce (possibly because of the high cost of collection).

It is also used as an alternative to the Beta distribution in PERT, CPM and similar forms of project management tool. The section on the Beta distribution contains an example using both the Beta and Triangular distributions.

By changing the input parameters of the graphic, you can see the variations in the probability density function, cumulative frequency and characteristics of the triangular distribution.  Clicking the random button will generate 100 random numbers for the current parameters.

Min Mode Max
Random Numbers
47.575 43.630 65.651 44.440 27.495 46.088 41.036 41.887 54.450 30.857 63.969 39.508 55.180 49.072 39.066 38.947 40.457 50.534 41.644 51.993 35.078 33.215 37.742 23.400 36.028 32.541 43.240 62.088 41.186 46.969 76.494 34.491 48.795 48.323 35.161 42.645 33.770 59.408 52.808 25.257 29.273 64.639 52.400 26.776 73.360 42.314 50.824 36.258 37.194 54.767 30.239 60.745 32.387 50.021 40.041 47.995 38.142 59.169 58.266 59.996 62.411 44.313 54.075 70.584 49.467 46.470 56.247 31.669 69.803 35.717 68.336 23.827 39.677 57.073 57.566 47.340 28.031 33.953 37.408 51.469 67.294 61.465 45.485 51.182 28.889 44.705 31.014 71.649 63.702 55.864 53.194 56.676 36.965 38.530 40.613 42.986 43.869 66.177 45.113 45.920

Parameters

Parameter Description Characteristics
min Minimum value A float > -∞ and <= mode
mode Modal Value A float >= min or <= max
max Maximum value A float >= mode and < ∞

Range

The range is determined by the min and max parameters.

Functions

Properties

Example

Triangular distributions are used in oil and gas exploration where data is expensive to collect and it is almost impossible to model the population being sampled accurately, thus subjectivity plays a greater role than in data rich sectors.  The example below shows a subjective assessment of the expected size of discoveries in the United Kingdom's East Midland's Basin:

See the section on the lognormal distribution for an alternative model.

Parameter Estimation

The parameters of a triangular distribution can be derived directly from the dataset which it is intended to describe or model.  Provided the dataset does not contain any anomalous points, the minimum and maximum can be obtained by sorting the values in ascending order and selecting the first and last points.  Un less the mode is being set subjectively, there are a number of ways of determining the mode including:

Use an algorithm such successive bisection

Use the Max, Min and Mean to estimate the mode

This example illustrates both approaches.  The figures below are the porosity of rock samples from deep bore holes. These are very expensive to collect and only a few are available to the analyst who may be asked to provide input for some form of Monte-Carlo evaluation:

10.0%, 13.5%, 15.5%, 20.0%

The successive bisection algorithm estimates the mode as 14.5%.  The mean value of the observations is 14.75%, using this value together with the min and max into this formula sets the mode as 14.25%:

A subjective estimate of the mode by a cautious analyst might set the mode at 12%.

Random Number Generation

Random number generation (referred to as R) for a triangular distribution can be performed by transforming a continuous uniform variable in the range 0 to 1 (referred to as U) with the distribution's inverse probability function:

r=g(u)

Using Basic style code, the function would be similar to:

u=rnd()

if u <= (mode-min)/(max-min) then
  r=min+sqr(u*(max-min)*(mode-min))
else
  r=max-sqr((1-u)*(max-min)*(max-mode))
end if

Storing the value from the random number function in the variable u is important because most random number function return a new value each time they are called.  Without the use of the u variable, the statement would use one value for branching and another for calculation.

Page updated: 07-Nov-2007

 

For more information: info@brighton-webs.co.uk