--- id: stddev title: stddev Metrics Operator sidebar_label: stddev description: Use the stddev metrics operator to measure the magnitude of deviations between values in time series, calculating standard deviation at each time interval. slug: /help/docs/metrics/metrics-operators/stddev/ canonical: https://www.sumologic.com/help/docs/metrics/metrics-operators/stddev/ --- The `stddev` operator measures of the magnitude of deviations between the values in a time series. Often used in financial applications, calculating standard deviations also has value in analyzing system behaviors. Measuring the standard deviation of a system metric is useful in performance analysis, transaction monitoring, and identifying or removing outliers. A low deviation value indicates that the data points tend to be very close to the mean, whereas a high deviation value indicates that the data are spread out over a large range of values. A low standard deviation implies that there is a more stable, or consistent, performance within the system. `stddev` calculates the standard deviation at each time interval across all the time series, resulting in one time series that contains the standard deviation per time slot. If you group the results by a dimension, the standard deviation for the time series in each group is calculated. The result is returned as a metric named _stddev_. ## Syntax ```sql stddev [by FIELD [, FIELD, ...]] ``` `stddev` isn’t supported in queries that use the `quantize` operator. ## Examples **Example 1** This query returns the standard deviation of the `CPU_Sys` metric from the _prod_ deployment. ```sql dep=prod metric=CPU_Sys | stddev ``` **Example 2** This query returns the standard deviation of the `CPU_Sys` metric from the _prod_ deployment, grouped by the source that collected the metrics. ```sql dep=prod metric=CPU_Sys | stddev by _source ```