MedianDeviation

MedianDeviation[data]

gives the median absolute deviation from the median of the elements in data.

Details

Examples

open allclose all

Basic Examples  (3)

MedianDeviation of a list:

MedianDeviation of columns of a matrix:

MedianDeviation of a list of dates:

Scope  (18)

Basic Uses  (6)

Exact input yields exact output:

Approximate input yields approximate output:

Find the median deviation of WeightedData:

Find the median deviation of EventData:

Find the median deviation of TimeSeries:

The median deviation depends only on the values:

Find the median deviation of data involving quantities:

Array Data  (5)

MedianDeviation for a matrix works columnwise:

MedianDeviation for a tensor gives the columnwise median deviation at the first level:

Works with large arrays:

When the input is an Association, median deviation works on its values:

SparseArray data can be used just like dense arrays:

Find the median deviation of a QuantityArray:

Image and Audio Data  (2)

Channelwise median deviation value of an RGB image:

Median deviation value of a grayscale image:

On audio objects, MedianDeviation works channelwise:

Date and Time  (5)

Compute median deviation of dates:

Compute the weighted median deviation of dates:

Compute the median deviation of dates given in different calendars:

Compute the median deviation of times:

Compute the median deviation of times with different time zone specifications:

Applications  (4)

Obtain a robust estimate of dispersion when extreme values are present:

Measures based on the Mean are heavily influenced by extreme values:

Identify periods of high volatility in stock data using a five-year moving median deviation:

Compute median deviations for slices of a collection of paths of a random process:

Choose a few slice times:

Plot median deviations over these paths:

Find the median deviation of the heights for the children in a class:

Plot the median deviation respective of the median:

Properties & Relations  (2)

MedianDeviation is the Median of absolute deviations from the Median:

For large uniform datasets, MedianDeviation and MeanDeviation are nearly the same:

Possible Issues  (1)

MedianDeviation requires real numeric values:

Neat Examples  (1)

Ratio of MedianDeviation to MeanDeviation for increasing sample size:

Wolfram Research (2007), MedianDeviation, Wolfram Language function, https://reference.wolfram.com/language/ref/MedianDeviation.html (updated 2024).

Text

Wolfram Research (2007), MedianDeviation, Wolfram Language function, https://reference.wolfram.com/language/ref/MedianDeviation.html (updated 2024).

CMS

Wolfram Language. 2007. "MedianDeviation." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2024. https://reference.wolfram.com/language/ref/MedianDeviation.html.

APA

Wolfram Language. (2007). MedianDeviation. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/MedianDeviation.html

BibTeX

@misc{reference.wolfram_2024_mediandeviation, author="Wolfram Research", title="{MedianDeviation}", year="2024", howpublished="\url{https://reference.wolfram.com/language/ref/MedianDeviation.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_mediandeviation, organization={Wolfram Research}, title={MedianDeviation}, year={2024}, url={https://reference.wolfram.com/language/ref/MedianDeviation.html}, note=[Accessed: 22-November-2024 ]}