{
  "slug": "greenwood-variance",
  "term": "Greenwood variance",
  "aliases": [
    "Greenwood's formula",
    "Greenwood variance estimator"
  ],
  "definition": "Greenwood's formula estimates the sampling variance of a Kaplan-Meier survival estimate from event counts and risk-set sizes.",
  "note": "For ordinary unweighted, independent-unit, right-censored first-event data, the estimate is S_hat(t)^2 times the sum of d_i / (n_i * (n_i - d_i)) over event times through t. Here d_i counts events and n_i counts units at risk just beforehand; the displayed expression requires n_i > d_i. [km-1958]\n\nIts square root is a standard error of estimated survival, not a device lifetime spread. A confidence interval also needs a confidence level and construction: a log-log transformation can keep interior limits within the probability range, but its coverage remains approximate. [sawyer-2003]\n\nThese are pointwise intervals for a fixed time, not simultaneous coverage of a complete survival curve. S_hat equal to zero or one requires explicit boundary handling; undefined limits or a degenerate interval are not evidence of certainty. [sawyer-2003] [scipy-ci]\n\nAn error bar does not correct informative censoring or justify counting repeated telemetry rows as independent devices. Clustered, weighted and repeated-event analyses need a variance method matching their sampling structure; the R survival documentation distinguishes these from the ordinary calculation. [survival-methods]",
  "related": [
    "risk-set",
    "kaplan-meier-estimator",
    "confidence-interval"
  ],
  "citations": [
    {
      "id": "km-1958",
      "title": "Kaplan and Meier (1958): Nonparametric Estimation from Incomplete Observations, sections 1.4 and 2.2, equation (2f)",
      "url": "https://web.stanford.edu/~lutian/coursepdf/KMpaper.pdf",
      "accessed": "2026-11-19"
    },
    {
      "id": "sawyer-2003",
      "title": "Sawyer (2003): The Greenwood and Exponential Greenwood Confidence Intervals in Survival Analysis, equations 1.2-1.3",
      "url": "https://www.math.wustl.edu/~sawyer/handouts/greenwood.pdf",
      "accessed": "2026-11-19"
    },
    {
      "id": "scipy-ci",
      "title": "SciPy 1.16.2: EmpiricalDistributionFunction.confidence_interval, clipping and undefined limits",
      "url": "https://docs.scipy.org/doc/scipy-1.16.2/reference/generated/scipy.stats._result_classes.EmpiricalDistributionFunction.confidence_interval.html",
      "accessed": "2026-11-19"
    },
    {
      "id": "survival-methods",
      "title": "R survival package: Methods, sections 2.2.1-2.2.2, confidence intervals and robust variance",
      "url": "https://stat.ethz.ch/R-manual/R-patched/library/survival/doc/methods.pdf",
      "accessed": "2026-11-19"
    }
  ],
  "status": "shipping",
  "advantages": [],
  "limitations": [],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-19"
}
