Tutorials › Statistical Theory II - Mathematical Statistics and Statistical Inference › Estimating the Variance Function in a Stabilizing Transformation

Variance-Stabilizing Transformations and Inference · Tutorial 835 of 970

Estimating the Variance Function in a Stabilizing Transformation

Build a variance-stabilizing transformation using consistent nuisance estimates, and distinguish its local variance benefit from the uncertainty in a fully transformed estimate.

Intermediate 11 min read

What You'll Learn

  • Define a variance-stabilizing transformation when the variance function includes nuisance parameters
  • Prove first-order stabilization using consistency and the delta method
  • Construct plug-in transformations for normal, negative binomial, and clustered Bernoulli examples
  • Check a plug-in derivative and transformed variance numerically
  • Distinguish stabilization around a sample-dependent center from inference about a fixed transformed target
  • Recognize when nuisance-estimation uncertainty must be included

Why Estimate the Variance Function?

A variance-stabilizing transformation is built from the asymptotic variance of an estimator. In a simple model that variance may depend only on the parameter of interest. In many applications it also depends on nuisance quantities, such as a dispersion parameter, a variance, or a within-cluster correlation. Those quantities are unknown, so the transformation used in practice must be estimated as well.

The first-order idea is direct: estimate the nuisance quantities consistently, substitute them into the variance function, and use the resulting derivative. Continuity makes the estimated derivative converge to the derivative that would have been used if the nuisance parameters were known. One important qualification is that this local stabilization does not, by itself, remove uncertainty in a transformed estimate whose transformation is itself random.

