NORMDIST

NORMDIST(x, mean, standard_dev, cumulative)[source]

Calculates the normal distribution probability density (PDF) or cumulative distribution (CDF).

NORMDIST evaluates either the probability density function (PDF) or the cumulative distribution function (CDF) of the normal distribution for the given input(s).

Parameters:
  • x (Operand | int | float) –

    The input value(s) at which to evaluate the distribution.

    Supported types:

    • INTEGER

    • DECIMAL

    • INTEGER_ARRAY

    • DECIMAL_ARRAY

  • mean (Operand | int | float) –

    The arithmetic mean of the distribution.

    Supported types:

    • INTEGER

    • DECIMAL

    • INTEGER_ARRAY

    • DECIMAL_ARRAY

  • standard_dev (Operand | int | float) –

    The standard deviation of the distribution (must be > 0).

    Supported types:

    • INTEGER

    • DECIMAL

    • INTEGER_ARRAY

    • DECIMAL_ARRAY

  • cumulative (Operand | bool) –

    Boolean flag to determine calculation type:

    • False / 0: PDF

    • True / 1: CDF

    Supported types:

    • BOOLEAN

    • BOOLEAN_ARRAY

Return type:

Formula

Returns:

A formula object evaluating to the normal distribution value(s).

  • Returns DECIMAL if all inputs are scalar

  • Returns DECIMAL_ARRAY if any input is an array

Supported types:

  • DECIMAL

  • DECIMAL_ARRAY

Raises:
  • ValueError – If x, mean, or standard_dev are not numeric types

  • ValueError – If cumulative is not boolean-compatible

Examples

Probability density function (PDF):

NORMDIST(1.0, 0.0, 1.0, False)
# Returns the PDF at x=1 for a standard normal distribution

Cumulative distribution function (CDF):

NORMDIST(1.0, 0.0, 1.0, True)
# Returns the CDF at x=1 for a standard normal distribution

Array inputs:

NORMDIST(my_table["value"], 0.0, 1.0, True)
# Returns an array of CDF values for each row