Median Absolute Deviation (MAD) | Teradata Vantage - Median Absolute Deviation (MAD) - Advanced SQL Engine - Teradata Database

Time Series Tables and Operations

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-22
dita:mapPath
cxa1555383531762.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1208
lifecycle
previous
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:



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

MAD is valid only for numeric data.