Distribution function

Simulation Modelling category - Monte Carlo family Home 
What the name means"Generate a value from a probability distribution"
SyntaxDistribution ( DistMin, DistMid, DistMax, DistType, [RandOpt] )
DescriptionGiven a probability or using one generated from a random number, the function returns the value of a deviate from the specified distribution. This function is the opposite of CumProb.
VolatilityThis function is termed 'volatile', which means it recalculates whenever the worksheet is recalculated, regardless of whether any of its inputs have changed. See Volatility.
VariableType or ValueDescription
Inputs: (5)
1 DistMin Float Minimum Point of a Distribution (either p=0 or as defined for the distribution type DistType)
2 DistMid Float Mid Point of a Distribution (either p=0.5 or as defined for the distribution type DistType)
3 DistMax Float Maximum Point of a Distribution (either p=1 or as defined for the distribution type DistType)
4 DistType Real Integer Distribution type(1=uniform, etc - see variable detail for values)
5 RandOpt Float (Optional) Either a random number between zero and ,1 or alternatively -1 for the function to choose its own a random number (defaults to random) (Optional)
Output:
Return Value Deviate Float A value belonging to the distribution
Defaults and Values

The variable(s) of this function have certain defaults and/or switch values associated with them. Click here to see more.

The use of DistMin, DistMid and DistMax is to speed up data input by enabling you to specify a distribution using layman's terms instead of specifying statistical parameters. Strict statistical paramteres can be used with any of the stand-alone distribution functions if so desired.

The values of DistMin, DistMid and DistMax are as follows:

DistributionDistMinDistMidDistMax
UniformMinimum (0%)(Ignored)Maximum (100%)
TriangularMinimum (0%)Mode (Apex)Maximum (100%)
Double TriangularMinimum (0%)Median (Apex, 50%)Maximum (100%)
NormalMinimum (1%) Median (50%)Maximum (99%)
LogNormalMinimum (1%)Median (50%)Maximum (99%)

Percentages refer to cumulative probability levels. For functions where the maximum and minimum do not (and could not) represent the limits of the distribution (such as the Normal, which attenuates gently to zero over and infinitely long tail) the distribution is truncated at the probability levels specified above. In otherwords, the distribution function will force values outside of the central 98% (1%>p>99%) to the specified minimum or maximum.
Key Points
Values For DistType

Examples
  • Preview of the Distribution example.
  • The above spreadsheet can be accessed from the Quick Reference (on the Business Functions menu), on the Examples menu, or in the Business Functions\Component Examples directory