User Rating 0.0
Total Usage 0 times
Separate values with commas, spaces, or new lines Accepted: integers, decimals, negative numbers
Is this tool helpful?

Your feedback helps us improve.

About

Average deviation quantifies how far data points scatter from the arithmetic mean . Formally termed Mean Absolute Deviation (MAD), it computes the average of all absolute deviations |xi | across n observations. Unlike variance, MAD uses absolute values instead of squares, making it more robust against outliers and easier to interpret in the original units. A MAD of 0 indicates all values are identical. Misreporting dispersion can distort quality control limits, risk assessments, and tolerance intervals. This tool assumes a finite population. For samples, the denominator remains n (not n 1) per the standard MAD definition.

The calculator also reports the median absolute deviation, standard deviation σ, variance σ2, and range for cross-comparison. For normally distributed data, MAD 0.7979 σ. Significant divergence from this ratio signals skewness or heavy tails. Note: for datasets exceeding 105 values, precision loss from floating-point arithmetic may appear at the 15th significant digit.

average deviation mean absolute deviation MAD calculator statistics calculator deviation from mean data analysis descriptive statistics

Formulas

The primary computation proceeds in three stages. First, compute the arithmetic mean of the dataset:

x = 1n ni=1 xi

Next, compute each individual absolute deviation from the mean:

di = |xi x|

Finally, the Mean Absolute Deviation (MAD) is the arithmetic mean of all individual deviations:

MAD = 1n ni=1 |xi x|

Where xi = each data point, x = arithmetic mean of the dataset, n = total number of observations, di = absolute deviation of the i-th value from the mean, and MAD = mean absolute deviation (average deviation).

For comparison, the population standard deviation uses squared deviations:

σ = 1n ni=1 (xi x)2

Reference Data

MeasureFormulaSensitive to OutliersUnitsUse Case
Mean Absolute Deviation (MAD)1n ni=1 |xi x|LowSame as dataQuality control, robust dispersion
Median Absolute Deviationmedian(|xi median(x)|)Very LowSame as dataOutlier detection, robust statistics
Variance (σ2)1n ni=1 (xi x)2HighSquared unitsParametric tests, ANOVA
Standard Deviation (σ)σ2HighSame as dataNormal distribution analysis, confidence intervals
Rangexmax xminExtremeSame as dataQuick spread estimate
Interquartile Range (IQR)Q3 Q1LowSame as dataBox plots, outlier fences
Coefficient of Variationσx × 100%HighDimensionlessComparing variability across different scales
Mean Squared Error1n ni=1 (xi x)2HighSquared unitsRegression, prediction error
Root Mean Square (RMS)1n ni=1 xi2HighSame as dataSignal processing, AC voltage
Geometric Mean Deviationexp(1n ni=1 ln|xi x|)ModerateSame as dataLog-normal distributions
MAD / σ Ratio (Normal) 0.7979N/ADimensionlessNormality diagnostic
Sample Std Dev (s)1n 1 ni=1 (xi x)2HighSame as dataBessel-corrected estimate for samples

Frequently Asked Questions

Average deviation (MAD) uses absolute values |xi x|, while standard deviation uses squared differences (xi x)2. Squaring amplifies outliers, making standard deviation more sensitive to extreme values. For a perfectly normal distribution, MAD 0.7979 σ. If your data contains outliers or is not normally distributed, MAD provides a more stable measure of spread.
The standard definition of Mean Absolute Deviation divides by n (population). Unlike variance, there is no universally adopted Bessel correction for MAD because the absolute value function is not differentiable at zero and the correction factor depends on the underlying distribution. This calculator uses n as the divisor. If you need a sample-corrected estimate, multiply the result by nn 1 manually.
Consider the dataset {1, 2, 3, 4, 100}. The mean is 22. The absolute deviation of 100 is 78, contributing linearly. The squared deviation is 6084, contributing quadratically to variance. This is why MAD is preferred in robust statistics: a single outlier inflates variance by orders of magnitude but affects MAD proportionally.
No. MAD equals 0 only when every data point equals the mean, meaning all values are identical. If any value differs from the mean, its absolute deviation is strictly positive, producing a non-zero MAD. This makes MAD a faithful indicator: MAD = 0 xi = x for all i.
Both are absolute-deviation-based measures, but they use different central points. MAD (Mean Absolute Deviation) measures deviations from the arithmetic mean. Median Absolute Deviation measures deviations from the median, then takes the median of those deviations. The median variant has a breakdown point of 50%, meaning up to half the data can be corrupted before the statistic becomes unreliable. MAD from the mean has a breakdown point of 0% because the mean itself is sensitive to outliers.
Use MAD when: (1) your data contains outliers or is heavy-tailed (financial returns, sensor noise), (2) you need interpretability in original units without squaring, (3) the distribution is non-Gaussian (uniform, exponential, multimodal). Use standard deviation when working within frameworks that assume normality (confidence intervals, hypothesis testing, ANOVA) or when mathematical convenience of squared differences is needed (e.g., decomposition of variance in regression).