{
  "name": "Python Statistical Hypothesis Testing Libraries: Parameter and Capability Matrix",
  "description": "Comparative specifications, function signatures, variance assumptions, and output structures across core Python hypothesis testing functions, compiled from official SciPy and statsmodels documentation.",
  "page": "https://casrai.org/guides/t-test-in-python",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-23T14:16:56Z",
  "temporalCoverage": null,
  "spatialCoverage": null,
  "columns": [
    {
      "name": "Function",
      "unit": "",
      "description": "Full programmatic function name and namespace"
    },
    {
      "name": "Package",
      "unit": "",
      "description": "Primary open-source Python library"
    },
    {
      "name": "Test Type",
      "unit": "",
      "description": "Hypothesis testing category supported"
    },
    {
      "name": "Default Variance",
      "unit": "",
      "description": "Default variance assumption applied"
    },
    {
      "name": "Welch Option",
      "unit": "",
      "description": "Parameter switch to execute Welch unequal variance correction"
    },
    {
      "name": "Output Format",
      "unit": "",
      "description": "Return structure providing statistics and p-values"
    },
    {
      "name": "Built-in CI",
      "unit": "",
      "description": "Native capability to generate confidence intervals"
    }
  ],
  "rows": [
    {
      "Function": "scipy.stats.ttest_ind",
      "Package": "SciPy",
      "Test Type": "Independent 2-Sample",
      "Default Variance": "Equal (Pooled)",
      "Welch Option": "equal_var=False",
      "Output Format": "TtestResult object",
      "Built-in CI": "confidence_interval() method"
    },
    {
      "Function": "scipy.stats.ttest_1samp",
      "Package": "SciPy",
      "Test Type": "Single Sample",
      "Default Variance": "Not applicable",
      "Welch Option": "Not applicable",
      "Output Format": "TtestResult object",
      "Built-in CI": "confidence_interval() method"
    },
    {
      "Function": "scipy.stats.ttest_rel",
      "Package": "SciPy",
      "Test Type": "Paired 2-Sample",
      "Default Variance": "Not applicable",
      "Welch Option": "Not applicable",
      "Output Format": "TtestResult object",
      "Built-in CI": "confidence_interval() method"
    },
    {
      "Function": "statsmodels.stats.weightstats.ttest_ind",
      "Package": "statsmodels",
      "Test Type": "Independent 2-Sample",
      "Default Variance": "Pooled (usevar='pooled')",
      "Welch Option": "usevar='unequal'",
      "Output Format": "Tuple (tstat, pvalue, df)",
      "Built-in CI": "Via CompareMeans summary"
    },
    {
      "Function": "statsmodels.stats.weightstats.DescrStatsW.ttest_mean",
      "Package": "statsmodels",
      "Test Type": "Single Sample",
      "Default Variance": "Sample variance",
      "Welch Option": "Not applicable",
      "Output Format": "Tuple (tstat, pvalue, df)",
      "Built-in CI": "tconfint_mean() method"
    }
  ],
  "sources": [
    {
      "title": "SciPy: ttest_ind — SciPy v1.18.0 Manual",
      "url": "https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.ttest_ind.html",
      "accessed": "2026-11-23"
    },
    {
      "title": "SciPy: ttest_1samp — SciPy v1.18.0 Manual",
      "url": "https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.ttest_1samp.html",
      "accessed": "2026-11-23"
    },
    {
      "title": "SciPy: ttest_rel — SciPy v1.18.0 Manual",
      "url": "https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.ttest_rel.html",
      "accessed": "2026-11-23"
    },
    {
      "title": "statsmodels: statsmodels.stats.weightstats.ttest_ind — statsmodels 0.15.0",
      "url": "https://www.statsmodels.org/stable/generated/statsmodels.stats.weightstats.ttest_ind.html",
      "accessed": "2026-11-23"
    }
  ]
}