Median Absolute Deviation (MAD) | Teradata Vantage - Median Absolute Deviation (MAD) - Analytics Database - Teradata Vantage

Time Series Tables and Operations

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2023-10-30
dita:mapPath
tuc1628112453431.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
sfz1493079039055
lifecycle
latest
Product Category
Teradata Vantageā„¢

Returns the median of the set of values defined as the absolute value of the difference between each value and the median of all values in each group.

MAD is a single-threaded function.

To invoke this function, use the GROUP BY TIME clause. For more information, see GROUP BY TIME Clause.

Return Value

This function returns the REAL data type.

Nulls are not included in the result computation.

Usage Notes

The formula for computing MAD:


Formula for computing MAD

If the constant_multiplier is not provided, it uses 1.4826 as the default.

MAD is valid only for numeric data.