{
  "name": "R Gaussian Distribution Functions and Normality Diagnostics",
  "description": "Technical specifications, mathematical definitions, default arguments, and computational constraints for Gaussian distribution modeling and normality assessment functions in R base stats, MASS, and nortest packages.",
  "page": "https://casrai.org/guides/gaussian-distribution-in-r",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-16T22:05:45Z",
  "temporalCoverage": "2024/2026",
  "spatialCoverage": "Global",
  "columns": [
    {
      "name": "Function Name",
      "unit": "",
      "description": "R function identifier and hosting package"
    },
    {
      "name": "Operation Type",
      "unit": "",
      "description": "Mathematical operation or statistical procedure"
    },
    {
      "name": "Mathematical Target",
      "unit": "",
      "description": "Primary output or theoretical concept evaluated"
    },
    {
      "name": "Default Parameters",
      "unit": "",
      "description": "Default parameter values or function arguments"
    },
    {
      "name": "Core Algorithm",
      "unit": "",
      "description": "Underlying computational algorithm or published reference"
    },
    {
      "name": "Sample Size Limit",
      "unit": "observations",
      "description": "Operational sample size constraints or valid input range"
    }
  ],
  "rows": [
    {
      "Function Name": "dnorm (stats)",
      "Operation Type": "Probability Density Function",
      "Mathematical Target": "f(x) density height",
      "Default Parameters": "mean = 0, sd = 1, log = FALSE",
      "Core Algorithm": "Direct evaluation of Gaussian PDF formula",
      "Sample Size Limit": "Any finite numeric vector"
    },
    {
      "Function Name": "pnorm (stats)",
      "Operation Type": "Cumulative Distribution Function",
      "Mathematical Target": "P(X",
      "Default Parameters": "mean = 0, sd = 1, lower.tail = TRUE, log.p = FALSE",
      "Core Algorithm": "Cody (1993) rational Chebyshev approximation",
      "Sample Size Limit": "Any finite numeric vector"
    },
    {
      "Function Name": "qnorm (stats)",
      "Operation Type": "Quantile Function",
      "Mathematical Target": "x_p such that P(X",
      "Default Parameters": "mean = 0, sd = 1, lower.tail = TRUE, log.p = FALSE",
      "Core Algorithm": "Wichura (1988) AS 241 minimax polynomial",
      "Sample Size Limit": "Probabilities in [0, 1]"
    },
    {
      "Function Name": "rnorm (stats)",
      "Operation Type": "Random Deviate Generation",
      "Mathematical Target": "Pseudo-random normal sample",
      "Default Parameters": "mean = 0, sd = 1",
      "Core Algorithm": "Mersenne-Twister / Inversion or Box-Muller",
      "Sample Size Limit": "n >= 0 integer"
    },
    {
      "Function Name": "shapiro.test (stats)",
      "Operation Type": "Omnibus Normality Test",
      "Mathematical Target": "Shapiro-Wilk W test statistic",
      "Default Parameters": "x (numeric vector)",
      "Core Algorithm": "Royston (1982, 1995) AS R94 approximation",
      "Sample Size Limit": "3 to 5000 non-missing"
    },
    {
      "Function Name": "qqnorm (stats)",
      "Operation Type": "Quantile-Quantile Diagnostic",
      "Mathematical Target": "Empirical vs theoretical quantiles",
      "Default Parameters": "y (numeric vector), ylim, main",
      "Core Algorithm": "Sample quantiles against qnorm percentiles",
      "Sample Size Limit": "n >= 2 non-missing"
    },
    {
      "Function Name": "qqline (stats)",
      "Operation Type": "Q-Q Reference Line",
      "Mathematical Target": "Line through 1st and 3rd quartiles",
      "Default Parameters": "probs = c(0.25, 0.75), qtype = 7",
      "Core Algorithm": "Linear interpolation between quartiles",
      "Sample Size Limit": "n >= 2 non-missing"
    },
    {
      "Function Name": "ks.test (stats)",
      "Operation Type": "Goodness-of-Fit Test",
      "Mathematical Target": "Kolmogorov-Smirnov supremum distance D",
      "Default Parameters": "alternative = 'two.sided', exact = NULL",
      "Core Algorithm": "Empirical vs theoretical CDF comparison",
      "Sample Size Limit": "n >= 1 non-missing"
    },
    {
      "Function Name": "fitdistr (MASS)",
      "Operation Type": "Maximum Likelihood Estimation",
      "Mathematical Target": "Point estimates of mu and sigma",
      "Default Parameters": "densfun = 'normal'",
      "Core Algorithm": "Closed-form analytical MLE with standard errors",
      "Sample Size Limit": "n >= 2 finite values"
    },
    {
      "Function Name": "ad.test (nortest)",
      "Operation Type": "Empirical Distribution Function Test",
      "Mathematical Target": "Anderson-Darling A statistic",
      "Default Parameters": "x (numeric vector)",
      "Core Algorithm": "Stephens (1974) EDF weighted tail statistic",
      "Sample Size Limit": "n >= 8 non-missing"
    },
    {
      "Function Name": "lillie.test (nortest)",
      "Operation Type": "Composite Normality Test",
      "Mathematical Target": "Lilliefors corrected D statistic",
      "Default Parameters": "x (numeric vector)",
      "Core Algorithm": "Dallal and Wilkinson (1986) approximation",
      "Sample Size Limit": "n >= 5 non-missing"
    }
  ],
  "sources": [
    {
      "title": "R Core Team - The Normal Distribution Documentation",
      "url": "https://stat.ethz.ch/R-manual/R-patched/library/stats/html/Normal.html",
      "accessed": "2026-11-14"
    },
    {
      "title": "R Core Team - Shapiro-Wilk Normality Test Documentation",
      "url": "https://stat.ethz.ch/R-manual/R-patched/library/stats/html/shapiro.test.html",
      "accessed": "2026-11-14"
    },
    {
      "title": "R Core Team - Quantile-Quantile Plots Documentation",
      "url": "https://stat.ethz.ch/R-manual/R-patched/library/stats/html/qqnorm.html",
      "accessed": "2026-11-14"
    },
    {
      "title": "Venables and Ripley - MASS fitdistr Documentation",
      "url": "https://stat.ethz.ch/R-manual/R-patched/library/MASS/html/fitdistr.html",
      "accessed": "2026-11-14"
    },
    {
      "title": "Gross and Ligges - nortest: Tests for Normality Documentation",
      "url": "https://cran.r-project.org/web/packages/nortest/index.html",
      "accessed": "2026-11-14"
    }
  ]
}