Excerpt |
---|
Computes the standard deviation across column values of Integer or Decimal type using the sample statistical method. |
The standard deviation of a set of values attempts to measure the spread in values around the mean and is used to measure confidence in statistical results. A standard deviation of zero means that all values are the same, and a small standard deviation means that the values are closely bunched together. A high value for standard deviation indicates that the numbers are spread out widely. Standard deviation is always a positive value.
Info |
---|
NOTE: This function applies to a sample of the entire population. More information is below. |
If a row contains a missing or null value, it is not factored into the calculation. If no numeric values are detected in the input column, the function returns 0
.
The square of standard deviation is variance. See VAR Function.
For a version of this function computed over a rolling window of rows, see ROLLINGSTDEV Function.
D lang syntax |
---|
RawWrangle | true |
---|
Type | ref |
---|
showNote | true |
---|
WrangleText | pivot value:stdev(myRating) group: postal_code limit:1 |
---|
|
stdevsamp(myRating) |
Output: Returns the standard deviation of the values from the myRating
column using the sample method of calculation.
D lang syntax |
---|
RawWrangle | true |
---|
Type | syntax |
---|
showNote | true |
---|
WrangleText | pivot value:stdev(function_col_ref) [group:group_col_ref] [limit:limit_count] |
---|
|
stdevsamp(col_ref) [group:group_col_ref] [limit:limit_count] |
Argument | Required? | Data Type | Description |
---|
function_col_ref | Y | string | Name of column to which to apply the function |
For more information on the group
and limit
parameters, see Pivot Transform.
col_ref
Name of the column whose values you wish to use in the calculation. Column must be a numeric (Integer or Decimal) type.
- Literal values are not supported as inputs.
- Multiple columns and wildcards are not supported.
Required? | Data Type | Example Value |
---|
Yes | String (column reference) | myValues |
Include Page |
---|
| EXAMPLE - Statistical Functions Sample Method |
---|
| EXAMPLE - Statistical Functions Sample Method |
---|
|