OpenBI Docs Buy

BETA.DIST

The beta distribution at a value, as a density or a cumulative probability, on 0 to 1 or an interval given.

Group: Statistics. Compatible with DAX.

Syntax

BETA.DIST ( <x>, <alpha>, <beta>, <cumulative> [, <A>] [, <B>] )
ParameterTypeDescription
xNumberWhere the distribution is read: a value from A to B.
alphaNumberThe first shape parameter, above 0.
betaNumberThe second shape parameter, above 0.
cumulativeBooleanTRUE for the cumulative probability, the chance of a value up to x; FALSE for the density at x.
ANumber
optional
The lower end of x's interval; 0 when left out.
BNumber
optional
The upper end of x's interval; 1 when left out.

Returns

Number. The beta density at x, or the probability of a value no larger than x.

Remarks

  • The beta distribution describes a share or rate that lives between two limits. Alpha and beta set its shape: with both 1 it is flat, so BETA.DIST ( 0.3, 1, 1, TRUE ) is 0.3.
  • With A and B, x is first moved onto 0 to 1: BETA.DIST ( 6, 2, 3, TRUE, 2, 12 ) equals BETA.DIST ( 0.4, 2, 3, TRUE ).
  • A blank x gives BLANK. An x outside A to B, an alpha or beta of 0 or less, or an A that is not below B is an error.

Examples

Density and cumulative probability

EVALUATE
ROW (
    "Density", BETA.DIST ( 0.4, 2, 3, FALSE ),
    "Cumulative", BETA.DIST ( 0.4, 2, 3, TRUE )
)
DensityCumulative
1.7280.5248

On an interval of its own

The value 6 on the interval 2 to 12 sits where 0.4 sits on 0 to 1, so the two probabilities agree.

EVALUATE
ROW (
    "On 0 to 1", BETA.DIST ( 0.4, 2, 3, TRUE ),
    "On 2 to 12", BETA.DIST ( 6, 2, 3, TRUE, 2, 12 )
)
On 0 to 1On 2 to 12
0.52480.5248

BETA.INV, NORM.DIST, CHISQ.DIST, EXPON.DIST.

Last updated · OpenBI Studio 0.3.74