Definition: Suppose a scalar estimator \(\hat{\theta}\) satisfies \(\sqrt{n}(\hat{\theta}-\theta)\xrightarrow{d}N(0,V(\theta,\lambda))\), where \(\theta\) is the parameter of interest, \(\lambda\) is a nuisance parameter, and \(V(\theta,\lambda)>0\). A variance-stabilizing transformation with nuisance value \(\lambda\) is a differentiable function \(g_\lambda\) satisfying \(g'_\lambda(\theta)=1/\sqrt{V(\theta,\lambda)}\). An additive constant in \(g_\lambda\) does not affect this property. A plug-in transformation replaces \(\lambda\) by an estimator \(\hat{\lambda}\).

The derivative, rather than the particular value of the transformation, is what stabilizes the variance. If \(\lambda\) were fixed and known, the delta method would give asymptotic variance \(g'_\lambda(\theta)^2V(\theta,\lambda)=1\) for \(\sqrt n\{g_\lambda(\hat{\theta})-g_\lambda(\theta)\}\). With unknown \(\lambda\), consistency can make the plug-in derivative behave the same way locally.

The First-Order Plug-In Result

Here is a precise version of that claim. Assume \(\theta\) is an interior point of its parameter space, \(\hat{\theta}\xrightarrow{p}\theta\), and \(\sqrt n(\hat{\theta}-\theta)\xrightarrow{d}N(0,V(\theta,\lambda))\), with \(0<V(\theta,\lambda)<\infty\). Assume also that \(\hat{\lambda}\xrightarrow{p}\lambda\), and that \(V(x,\eta)\) is positive and continuous for \((x,\eta)\) in a neighborhood of \((\theta,\lambda)\). Define \(g_\eta(x)=\int_{\theta_0}^{x}V(u,\eta)^{-1/2}\,du\), where \(\theta_0\) is any fixed point in the relevant interval. Then:

Theorem: Under these conditions, \[ \sqrt n\left\{g_{\hat{\lambda}}(\hat{\theta})-g_{\hat{\lambda}}(\theta)\right\}\xrightarrow{d}N(0,1). \] The centering \(g_{\hat{\lambda}}(\theta)\) is sample-dependent. The result states that the estimated transformation stabilizes the local change in \(\theta\); it does not assert that \(g_{\hat{\lambda}}(\hat{\theta})\), centered at the fixed value \(g_\lambda(\theta)\), has this same limit.

Proof. Let \(h(x,\eta)=V(x,\eta)^{-1/2}\). By continuity and positivity, \(h\) is continuous near \((\theta,\lambda)\). The integral definition gives \(g'_\eta(x)=h(x,\eta)\). The fundamental theorem of calculus yields \[ g_{\hat{\lambda}}(\hat{\theta})-g_{\hat{\lambda}}(\theta) =(\hat{\theta}-\theta)\int_0^1 h\bigl(\theta+t(\hat{\theta}-\theta),\hat{\lambda}\bigr)\,dt. \] Consistency of both estimates implies that, for every \(t\in[0,1]\), the arguments of \(h\) approach \((\theta,\lambda)\) uniformly in \(t\) in probability: the first coordinate differs from \(\theta\) by at most \(|\hat{\theta}-\theta|\), and the second is \(\hat{\lambda}\). Continuity therefore makes the integral converge in probability to \(h(\theta,\lambda)=1/\sqrt{V(\theta,\lambda)}\). Multiplying by \(\sqrt n(\hat{\theta}-\theta)\), which converges in distribution and is thus bounded in probability, and applying Slutsky’s theorem gives a limiting normal distribution with variance \(V(\theta,\lambda)\{1/\sqrt{V(\theta,\lambda)}\}^2=1\). \(\square\)

The theorem requires consistency of \(\hat{\lambda}\), not a root-\(n\) rate, because the nuisance estimate appears in the local derivative and the centering uses the same estimated transformation. For practical calculations, the plug-in variance estimate also satisfies \(V(\hat{\theta},\hat{\lambda})\xrightarrow{p}V(\theta,\lambda)\) by continuity. That consistency supports estimating the local derivative and variance; it is not a claim that every inferential quantity involving \(\hat{\lambda}\) has negligible uncertainty.

Worked Plug-In Transformations

Worked Example: Normal Mean With Unknown Variance

Let \(X_1,\ldots,X_n\) be independent \(N(\mu,\sigma^2)\) observations, and estimate \(\mu\) by \(\bar X\). Then \(\sqrt n(\bar X-\mu)\sim N(0,\sigma^2)\), so \(V(\mu,\sigma^2)=\sigma^2\). Treating \(\sigma^2\) as a nuisance parameter, a transformation is \(g_{\sigma^2}(x)=x/\sigma\), since its derivative with respect to \(x\) is \(1/\sigma=1/\sqrt{V(x,\sigma^2)}\).

Replace \(\sigma\) by the sample standard deviation \(S\). For a concrete calculation, suppose \(n=25\), \(\bar X=12\), and \(S=3.6\). The plug-in derivative is \(1/S=1/3.6=0.277\overline{7}\). The estimated variance of \(\bar X\) is \(S^2/n=12.96/25=0.5184\). Thus the derivative-squared times estimated variance is \[ (1/3.6)^2(12.96/25)=\frac{1}{12.96}\frac{12.96}{25}=\frac{1}{25}. \] This is the estimated variance on the transformed scale for the estimator’s local change.

It does not follow that \(\bar X/S\), centered at the fixed target \(\mu/\sigma\), has variance \(1/n\). Estimating \(S\) also changes the transformed estimate; that issue is distinct from the local stabilization calculation.

Worked Example: Negative Binomial Mean With Unknown Size

Suppose \(X_1,\ldots,X_n\) are independent negative binomial observations with mean \(\mu>0\), size parameter \(r>0\), and \(\operatorname{Var}(X_i)=\mu+\mu^2/r\). The sample mean estimates \(\mu\), with asymptotic variance function \(V(\mu,r)=\mu+\mu^2/r\) in the limit for \(\sqrt n(\bar X-\mu)\). Assume an estimator \(\hat r\) is consistent for \(r\).

Integrating the required derivative gives \[ g_r(\mu)=\int_0^\mu\frac{du}{\sqrt{u+u^2/r}} =2\sqrt r\,\operatorname{asinh}\!\left(\sqrt{\mu/r}\right). \] To check the derivative, differentiate the right-hand side: \[ \frac{d}{d\mu}g_r(\mu) =\frac{1}{\sqrt{\mu}\sqrt{1+\mu/r}} =\frac{1}{\sqrt{\mu+\mu^2/r}}. \] The operational transformation substitutes \(\hat r\) for \(r\), giving \(g_{\hat r}(\bar X)=2\sqrt{\hat r}\operatorname{asinh}\!\left(\sqrt{\bar X/\hat r}\right)\).

For example, at \(\bar X=4\) and \(\hat r=2\), the plug-in variance is \(4+4^2/2=12\) and the plug-in derivative is \(1/\sqrt{12}\). Their product in the variance calculation is \((1/\sqrt{12})^2(12/n)=1/n\). Consistency of \(\hat r\), together with the theorem’s continuity conditions, justifies this first-order stabilization asymptotically.

Worked Example: Clustered Bernoulli Proportions

Suppose there are \(G\) independent clusters, each containing \(m\) Bernoulli observations with common success probability \(p\). Within a cluster, every pair has correlation \(\rho\), and different clusters are independent. The overall proportion \(\hat p\) is the average of the \(Gm\) observations. For one cluster, the variance of its average is \[ \frac{1}{m^2}\left\{mp(1-p)+m(m-1)\rho p(1-p)\right\} =\frac{p(1-p)\{1+(m-1)\rho\}}{m}. \] Consequently, the asymptotic variance function for \(\sqrt G(\hat p-p)\) is \(V(p,\rho)=p(1-p)\{1+(m-1)\rho\}/m\). Assume \(p\) is interior to \((0,1)\) and a consistent estimate \(\hat\rho\) is available.

Writing \(A=1+(m-1)\rho\), a transformation with the required derivative is \[ g_\rho(p)=2\sqrt{\frac{m}{A}}\arcsin\sqrt p, \qquad g'_\rho(p)=\sqrt{\frac{m}{A}}\frac{1}{\sqrt{p(1-p)}}. \] Indeed, \(g'_\rho(p)=1/\sqrt{V(p,\rho)}\). The plug-in transformation replaces \(A\) by \(\hat A=1+(m-1)\hat\rho\).

Take \(m=4\), \(\hat p=0.4\), and \(\hat\rho=0.2\). Then \(\hat A=1+3(0.2)=1.6\), and the estimated variance function is \(0.4(0.6)(1.6)/4=0.096\). The squared plug-in derivative is \((4/1.6)/\{0.4(0.6)\}=2.5/0.24\). Their product is \((2.5/0.24)(0.096)=1\). Thus, for \(G\) independent clusters, the estimated variance of the transformed proportion’s local change is \(1/G\).

When Nuisance Estimation Also Affects the Target

The theorem deliberately centers at \(g_{\hat{\lambda}}(\theta)\). If the scientific target is instead the fixed quantity \(g_\lambda(\theta)\), the difference between those centers can be random at first order. For example, suppose \((\hat{\theta},\hat{\lambda})\) has a joint asymptotic normal limit at rate \(\sqrt n\), and \(g_\lambda(\theta)\) is differentiable in both arguments. A first-order expansion about the fixed target has two terms: \[ \sqrt n\{g_{\hat{\lambda}}(\hat{\theta})-g_\lambda(\theta)\} = \frac{\partial g_\lambda(\theta)}{\partial\theta}\sqrt n(\hat{\theta}-\theta) + \frac{\partial g_\lambda(\theta)}{\partial\lambda}\sqrt n(\hat{\lambda}-\lambda) +o_p(1). \] The nuisance term and its covariance with the first term contribute to the limit variance. Consistency alone does not make that term negligible at the \(\sqrt n\) scale.

This distinction matters when the transformation itself is the reported estimand or when uncertainty is calculated around a fixed transformed parameter. To claim a standard-normal limit in that setting, one must account for the joint estimation effect, or impose additional conditions that make it negligible. The local variance function is still stabilized by the plug-in derivative, but that is not a substitute for analyzing the full estimator.

Common Mistake

  • Wrong reasoning: “The nuisance estimate is consistent, so replacing the true nuisance parameter by its estimate cannot affect the first-order distribution of any transformed estimate.” Consistency only says \(\hat{\lambda}-\lambda=o_p(1)\); it does not say this difference is \(o_p(n^{-1/2})\).
  • Correction: Use consistency to justify convergence of the plug-in variance function and derivative. Then state the centering carefully. For the local difference \(g_{\hat{\lambda}}(\hat{\theta})-g_{\hat{\lambda}}(\theta)\), the plug-in theorem applies. For the fixed-target difference \(g_{\hat{\lambda}}(\hat{\theta})-g_\lambda(\theta)\), include the nuisance contribution whenever it is first-order.
Key takeaway: A consistent nuisance estimate lets a continuous variance function and its stabilizing derivative be estimated consistently. This establishes first-order local stabilization, but the uncertainty from estimating a nuisance parameter may still matter when the transformed estimator is centered at a fixed target.

Check Your Understanding

Try these questions using the distinction between a plug-in derivative and a fully transformed estimator.

  1. For an asymptotic variance function \(V(\theta,\lambda)\), what derivative must a variance-stabilizing transformation have?
  2. Why does consistency of \(\hat{\lambda}\) suffice for the theorem’s local stabilization result, even if \(\hat{\lambda}\) is not root-\(n\) consistent?
  3. In the negative binomial example, verify that differentiating \(2\sqrt r\,\operatorname{asinh}(\sqrt{\mu/r})\) gives \(1/\sqrt{\mu+\mu^2/r}\).
  4. Why is the centering \(g_{\hat{\lambda}}(\theta)\) different in purpose from the fixed target \(g_\lambda(\theta)\)?
  5. What additional first-order term can appear when the plug-in transformed estimate is centered at \(g_\lambda(\theta)\)?
Clinical Biostats