Why Take the Logarithm of a Sample Variance?
The sampling variability of a variance estimate depends on the scale of the underlying population. In a normal model, the sample variance has a standard error that grows in proportion to the population variance. Taking a logarithm changes that scale: for large samples, the log sample variance has approximately the same variance regardless of the value of the population variance. This also gives a direct way to form a confidence interval whose endpoints must be positive.
The result depends on normal sampling. Let \(X_1,\ldots,X_n\) be independent and identically distributed with \(X_i\sim N(\mu,\sigma^2)\), where \(\sigma^2>0\), and estimate the population variance with the usual unbiased sample variance \(S^2=(n-1)^{-1}\sum_{i=1}^n(X_i-\bar X)^2\). Write \(\nu=n-1\), the degrees of freedom.
Exact Sampling Distribution and Log-Scale Variance
A standard result for a normal sample is that \(\nu S^2/\sigma^2\) has a chi-square distribution with \(\nu\) degrees of freedom. Thus, if \(Q=\nu S^2/\sigma^2\), then \(Q\sim\chi^2_\nu\), and \(\log S^2-\log\sigma^2=\log(Q/\nu)\). This exact distribution gives both the large-sample limit and a precise way to see why the log-scale variance loses its dependence on \(\sigma^2\).
Proof of the limiting distribution. The chi-square central limit theorem gives \((Q-\nu)/\sqrt{2\nu}\xrightarrow{d}N(0,1)\). In particular, \(U_\nu=(Q-\nu)/\nu\xrightarrow{p}0\), and \(\sqrt{\nu}U_\nu\) converges in distribution to \(N(0,2)\). Since \(Q/\nu=1+U_\nu\), \(\log(Q/\nu)=\log(1+U_\nu)\). On the event \(|U_\nu|\le 1/2\), Taylor’s theorem gives \(|\log(1+U_\nu)-U_\nu|\le C U_\nu^2\) for a finite constant \(C\). The probability of that event tends to one, and \(U_\nu=O_p(\nu^{-1/2})\), so \(\sqrt{\nu}U_\nu^2=O_p(\nu^{-1/2})\xrightarrow{p}0\). Therefore \(\sqrt{\nu}\log(1+U_\nu)-\sqrt{\nu}U_\nu\xrightarrow{p}0\). Slutsky’s theorem yields the stated limit. \(\square\)
The limiting distribution suggests the constant variance \(2/\nu\). The exact variance confirms the same asymptotic behavior. To see this, set \(T=Q/2\), which has a gamma distribution with shape \(a=\nu/2\) and scale \(1\). Its moments satisfy \(E[T^t]=\Gamma(a+t)/\Gamma(a)\) for \(t>-a\). Differentiating the log of this moment-generating expression for \(\log T\) twice at zero gives \(\operatorname{Var}(\log T)=\psi_1(a)\), where \(\psi_1(a)=\frac{d^2}{da^2}\log\Gamma(a)\) is the trigamma function. Since \(\log S^2=\log\sigma^2+\log(2T/\nu)\), adding constants does not change variance, so \(\operatorname{Var}(\log S^2)=\psi_1(\nu/2)\).
For \(a>0\), the standard series representation \(\psi_1(a)=\sum_{k=0}^{\infty}(a+k)^{-2}\) and integral comparison give \(\int_0^\infty(a+x)^{-2}\,dx\le\psi_1(a)\le a^{-2}+\int_0^\infty(a+x)^{-2}\,dx\). Thus \(1/a\le\psi_1(a)\le1/a+1/a^2\), so \(\psi_1(a)\sim1/a\). Substituting \(a=\nu/2\) shows that \(\operatorname{Var}(\log S^2)\sim2/\nu\). This is an asymptotic statement: the exact variance is not constant for finite \(n\), but it does not involve \(\sigma^2\).
Worked Example: Comparing Log-Scale and Original-Scale Variability
Suppose the sample size is \(n=41\), so \(\nu=40\). The asymptotic variance of \(\log S^2\) is \(2/40=0.05\), and its asymptotic standard deviation is \(\sqrt{0.05}\approx0.2236\), regardless of the true \(\sigma^2\).
For comparison, the asymptotic variance of \(S^2\) is \(2\sigma^4/\nu\), giving standard deviation \(\sigma^2\sqrt{2/40}\). If \(\sigma^2=1\), this is \(1(0.2236)=0.2236\). If \(\sigma^2=25\), it is \(25(0.2236)=5.590\). The raw-scale uncertainty changes substantially with the variance; the log-scale uncertainty is approximately \(0.2236\) in both cases.
A Large-Sample Confidence Interval for the Variance
Dividing the theorem’s limiting statistic by \(\sqrt{2}\) gives \((\log S^2-\log\sigma^2)/\sqrt{2/\nu}\xrightarrow{d}N(0,1)\). For a desired confidence level \(1-\alpha\), let \(z_{1-\alpha/2}\) be the corresponding standard normal quantile. The approximate central coverage statement is \(P\{-z_{1-\alpha/2}\le(\log S^2-\log\sigma^2)/\sqrt{2/\nu}\le z_{1-\alpha/2}\}\approx1-\alpha\). Rearranging for \(\log\sigma^2\) and exponentiating gives the interval below.
The interval is symmetric around \(\log S^2\) on the log scale, not around \(S^2\) on the original scale. Its upper endpoint is the lower endpoint multiplied by \(\exp(2z_{1-\alpha/2}\sqrt{2/\nu})\), and both endpoints are positive. The approximation uses \(\sqrt{2/\nu}\) as the standard error on the log scale; it does not account for every finite-sample feature of the distribution of \(\log S^2\).
Worked Example: A 95% Interval With 25 Observations
A normal sample has \(n=25\) observations and sample variance \(S^2=16\). For a 95% interval, use \(z_{0.975}=1.96\). Here \(\nu=24\), so the log-scale standard error is \(\sqrt{2/24}=\sqrt{1/12}\approx0.288675\).
The margin is \(1.96(0.288675)\approx0.565802\). The multiplicative factor is \(\exp(0.565802)\approx1.7609\), so the interval is \([16\exp(-0.565802),16\exp(0.565802)]\), or approximately \([16/1.7609,16(1.7609)]=[9.09,28.17]\).
This is an approximate 95% interval for the population variance \(\sigma^2\), not for the population standard deviation \(\sigma\). Its positive, unequal distances from 16 on the original scale reflect the exponential back-transformation.
Worked Example: A 90% Interval With 101 Observations
Suppose \(n=101\), \(S^2=9\), and the requested confidence level is 90%. Then \(\nu=100\), \(z_{0.95}\approx1.645\), and the log-scale standard error is \(\sqrt{2/100}=\sqrt{0.02}\approx0.141421\).
The margin is \(1.645(0.141421)\approx0.232638\), and \(\exp(0.232638)\approx1.2619\). Thus the interval is \([9\exp(-0.232638),9\exp(0.232638)]\), equivalently \([9/1.2619,9(1.2619)]\approx[7.13,11.36]\).
The point estimate \(9\) is the geometric center of these endpoints: \(\sqrt{7.13(11.36)}\approx9.00\), up to rounding. It is not their arithmetic midpoint.
Worked Example: A 99% Interval With a Smaller Sample
A normal sample has \(n=21\) and \(S^2=2.25\). For a 99% interval, use \(z_{0.995}\approx2.576\). Then \(\nu=20\), and \(\sqrt{2/20}=\sqrt{0.1}\approx0.316228\).
The margin is \(2.576(0.316228)\approx0.8146\). The multiplicative factor is \(\exp(0.8146)\approx2.258\). The interval is therefore \([2.25/2.258,2.25(2.258)]\approx[1.00,5.08]\).
The relatively wide interval reflects both the high confidence level and the modest sample size. The large-sample method still gives an approximation; with only 21 observations, its coverage may differ noticeably from the nominal 99%.
Common Pitfalls and Interpretation
- Using the wrong variance convention. The result here uses \(S^2\) with denominator \(n-1\), so the degrees of freedom are \(\nu=n-1\). Replacing it with a variance estimator using denominator \(n\) changes the finite-sample distribution and should not be done without adjusting the derivation.
- Calling the interval exact. The chi-square distribution is exact for \(\nu S^2/\sigma^2\), but the interval above comes from a normal approximation to \(\log S^2\). For finite samples, its coverage is approximate.
- Forgetting which parameter is being estimated. The endpoints estimate \(\sigma^2\). An interval for \(\sigma\) would require taking square roots of the variance endpoints.
- Assuming log transformation fixes every problem. The constant asymptotic variance follows from the normal sampling model and the large-sample limit. It does not make the distribution exactly normal at every sample size, nor does this derivation establish the result for nonnormal populations.
Check Your Understanding
Answer each question using the normal-sampling assumptions stated above.
- What is the exact distribution of \((n-1)S^2/\sigma^2\), and why does its degrees of freedom equal \(n-1\)?
- What is the limiting distribution of \(\sqrt{n-1}(\log S^2-\log\sigma^2)\)?
- Why does the asymptotic variance of \(\log S^2\) not depend on \(\sigma^2\), even though the variance of \(S^2\) does?
- For \(n=50\), \(S^2=4\), and a 95% confidence level, write the log-scale standard error and margin using \(z_{0.975}=1.96\). Then express the interval endpoints in exponential form.
- Is the interval derived here exact for finite \(n\)? State one assumption on which the derivation depends.