{
  "name": "Benchmark of Conditional Standard Deviation Implementations Across Computing Environments",
  "description": "Comparative specifications of conditional dispersion formulas, array evaluation mechanics, degrees of freedom handling, and minimum observation limits across Excel versions and open-source statistical environments.",
  "page": "https://casrai.org/guides/excel-stdev-if",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-16T22:07:10Z",
  "temporalCoverage": null,
  "spatialCoverage": null,
  "columns": [
    {
      "name": "Environment / Platform",
      "unit": "",
      "description": "Software environment and calculation engine version"
    },
    {
      "name": "Method Architecture",
      "unit": "",
      "description": "Dynamic array, legacy array CSE formula, or programmatic subsetting"
    },
    {
      "name": "Single-Condition Syntax",
      "unit": "",
      "description": "Standard formula or command expression for single criterion filtering"
    },
    {
      "name": "Multi-Condition Logic",
      "unit": "",
      "description": "Syntax operator for multiple AND / OR condition evaluation"
    },
    {
      "name": "Degrees of Freedom Basis",
      "unit": "",
      "description": "Denominator divisor: n - 1 (sample) versus N (population)"
    },
    {
      "name": "Empty Condition Output",
      "unit": "",
      "description": "Returned error or value when zero records satisfy criteria"
    },
    {
      "name": "Minimum Sample Size",
      "unit": "records",
      "description": "Minimum non-null matching records required to avoid division-by-zero errors"
    }
  ],
  "rows": [
    {
      "Environment / Platform": "Microsoft Excel 365 / 2021+",
      "Method Architecture": "Dynamic Array Function",
      "Single-Condition Syntax": "=STDEV.S(FILTER(data, condition))",
      "Multi-Condition Logic": "Boolean algebra: (c1)*(c2) for AND, (c1)+(c2) for OR",
      "Degrees of Freedom Basis": "n - 1 (Sample Bessel correction)",
      "Empty Condition Output": "#CALC! error (or user fallback if specified)",
      "Minimum Sample Size": 2
    },
    {
      "Environment / Platform": "Microsoft Excel 2010–2019",
      "Method Architecture": "Legacy CSE Array Formula",
      "Single-Condition Syntax": "{=STDEV.S(IF(condition, data))}",
      "Multi-Condition Logic": "Nested IF statements or boolean product (c1)*(c2)",
      "Degrees of Freedom Basis": "n - 1 (Sample Bessel correction)",
      "Empty Condition Output": "#DIV/0! error",
      "Minimum Sample Size": 2
    },
    {
      "Environment / Platform": "Microsoft Excel (Population)",
      "Method Architecture": "Dynamic Array Function",
      "Single-Condition Syntax": "=STDEV.P(FILTER(data, condition))",
      "Multi-Condition Logic": "Boolean algebra: (c1)*(c2) for AND, (c1)+(c2) for OR",
      "Degrees of Freedom Basis": "N (Full population variance)",
      "Empty Condition Output": "#CALC! error (or user fallback if specified)",
      "Minimum Sample Size": 1
    },
    {
      "Environment / Platform": "LibreOffice Calc (ODF)",
      "Method Architecture": "Legacy CSE Array Formula",
      "Single-Condition Syntax": "{=STDEV(IF(condition; data))}",
      "Multi-Condition Logic": "Nested IF statements or boolean product (c1)*(c2)",
      "Degrees of Freedom Basis": "n - 1 (Sample Bessel correction)",
      "Empty Condition Output": "#VALUE! or Err:502",
      "Minimum Sample Size": 2
    },
    {
      "Environment / Platform": "GNU R (stats package)",
      "Method Architecture": "Vector Subsetting / dplyr",
      "Single-Condition Syntax": "sd(data[condition], na.rm = TRUE)",
      "Multi-Condition Logic": "Vectorized boolean operators: & for AND, | for OR",
      "Degrees of Freedom Basis": "n - 1 (Sample Bessel correction)",
      "Empty Condition Output": "NA (returns NA with warning on empty set)",
      "Minimum Sample Size": 2
    },
    {
      "Environment / Platform": "Python (pandas / SciPy)",
      "Method Architecture": "DataFrame Grouping / Masking",
      "Single-Condition Syntax": "df.loc[df['arm'] == 'A', 'val'].std(ddof=1)",
      "Multi-Condition Logic": "Bitwise boolean operators: & for AND, | for OR",
      "Degrees of Freedom Basis": "n - 1 (ddof=1 default in pandas)",
      "Empty Condition Output": "NaN",
      "Minimum Sample Size": 2
    },
    {
      "Environment / Platform": "Google Sheets",
      "Method Architecture": "Dynamic Array Function",
      "Single-Condition Syntax": "=STDEV(FILTER(data, condition))",
      "Multi-Condition Logic": "FILTER with multiple condition arguments",
      "Degrees of Freedom Basis": "n - 1 (Sample Bessel correction)",
      "Empty Condition Output": "#N/A (No matches)",
      "Minimum Sample Size": 2
    }
  ],
  "sources": [
    {
      "title": "Microsoft Support: STDEV.S function",
      "url": "https://support.microsoft.com/en-us/excel/functions/stdev-s-function",
      "accessed": "2026-11-13"
    },
    {
      "title": "Microsoft Support: FILTER function",
      "url": "https://support.microsoft.com/en-us/office/filter-function-f4f7cb66-82eb-4767-8f7c-4877ad80c759",
      "accessed": "2026-11-13"
    },
    {
      "title": "Microsoft Support: Guidelines and examples of array formulas",
      "url": "https://support.microsoft.com/en-us/office/guidelines-and-examples-of-array-formulas-7d94a64e-3ff3-4686-9372-ecfd5caa57c7",
      "accessed": "2026-11-13"
    },
    {
      "title": "NIST/SEMATECH e-Handbook of Statistical Methods: Measures of Dispersion",
      "url": "https://www.itl.nist.gov/div898/handbook/eda/section3/eda356.htm",
      "accessed": "2026-11-13"
    },
    {
      "title": "LibreOffice Calc Statistical Functions Documentation",
      "url": "https://help.libreoffice.org/latest/en-US/text/scalc/01/04060182.html",
      "accessed": "2026-11-13"
    },
    {
      "title": "R Core Team: stats::sd Documentation",
      "url": "https://stat.ethz.ch/R-manual/R-devel/library/stats/html/sd.html",
      "accessed": "2026-11-13"
    }
  ]
}