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.mean (
Operand|int|float) – The arithmetic mean of the distribution.standard_dev (
Operand|int|float) – The standard deviation of the distribution (must be > 0).cumulative (
Operand|bool) –Boolean flag to determine calculation type:
False / 0: PDF
True / 1: CDF
- Return type:
- 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
- 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
``x`` — accepted types
DECIMAL
DECIMAL_ARRAY
INTEGER
INTEGER_ARRAY
``arg_2`` — accepted types
DECIMAL
DECIMAL_ARRAY
INTEGER
INTEGER_ARRAY
``arg_3`` — accepted types
DECIMAL
DECIMAL_ARRAY
INTEGER
INTEGER_ARRAY
``cumulative`` — accepted types
BOOLEAN
BOOLEAN_ARRAY
DECIMAL
DECIMAL_ARRAY
INTEGER
INTEGER_ARRAY
Return types
DECIMAL
DECIMAL_ARRAY