{
  "name": "Mean and median absolute deviation functions: defaults in Excel, R, SciPy, pandas and NIST Dataplot",
  "description": "Compares how documented functions in common statistics tools define centre, averaging step and scaling for absolute-deviation statistics, compiled from the official documentation of each tool read on 2026-11-17.",
  "page": "https://casrai.org/guides/mean-absolute-deviation",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-17T18:39:46Z",
  "temporalCoverage": "2026",
  "spatialCoverage": null,
  "columns": [
    {
      "name": "Tool and function",
      "unit": "",
      "description": ""
    },
    {
      "name": "Statistic computed",
      "unit": "",
      "description": ""
    },
    {
      "name": "Centre used",
      "unit": "",
      "description": ""
    },
    {
      "name": "Default scale or constant",
      "unit": "",
      "description": "Multiplier or divisor applied by default"
    },
    {
      "name": "Missing-value handling",
      "unit": "",
      "description": ""
    },
    {
      "name": "Maximum direct arguments",
      "unit": "count",
      "description": ""
    }
  ],
  "rows": [
    {
      "Tool and function": "Microsoft Excel AVEDEV",
      "Statistic computed": "Mean absolute deviation",
      "Centre used": "Mean of the data",
      "Default scale or constant": "None (unscaled)",
      "Missing-value handling": "Text, logical values and empty cells in arrays/references are ignored; zeros included",
      "Maximum direct arguments": 255
    },
    {
      "Tool and function": "R stats::mad",
      "Statistic computed": "Median absolute deviation",
      "Centre used": "Median (centre argument, default median(x))",
      "Default scale or constant": "1.4826 multiplier (constant)",
      "Missing-value handling": "NA in x gives NA unless na.rm = TRUE",
      "Maximum direct arguments": "n/a"
    },
    {
      "Tool and function": "SciPy stats.median_abs_deviation",
      "Statistic computed": "Median absolute deviation",
      "Centre used": "Median (center=None); a different centre can be passed",
      "Default scale or constant": "Divides by scale = 1.0; scale='normal' divides by about 0.67449",
      "Missing-value handling": "nan_policy: propagate (default), omit or raise",
      "Maximum direct arguments": "n/a"
    },
    {
      "Tool and function": "pandas Series.mad / DataFrame.mad",
      "Statistic computed": "Mean absolute deviation",
      "Centre used": "Mean",
      "Default scale or constant": "n/a",
      "Missing-value handling": "Removed in pandas 2.0.0 (deprecated method mad removed)",
      "Maximum direct arguments": "n/a"
    },
    {
      "Tool and function": "NIST Dataplot AVERAGE ABSOLUTE DEVIATION",
      "Statistic computed": "Average (mean) absolute deviation",
      "Centre used": "Mean (corrected from median in the 2014/07 version)",
      "Default scale or constant": "None",
      "Missing-value handling": "n/a",
      "Maximum direct arguments": "n/a"
    },
    {
      "Tool and function": "NIST Dataplot MEDIAN ABSOLUTE DEVIATION",
      "Statistic computed": "Median absolute deviation",
      "Centre used": "Median",
      "Default scale or constant": "n/a",
      "Missing-value handling": "n/a",
      "Maximum direct arguments": "n/a"
    }
  ],
  "sources": [
    {
      "title": "AVEDEV function - Microsoft Support",
      "url": "https://support.microsoft.com/en-us/office/avedev-function-58fe8d65-2a84-4dc7-8052-f3f87b5c6639",
      "accessed": "2026-11-17"
    },
    {
      "title": "R mad: Median Absolute Deviation",
      "url": "https://stat.ethz.ch/R-manual/R-devel/library/stats/html/mad.html",
      "accessed": "2026-11-17"
    },
    {
      "title": "scipy.stats.median_abs_deviation",
      "url": "https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.median_abs_deviation.html",
      "accessed": "2026-11-17"
    },
    {
      "title": "pandas 2.0.0 release notes",
      "url": "https://pandas.pydata.org/docs/whatsnew/v2.0.0.html",
      "accessed": "2026-11-17"
    },
    {
      "title": "NIST Dataplot AVERAGE ABSOLUTE DEVIATION",
      "url": "https://www.itl.nist.gov/div898/software/dataplot/refman2/auxillar/aad.htm",
      "accessed": "2026-11-17"
    }
  ]
}