OpenBI Docs Buy

EXPON.DIST

The exponential distribution at a value, as a density or a cumulative probability.

Group: Statistics. Compatible with DAX.

Syntax

EXPON.DIST ( <x>, <lambda>, <cumulative> )
ParameterTypeDescription
xNumberThe waiting time or distance, 0 or more.
lambdaNumberThe rate: events per unit of x, above 0.
cumulativeBooleanTRUE for the chance that the wait is at most x; FALSE for the density at x.

Returns

Number. The exponential density at x, or the probability of a wait no longer than x.

Remarks

  • The cumulative form is 1 − e^(−lambda × x). The mean wait is 1 / lambda.
  • A blank x gives BLANK. A negative x, or a lambda of 0 or less, is an error.

Examples

Density and cumulative probability

EVALUATE
ROW (
    "Density", EXPON.DIST ( 0.5, 2, FALSE ),
    "Cumulative", EXPON.DIST ( 0.5, 2, TRUE )
)
DensityCumulative
0.7357588823428850.632120558828558

Waiting for a call that comes every two minutes on average

A rate of 0.5 a minute: the chance that the next call comes within each wait.

EVALUATE
VAR Waits = DATATABLE ( "Minutes", DOUBLE, { { 0.5 }, { 1 }, { 2 }, { 4 } } )
RETURN
    ADDCOLUMNS ( Waits, "Within", EXPON.DIST ( [Minutes], 0.5, TRUE ) )
MinutesWithin
0.50.221199216928595
10.393469340287367
20.632120558828558
40.864664716763387

POISSON.DIST, NORM.DIST, CHISQ.DIST.

Last updated · OpenBI Studio 0.3.74