Join our Newsletter — 33% off our NHI Course
Home› Glossary› Cyber Security› Median Absolute Deviation
Cyber Security

Median Absolute Deviation

← Back to Glossary
By NHI Mgmt Group Updated October 31, 2026 Domain: Cyber Security

Median absolute deviation, or MAD, is a robust measure of spread that resists outliers better than a standard deviation based on the mean. In detection pipelines, it helps keep a few extreme events from defining normal, which is useful when telemetry contains noise or early compromise signals.

What Median Absolute Deviation Measures

Median absolute deviation, or MAD, is a robust spread statistic that measures how far observations typically sit from the median rather than from the mean. That distinction matters when a dataset contains spikes, heavy tails, or early anomaly signals, because MAD is much less likely to be distorted by a few extreme values.

In practical terms, MAD is often used when teams want a centre-and-spread view that still behaves sensibly under noisy telemetry. It gives a compact description of dispersion without letting a small number of unusual events redefine what “normal” looks like.

Why MAD Is More Robust Than Standard Deviation

Standard deviation is efficient when data are roughly symmetric and well-behaved, but it is sensitive to outliers because it uses the mean as its reference point. MAD uses the median, then measures absolute distances from that median, so a single extreme reading has limited influence on the result.

That robustness makes MAD especially useful in security monitoring, fraud screening, and operational telemetry, where rare but legitimate spikes can coexist with true anomalies. It helps preserve the baseline even when the data stream is messy, incomplete, or intermittently attacked.

For teams comparing alerting methods, MAD is often preferred when stability matters more than fine-grained efficiency. It is not a replacement for every spread metric, but it is frequently a better default when outliers are expected rather than exceptional.

How MAD Is Used in Detection Pipelines

MAD is commonly used to build dynamic thresholds, score anomalies, or normalise signals before feeding them into detection logic. Because the calculation is anchored on the median, it is useful for metrics that do not follow a neat bell curve, such as event counts, authentication failures, endpoint activity, or bursty network traffic.

A common pattern is to treat values far from the median as suspicious while allowing the threshold itself to remain resilient to noise. That makes MAD well suited to early compromise detection, where a handful of hostile events should not overwhelm the baseline or push the threshold so high that obvious anomalies disappear.

It is also helpful when comparing multiple hosts, users, or services that do not behave identically. MAD can keep the analysis focused on relative deviation from each entity’s own typical behaviour, rather than forcing one global average across very different populations.

Interpreting MAD Correctly

MAD is best understood as a measure of typical absolute deviation, not as a direct probability of abnormality. A larger MAD means the data are more dispersed around the median, while a smaller MAD means the values cluster more tightly.

Because it is scale-sensitive, MAD is most useful when interpreted alongside the raw metric, the median, and the context of the workload or dataset. In practice, the number only becomes meaningful when paired with an understanding of what a normal range looks like for that source.

Teams should also remember that MAD highlights spread, not causation. A widening MAD can reflect benign seasonality, a configuration change, or an unfolding incident, so the statistic is a signal to investigate rather than a conclusion on its own.

Risk and Threat Considerations

When MAD is used in detection logic, its main risk is miscalibration, either from using an unsuitable scale factor or from applying it to data that are too sparse, too discrete, or too context-dependent. If the threshold is poorly tuned, noisy events can be over-filtered or true anomalies can blend into the baseline.

Failure mechanism: Adversarial or unusual activity can exploit a detector that assumes the baseline is stable when the underlying data are already volatile, causing weak sensitivity or excessive alert suppression.

Impact: Security teams may miss early compromise signals, delay investigation, or create alert fatigue by treating ordinary variation as exceptional, which reduces trust in the detection pipeline.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST CSF 2.0, NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST CSF 2.0DE.CM-01 — Monitoring for Anomalies and EventsMAD supports resilient anomaly monitoring on noisy telemetry.
ID.AM-05 — Assets are Prioritised by Classification, Criticality, and Business ValueMAD is applied to telemetry across monitored assets and signals that need context-aware prioritisation.
Recommendation — Use MAD-based baselines to improve anomaly monitoring on noisy event streams. Apply MAD thresholds to the telemetry of prioritized assets where baseline stability matters.
NIST SP 800-53 Rev 5AU-6 — Audit Record Review, Analysis, and ReportingMAD helps analyse audit and telemetry data for unusual deviations.
Recommendation — Use robust statistical baselines like MAD to focus audit review on meaningful deviations.
CIS Controls v8CIS-8 — Audit Log ManagementMAD can improve log-analysis thresholds by resisting outlier distortion in log streams.
Recommendation — Use MAD-driven thresholds to improve detection quality in log management workflows.

Practitioner Guidance

Why practitioners should care: MAD is most valuable when the goal is resilient anomaly detection rather than mathematically perfect modelling. It is a strong fit for operational telemetry, but only when the team understands the data shape and the metric’s role in the pipeline.

What to watch for: Use MAD carefully when the dataset is tiny, heavily seasonal, or dominated by repeated identical values, because those conditions can make robust spread estimates less informative. In those cases, the surrounding context matters as much as the statistic itself.

Practitioner takeaway: Treat MAD as a baseline stability tool, not a standalone verdict on abnormality, and validate it against the specific signal you are trying to detect.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 31, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org