Delta-method variance of a smooth function of one estimate

Multiplies the variance of the estimated input by the square of the function's slope at the estimate, because near that point the function behaves like its tangent line. The standard error is the square root, so it equals the absolute slope times the standard error of the input. The slope is worked out for the function in hand and entered as a number. A Wald interval follows from HE-FM-AN-001 with SE_g as its standard error. The approximation describes spread only and leaves the point estimate g(X) unchanged.

Signature

Var_g = d_g^2 * Var_X; SE_g = sqrt(Var_g)
Inputs
InputsDefinitionUnit
d_gFirst derivative of the function g with respect to its input, evaluated at the point estimate; any real numberoutput unit per input unit
Var_XSampling variance of the estimate X, zero or above; the variance of the estimator and not of individual patientsinput unit squared
Output
Var_gApproximate sampling variance of g(X)output unit squared
SE_gApproximate standard error of g(X), the square root of Var_goutput unit

Function

First-order delta method variance of a function of estimated parameters

Takes a differentiable function g, its estimated inputs and their variances and covariances, and returns an approximate sampling variance and standard error for the output, by replacing g with its tangent at the estimates. Its result feeds the Wald interval of HE-FM-AN-001. The live ICER case is HE-FM-AN-002, with its Fieller alternative HE-FM-AN-003 and all three intervals in HE-CF-AN-001; net benefit, which is linear, is HE-FM-AN-004; the log risk ratio variance of one trial is HE-FM-PWMA-001, which equals the delta-method form Zepeda-Tello and colleagues derive (eq. 30, equal on a 144-point grid, derived); the variance of Hedges' g in HE-FM-HEDG-002 takes the same form with its correction factor J as a constant slope (derived). Those records fix the function, and this package holds the general rule with the slope or gradient as an input, plus one survival use. The second-order approximation to the mean of g is HE-FM-EV-002. Notation follows the Delta Method article.

Try this function

Implementations

  • Excel

    One-input delta-method variance and standard error from named cells

    With the slope in a cell named SlopeAtEstimate and the input variance in VarInput, the first formula goes in a cell named VarOutput and the second in SeOutput. A blank SlopeAtEstimate is treated as 0 and returns a variance of 0, which would read as no uncertainty, and text in either input returns #VALUE!.

    =SlopeAtEstimate^2*VarInput; =SQRT(VarOutput)

Assumptions

  • Function differentiable at the estimate for the one-input rule

    The derivative of g exists at the estimate. Zepeda-Tello and colleagues state that the method will not work for non-differentiable functions such as indicators, maximums and absolute values. A maximum of two net benefits has no derivative where the two options tie (derived).

  • Estimate close enough to its mean for the tangent line to hold

    Feiveson states that the approximation is good only if X has a high probability of being close enough to its mean for the Taylor approximation still to be good. The derivative is written at the mean and is evaluated at the point estimate in practice. A large standard error relative to the estimate, or strong curvature in g, weakens the result.

  • Asymptotically normal input for a Wald interval on the transformed scale

    An interval built from SE_g relies on the input being asymptotically normal in large samples, in which case a smooth function of it is too, as Zepeda-Tello and colleagues set out. The variance formula itself does not need normality, but the 1.96 multiplier of HE-FM-AN-001 does (derived).

