stdevp() (aggregation function)

Learn how to use the stdevp() aggregation function to calculate the standard deviation of an expression.

Calculates the standard deviation of expr across the group, considering the group as a population for a large dataset that is representative of the population.

For a small dataset that is a sample, use stdev() (aggregation function).

Formula

This function uses the following formula.

Image showing a Stdev sample formula.

Syntax

stdevp(expr)

Parameters

NameTypeRequiredDescription
exprstring✔️The expression used for the standards deviation aggregation calculation.

Returns

Returns the standard deviation value of expr across the group.

Example

range x from 1 to 5 step 1
| summarize make_list(x), stdevp(x)

Output

list_xstdevp_x
[ 1, 2, 3, 4, 5]1.4142135623731