Worked examples

  • Mean survival as the reciprocal of a hazard in the one-input delta method

    From the article, with illustrative inputs, a hazard of 0.25 per year has a variance of 0.000625. Mean survival is its reciprocal, whose slope at 0.25 is minus 1 over 0.25 squared, or -16. The squared slope times the variance is 0.16 and the standard error is 0.4 years, and the negative sign of the slope drops out.

    d_g = -16; Var_X = 0.000625; Var_g = 0.16; SE_g = 0.4
  • One-year probability converted from a hazard in the one-input delta method

    From the article, with illustrative inputs, the probability of HE-FM-TP-001 at a hazard of 0.25 and one year has slope exp(-0.25), which is 0.7788. With the same hazard variance the standard error of the probability is 0.0195, against a probability of 0.2212.

    d_g = 0.7788; Var_X = 0.000625; Var_g = 0.000379; SE_g = 0.0195
  • Log of an estimate in the one-input delta method

    From the article, with illustrative inputs, log mean survival at a mean of 4 years has slope 1 over 4, or 0.25. With the variance of 0.16 for mean survival the standard error on the log scale is 0.1, so a log-scale standard error is the relative standard error of the estimate (derived).

    d_g = 0.25; Var_X = 0.16; Var_g = 0.01; SE_g = 0.1
  • Linear function as the limiting case of the one-input delta method

    For a straight line with slope 2 the tangent is the function itself, so the rule returns the exact variance 4 times Var_X (derived). With an illustrative input variance of 9 the variance is 36 and the standard error 6. The case checks an implementation.

    d_g = 2; Var_X = 9; Var_g = 36; SE_g = 6

Common errors

  • Multiplying the variance by the unsquared slope or the standard error by the squared slope

    The two scales must match, squared slope with variance or absolute slope with standard error. In the mean survival example the squared slope of 256 times the standard error of 0.025 gives 6.4, which read as a standard error is 16 times the correct 0.4 years (derived).

  • Applying the first-order rule to a non-differentiable decision quantity

    Zepeda-Tello and colleagues list indicators, maximums and absolute values as functions for which the method will not work. The expected net benefit of the best option is a maximum, so a delta-method standard error for it fails at the threshold where two options tie, the point at which the decision changes (derived).

  • Reading a zero slope as zero uncertainty

    When d_g is 0 the rule returns a variance of 0 whatever the input variance. Zepeda-Tello and colleagues show a differentiable attributable fraction whose derivative at zero is zero, and call the first-order approximation terrible near that point. A zero or very small slope calls for simulation or a higher-order check.

  • Expecting the delta method to correct the point estimate

    The rule gives a variance and leaves g at the estimate unchanged. In the article's example mean survival stays 4 years, while the second-order form HE-FM-EV-002 gives about 4.04 with its second derivative of 128 and variance of 0.000625, and 200,000 normal draws of the hazard (seed 1, Python) averaged about 4.04 (derived, checked here).

Sources

  • Feiveson on the one-step Taylor approximation behind the delta method

    Feiveson AH. Explanation of the delta method. Stata FAQ. College Station, TX: StataCorp; December 1999, minor revisions May 2005, updated June 2017. The FAQ expands a function of a random variable about its mean with a one-step Taylor approximation and prints Var(G(X)) = Var(X)*[G'(mu)]2 (approximately), with the warning that this holds only if X has a high probability of being close enough to its mean.

    View source →

  • Zepeda-Tello and colleagues on the univariate delta method and where it fails

    Zepeda-Tello R, Schomaker M, Maringe C, Smith MJ, Belot A, Rachet B, Schnitzer ME, Luque-Fernandez MA. The Delta-method and influence function in medical statistics: a reproducible tutorial. arXiv preprint 2206.15310v1; 30 June 2022. Preprint section 2 gives the univariate normal limit and the Wald-type interval built on it. As printed there the limiting variance reads phi'(theta) sigma^2, with no square on the derivative, and the interval is centred on the estimator itself; the worked derivations in preprint sections 3.3 and 3.4 square the derivative through Var(bX) = b^2 Var(X), and the records follow those and Feiveson. Preprint section 3.5 states the limit on non-differentiable functions and gives the attributable fraction counterexample.

    View source →

Canonical Identity

Stable URI · Machine-readable · Resolvable · CC BY 4.0

This formula is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).

Author: Dr Darrin Baines · Publisher: Intelligent Parameters Ltd · Identifier: https://healtheconomics.wiki/formula/delta-method-variance-of-a-smooth-function-of-one-estimate

Delta-method variance of a smooth function of one estimate | HealthEconomics.wiki